]> Zhao Yanbai Git Server - minix.git/commitdiff
set $PATH so /usr/local/egrep isn't used; also exclude /var/log from package
authorBen Gras <ben@minix3.org>
Fri, 3 Nov 2006 14:47:28 +0000 (14:47 +0000)
committerBen Gras <ben@minix3.org>
Fri, 3 Nov 2006 14:47:28 +0000 (14:47 +0000)
commands/scripts/binpackage.sh

index 064b06abc4fbf0ac33e93cf17026d488b0ca9e1d..e012f00b4acff8bc6c445cca34edba2c3524ccb9 100644 (file)
@@ -1,5 +1,6 @@
 #!/bin/sh 
 
+PATH=/bin:/sbin:/usr/bin:/usr/sbin
 PI=.postinstall
 INFO=.minixpackage
 
@@ -59,7 +60,7 @@ fi
 
 echo " * Building package"
 echo "Minix package $dir built `date`." >$INFO
-( echo $INFO ; if [ -f $PI ]; then echo $PI; fi; find / -cnewer $packagestart | egrep -v "^($srcdir|/(dev|tmp)|/usr/(tmp|log|adm|run)|/etc/utmp|/var/run)" ) | pax -w -d | bzip2 >$tarbz
+( echo $INFO ; if [ -f $PI ]; then echo $PI; fi; find / -cnewer $packagestart | egrep -v "^($srcdir|/(dev|tmp)|/usr/(tmp|log|adm|run)|/etc/utmp|/var/(run|log))" ) | pax -w -d | bzip2 >$tarbz
 rm -f $packagestart $findlist $tarcmd
 binsizes normal
 mv $tarbz $pdir