. initial version of binpackage script
. build now used to make binary packages (and still in easypack), kick out makeme.sh
This commit is contained in:
parent
8c1141d6b7
commit
20add6baa2
7 changed files with 39 additions and 4 deletions
|
@ -1,4 +1,4 @@
|
|||
#!/bin/sh
|
||||
make clean
|
||||
sh makeme.sh
|
||||
bigmake all
|
||||
make install
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
bigmake all
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/sh
|
||||
make clean
|
||||
sh makeme.sh
|
||||
CC=cc /bin/sh ./configure --prefix=/usr/local && bigmake all
|
||||
make install
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
CC=cc /bin/sh ./configure --prefix=/usr/local && bigmake all
|
|
@ -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 $? $@
|
||||
|
||||
|
|
33
commands/scripts/binpackage.sh
Normal file
33
commands/scripts/binpackage.sh
Normal file
|
@ -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
|
Loading…
Reference in a new issue