summaryrefslogtreecommitdiffstats
path: root/packaging
diff options
context:
space:
mode:
authorHerb Lewis <herb@samba.org>1998-10-29 01:15:14 +0000
committerHerb Lewis <herb@samba.org>1998-10-29 01:15:14 +0000
commit3b2d25035e2f718532b4cfe2fd3342ddfcdb54c3 (patch)
tree68bc1ed983eda45a571ddf0980ffc4eebe2a54db /packaging
parent86743dfda446fddaffff7cbb57ca6b5901948ad5 (diff)
downloadsamba-3b2d25035e2f718532b4cfe2fd3342ddfcdb54c3.tar.gz
samba-3b2d25035e2f718532b4cfe2fd3342ddfcdb54c3.tar.xz
samba-3b2d25035e2f718532b4cfe2fd3342ddfcdb54c3.zip
clean up steps for making distribution
Diffstat (limited to 'packaging')
-rwxr-xr-xpackaging/SGI/mkrelease.sh45
1 files changed, 30 insertions, 15 deletions
diff --git a/packaging/SGI/mkrelease.sh b/packaging/SGI/mkrelease.sh
index d298095ae9e..43765e196b5 100755
--- a/packaging/SGI/mkrelease.sh
+++ b/packaging/SGI/mkrelease.sh
@@ -5,6 +5,8 @@
# OS release to build. If no version number is given it will default to 6.
doclean=""
+SGI_ABI=-n32
+export SGI_ABI
if [ "$1" = "clean" ]; then
doclean=$1
@@ -13,28 +15,39 @@ fi
if [ "$doclean" = "clean" ]; then
cd ../../source
- make distclean
+ if [ -f Makefile ]; then
+ make distclean
+ fi
cd ../packaging/SGI
rm -rf bins catman html codepages swat samba.idb samba.spec
fi
# create the catman versions of the manual pages
#
-echo Making manual pages
-./mkman
-errstat=$?
-if [ $errstat -ne 0 ]; then
- echo "Error $errstat making manual pages\n";
- exit $errstat;
+if [ "$doclean" = "clean" ]; then
+ echo Making manual pages
+ ./mkman
+ errstat=$?
+ if [ $errstat -ne 0 ]; then
+ echo "Error $errstat making manual pages\n";
+ exit $errstat;
+ fi
fi
cd ../../source
-echo Create SGI specific Makefile
-./configure --prefix=/usr --mandir=/usr/src/man
-errstat=$?
-if [ $errstat -ne 0 ]; then
- echo "Error $errstat creating Makefile\n";
- exit $errstat;
+if [ "$doclean" = "clean" -o ! -f Makefile ]; then
+ echo Create SGI specific Makefile
+ chmod +x configure
+ chmod +x configure.developer
+ chmod +x config.guess
+ chmod +x config.status
+ chmod +x config.sub
+ ./configure --prefix=/usr --mandir=/usr/src/man
+ errstat=$?
+ if [ $errstat -ne 0 ]; then
+ echo "Error $errstat creating Makefile\n";
+ exit $errstat;
+ fi
fi
@@ -43,11 +56,13 @@ fi
echo Making binaries
if [ "$1" = "5" ]; then
- make "CFLAGS=-O -g3" all
+ myflags="CFLAGS=-O -g3"
+ shift
else
- make "CFLAGS=-O -g3 -n32" all
+ myflags="CFLAGS=-O -g3"
fi
+make "$myflags" $*
errstat=$?
if [ $errstat -ne 0 ]; then
echo "Error $errstat building sources\n";