3 # This file goes through all the necessary steps to build a release package.
4 # You may specify a OS major version number (4, 5, or 6) to specify which
5 # OS release to build. If no version number is given it will default to 6.
9 if [ "$1" = "clean" ]; then
14 echo Create SGI specific Makefile
15 ./makefile.pl $1 # create the Makefile for the specified OS ver
17 if [ "$doclean" = "clean" ]; then
19 make -f ../packaging/SGI/Makefile clean
21 rm -rf bins catman html codepages swat samba.idb samba.spec
24 # create the catman versions of the manual pages
26 echo Making manual pages
29 if [ $errstat -ne 0 ]; then
30 echo "Error $errstat making manual pages\n";
38 if [ $errstat -ne 0 ]; then
39 echo "Error $errstat creating Makefile\n";
44 # make -f ../packaging/SGI/Makefile clean
45 make -f ../packaging/SGI/Makefile all
47 if [ $errstat -ne 0 ]; then
48 echo "Error $errstat building sources\n";
54 # generate the packages
56 echo Generating Inst Packages
57 ./spec.pl # create the samba.spec file
59 if [ $errstat -ne 0 ]; then
60 echo "Error $errstat creating samba.spec\n";
64 ./idb.pl # create the samba.idb file
66 if [ $errstat -ne 0 ]; then
67 echo "Error $errstat creating samba.idb\n";
71 if [ ! -d bins ]; then
76 /usr/sbin/gendist -rbase / -sbase ../.. -idb samba.idb -spec samba.spec -dist ./bins -all