mirror of
https://github.com/samba-team/samba.git
synced 2025-02-08 05:57:51 +03:00
clean up steps for making distribution
(This used to be commit 3b2d25035e2f718532b4cfe2fd3342ddfcdb54c3)
This commit is contained in:
parent
950e47cb75
commit
814ac705f2
@ -5,6 +5,8 @@
|
|||||||
# OS release to build. If no version number is given it will default to 6.
|
# OS release to build. If no version number is given it will default to 6.
|
||||||
|
|
||||||
doclean=""
|
doclean=""
|
||||||
|
SGI_ABI=-n32
|
||||||
|
export SGI_ABI
|
||||||
|
|
||||||
if [ "$1" = "clean" ]; then
|
if [ "$1" = "clean" ]; then
|
||||||
doclean=$1
|
doclean=$1
|
||||||
@ -13,28 +15,39 @@ fi
|
|||||||
|
|
||||||
if [ "$doclean" = "clean" ]; then
|
if [ "$doclean" = "clean" ]; then
|
||||||
cd ../../source
|
cd ../../source
|
||||||
make distclean
|
if [ -f Makefile ]; then
|
||||||
|
make distclean
|
||||||
|
fi
|
||||||
cd ../packaging/SGI
|
cd ../packaging/SGI
|
||||||
rm -rf bins catman html codepages swat samba.idb samba.spec
|
rm -rf bins catman html codepages swat samba.idb samba.spec
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# create the catman versions of the manual pages
|
# create the catman versions of the manual pages
|
||||||
#
|
#
|
||||||
echo Making manual pages
|
if [ "$doclean" = "clean" ]; then
|
||||||
./mkman
|
echo Making manual pages
|
||||||
errstat=$?
|
./mkman
|
||||||
if [ $errstat -ne 0 ]; then
|
errstat=$?
|
||||||
echo "Error $errstat making manual pages\n";
|
if [ $errstat -ne 0 ]; then
|
||||||
exit $errstat;
|
echo "Error $errstat making manual pages\n";
|
||||||
|
exit $errstat;
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cd ../../source
|
cd ../../source
|
||||||
echo Create SGI specific Makefile
|
if [ "$doclean" = "clean" -o ! -f Makefile ]; then
|
||||||
./configure --prefix=/usr --mandir=/usr/src/man
|
echo Create SGI specific Makefile
|
||||||
errstat=$?
|
chmod +x configure
|
||||||
if [ $errstat -ne 0 ]; then
|
chmod +x configure.developer
|
||||||
echo "Error $errstat creating Makefile\n";
|
chmod +x config.guess
|
||||||
exit $errstat;
|
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
|
fi
|
||||||
|
|
||||||
|
|
||||||
@ -43,11 +56,13 @@ fi
|
|||||||
echo Making binaries
|
echo Making binaries
|
||||||
|
|
||||||
if [ "$1" = "5" ]; then
|
if [ "$1" = "5" ]; then
|
||||||
make "CFLAGS=-O -g3" all
|
myflags="CFLAGS=-O -g3"
|
||||||
|
shift
|
||||||
else
|
else
|
||||||
make "CFLAGS=-O -g3 -n32" all
|
myflags="CFLAGS=-O -g3"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
make "$myflags" $*
|
||||||
errstat=$?
|
errstat=$?
|
||||||
if [ $errstat -ne 0 ]; then
|
if [ $errstat -ne 0 ]; then
|
||||||
echo "Error $errstat building sources\n";
|
echo "Error $errstat building sources\n";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user