From: Ben Gras Date: Mon, 23 Jan 2006 12:22:06 +0000 (+0000) Subject: . initial version of binpackage script X-Git-Tag: v3.1.2a~415 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/static/style.css?a=commitdiff_plain;h=20add6baa290ab4a54158a659be2e21ef80369a8;p=minix.git . initial version of binpackage script . build now used to make binary packages (and still in easypack), kick out makeme.sh --- diff --git a/commands/bzip2-1.0.3/build b/commands/bzip2-1.0.3/build index 90ec904ea..dc05bcc3d 100755 --- a/commands/bzip2-1.0.3/build +++ b/commands/bzip2-1.0.3/build @@ -1,4 +1,4 @@ #!/bin/sh make clean -sh makeme.sh +bigmake all make install diff --git a/commands/bzip2-1.0.3/makeme.sh b/commands/bzip2-1.0.3/makeme.sh deleted file mode 100644 index 9b972e661..000000000 --- a/commands/bzip2-1.0.3/makeme.sh +++ /dev/null @@ -1 +0,0 @@ -bigmake all diff --git a/commands/flex-2.5.4/build b/commands/flex-2.5.4/build index 90ec904ea..612e9ad3e 100755 --- a/commands/flex-2.5.4/build +++ b/commands/flex-2.5.4/build @@ -1,4 +1,4 @@ #!/bin/sh make clean -sh makeme.sh +CC=cc /bin/sh ./configure --prefix=/usr/local && bigmake all make install diff --git a/commands/flex-2.5.4/makeme.sh b/commands/flex-2.5.4/makeme.sh deleted file mode 100644 index 5e738f8e1..000000000 --- a/commands/flex-2.5.4/makeme.sh +++ /dev/null @@ -1 +0,0 @@ -CC=cc /bin/sh ./configure --prefix=/usr/local && bigmake all diff --git a/commands/pax/makeme.sh b/commands/pax/build similarity index 100% rename from commands/pax/makeme.sh rename to commands/pax/build diff --git a/commands/scripts/Makefile b/commands/scripts/Makefile index 4c22efc97..2b128551b 100755 --- a/commands/scripts/Makefile +++ b/commands/scripts/Makefile @@ -16,6 +16,7 @@ usr: \ /usr/bin/MAKEDEV \ /usr/bin/bigmake \ /usr/bin/adduser \ + /usr/bin/binpackage \ /usr/bin/cd \ /usr/bin/[ \ /usr/bin/command \ @@ -82,6 +83,9 @@ clean: /usr/bin/bigmake: bigmake.sh install -m 755 -c -o bin $? $@ +/usr/bin/binpackage: binpackage.sh + install -m 755 -c -o bin $? $@ + /usr/bin/adduser: adduser.sh install -m 755 -c -o bin $? $@ diff --git a/commands/scripts/binpackage.sh b/commands/scripts/binpackage.sh new file mode 100644 index 000000000..28c29c7e6 --- /dev/null +++ b/commands/scripts/binpackage.sh @@ -0,0 +1,33 @@ +#!/bin/sh + +set -e + +dir=$1 + +if [ ! -d "$dir" ] +then echo "Error: $dir isn't a directory." + exit 1 +fi + +here=`pwd` +srcdir=$here/$dir +packagestart=$srcdir/now +findlist=$srcdir/findlist +tarfile=${dir}.tar +tar=$srcdir/$tarfile +targz=$tarfile.gz + +binsizes big +touch $packagestart +sleep 1 +cd $dir +sh build +cd / +echo " * Making file index, writing $targz" +find / -cnewer $packagestart | grep -v "^$srcdir" | grep -v "^/dev" | grep -v "^/tmp" | grep -v "^/usr/tmp" | pax -w -d -z >$targz +echo " * Ok. Cleanup.." +rm -f $packagestart $findlist $tarcmd +binsizes normal +mv $targz $here +ls -al $here/$targz +exit 0