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 if [ "$1" = "clean" ]; then
12 rm -rf bins catman html codepages swat Makefile samba.idb samba.spec
15 # create the catman versions of the manual pages
17 echo Making manual pages
20 if [ $errstat -ne 0 ]; then
21 echo "Error $errstat making manual pages\n";
28 ./makefile.pl $1 # create the Makefile for the specified OS ver
30 if [ $errstat -ne 0 ]; then
31 echo "Error $errstat creating Makefile\n";
36 # make -f ../packaging/SGI/Makefile clean
37 make -f ../packaging/SGI/Makefile all
39 if [ $errstat -ne 0 ]; then
40 echo "Error $errstat building sources\n";
46 # generate the packages
48 echo Generating Inst Packages
49 ./spec.pl # create the samba.spec file
51 if [ $errstat -ne 0 ]; then
52 echo "Error $errstat creating samba.spec\n";
56 ./idb.pl # create the samba.idb file
58 if [ $errstat -ne 0 ]; then
59 echo "Error $errstat creating samba.idb\n";
63 if [ ! -d bins ]; then
68 /usr/sbin/gendist -rbase / -sbase ../.. -idb samba.idb -spec samba.spec -dist ./bins -all