Date: Mon, 24 Jan 2000 11:01:19 -0800 (PST) From: Joss Roots <osiris2002@yahoo.com> To: freebsd-questions@freebsd.org Subject: SCRIPT: Ports Building for the Lazy. Message-ID: <20000124190119.23856.qmail@web125.yahoomail.com>
index | next in thread | raw e-mail
[-- Attachment #1 --]
hi all,
I've been playing for sometime with learning
shell scritpting, and the Ports Mechanism, and
although it is really a robust subsystem, but
still has its deficiencies, for example;
1. /usr/ports/games/xrisk
breaks 'make fetch' issued on /usr/ports or
on /usr/ports/games (although late here :-) )
2. Builds All forgein language ports when
'make' is issued at /usr/ports
and many other examples of ports unable to fetch,
build or install breaking the process, so here's
a
workaround that will keep the blood pressure
around its normal range.
Suggestions, criticism, and flames :-) are most welcome.
=====
MAY THE FORCE BE WITH YOU.
__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com
[-- Attachment #2 --]
#!/bin/sh
set -vx
#portsget
do_make() {
echo $DIR
cd $DIR
pwd
SUB_DIRS=$(/root/scripts/pure .)
for SUB_DIR in $SUB_DIRS; do
cd $SUB_DIR
pwd
make
make all
make install FORCE_PKG_REGISTER=yes
#make package
#make clean
cd ..
done
cd ..
return 0
}
# Start point
BASE_DIR='/root/scripts/ports'
cd /usr/ports
for DIR in $(/root/scripts/pure .); do
case $DIR in
russian|chinese|japanese|korean|vietnamese|german)
;;
*)
do_make
;;
esac
done
#cd /usr/ports
#make package
#/root/scripts/chkports
exit 0
[-- Attachment #3 --]
#!/bin/sh
for i in *
do
if [ -d $i ]
then
case $i in
CVS|pkg|Mk|Templates|Tools|distfiles|packages)
;;
*)
echo $i ;;
esac
fi
done
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000124190119.23856.qmail>
