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.
7 # create the catman versions of the manual pages
9 echo Making manual pages
12 if [ $errstat -ne 0 ]; then
13 echo "Error $errstat making manual pages\n";
20 ./makefile.pl $1 # create the Makefile for the specified OS ver
22 if [ $errstat -ne 0 ]; then
23 echo "Error $errstat creating Makefile\n";
28 # make -f ../packaging/SGI/Makefile clean
29 make -f ../packaging/SGI/Makefile all
31 if [ $errstat -ne 0 ]; then
32 echo "Error $errstat building sources\n";
38 # generate the packages
40 echo Generating Inst Packages
41 ./spec.pl # create the samba.spec file
43 if [ $errstat -ne 0 ]; then
44 echo "Error $errstat creating samba.spec\n";
48 ./idb.pl # create the samba.idb file
50 if [ $errstat -ne 0 ]; then
51 echo "Error $errstat creating samba.idb\n";
55 if [ ! -d bins ]; then
60 /usr/sbin/gendist -rbase / -sbase ../.. -idb samba.idb -spec samba.spec -dist ./bins -all