File: mktarball.sh

package info (click to toggle)
oss4 4.2-build2010-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 14,000 kB
  • ctags: 24,671
  • sloc: ansic: 222,209; sh: 4,864; pascal: 2,334; asm: 1,189; makefile: 393; php: 53; xml: 46
file content (25 lines) | stat: -rw-r--r-- 673 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/sh

. ./.directories

VERSION=`sh showversion.sh`
RELEASE=`cat buildid.dat`
OSSNAME=oss-linux
if test `uname -m` = "x86_64"; then ARCH=amd64
else ARCH=`uname -m|sed 's/^i[3-9]86/i386/'`
fi
PKGNAME=$OSSNAME-$VERSION-$RELEASE-$ARCH

echo building $PKGNAME.tar.bz2
#cp ./setup/Linux/installoss.sh prototype
cp ./setup/Linux/removeoss.sh prototype/$OSSLIBDIR/scripts
(cd prototype; find . -type f -print) > prototype/$OSSLIBDIR/MANIFEST
(cd prototype; tar cfj /tmp/$PKGNAME.tar.bz2 . )
mv /tmp/$PKGNAME.tar.bz2 .

if test -f 4front-private/export_package.sh
then
  sh 4front-private/export_package.sh $PKGNAME.tar.bz2 . `sh showversion.sh` /tmp `uname -m`-26
fi

exit 0