marcusmerge-update for the lazy
Martin Klaffenboeck
martin.klaffenboeck at gmx.at
Mon Jun 2 16:59:10 PDT 2003
Am 2003.06.03 00:49 schrieb(en) Joe Marcus Clarke:
> On Sun, 2003-06-01 at 09:46, Franz Klammer wrote:
> > attached a update for the lazy tester (like me) ;-)
> >
> > - add option -a as shortcut for -u -l -p
> > - save `basename $0` in $SCRIPTNAME
> > - if exists include /usr/local/etc/${SCRIPTNAME}.cfg
> > to avoid editing the script after every update
> >
> > also changed:
> > - use the real scriptname in the usage: message
> > - respect ${VERBOSE} when doing cvsup
I've added an autodetect mechanism for the SUPFILE, where the supfile
will be the supfile which 'make update' in the ${PORTSDIR} would use.
Martin
--
If you've got an idea and need help, ICQ: 72997139
or just need general encouragement, MSN: kleinerdrache at gmx.at
write me a message. ;-) Yahoo-Messenger: walking2martin
AIM: littlewizzard
-------------- next part --------------
--- marcusmerge.orig Tue Jun 3 01:46:59 2003
+++ marcusmerge Tue Jun 3 01:57:02 2003
@@ -5,7 +5,7 @@
SRCDIR= # The path to the MarcusCom ports.
DESTDIR="/usr/ports" # The path to the official ports collection.
VERBOSE="no" # If you want verbose output.
-SUPFILE= # The path your ports-supfile.
+SUPFILE= # The path your ports-supfile (default: auto).
MODULE="ports" # CVS module to checkout.
# You do not have to change anything beyond this line.
@@ -83,6 +83,9 @@
fi
if [ ${update_main} = "yes" ]; then
+ if [ -z ${SUPFILE} ]; then
+ SUPFILE=`cd ${DESTDIR} ; make -V PORTSSUPFILE`
+ fi
if [ -z ${SUPFILE} ]; then
printf "Update of main ports tree requested but you forgot\nto set SUPFILE in this script; aborting...\n\n"
exit 1
More information about the freebsd-gnome
mailing list