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.
11 if [ "$1" = "clean" ]; then
16 if [ "$doclean" = "clean" ]; then
18 if [ -f Makefile ]; then
22 rm -rf bins catman html codepages swat samba.idb samba.spec
25 # create the catman versions of the manual pages
27 if [ "$doclean" = "clean" ]; then
28 echo Making manual pages
31 if [ $errstat -ne 0 ]; then
32 echo "Error $errstat making manual pages\n";
38 if [ "$doclean" = "clean" -o ! -f Makefile ]; then
39 echo Create SGI specific Makefile
41 chmod +x configure.developer
43 chmod +x config.status
45 ./configure --prefix=/usr --mandir=/usr/src/man
47 if [ $errstat -ne 0 ]; then
48 echo "Error $errstat creating Makefile\n";
58 if [ "$1" = "5" ]; then
59 myflags="CFLAGS=-O -g3"
62 myflags="CFLAGS=-O -g3"
67 if [ $errstat -ne 0 ]; then
68 echo "Error $errstat building sources\n";
74 # generate the packages
76 echo Generating Inst Packages
77 ./spec.pl # create the samba.spec file
79 if [ $errstat -ne 0 ]; then
80 echo "Error $errstat creating samba.spec\n";
84 ./idb.pl # create the samba.idb file
86 if [ $errstat -ne 0 ]; then
87 echo "Error $errstat creating samba.idb\n";
91 if [ ! -d bins ]; then
96 /usr/sbin/gendist -rbase / -sbase ../.. -idb samba.idb -spec samba.spec -dist ./bins -all