3 # This file goes through all the necessary steps to build a release package.
5 # mkrelease.sh [5] [clean] [targets ....]
7 # You may specify 5 to build for IRIX 5.3
9 # You can specify clean to do a make clean before building. Make clean
10 # will also run configure and generate the required Makefile.
12 # You can specify which targets to build. If targets are specified, the
13 # specified targets will be built but inst packages will not be generated.
20 if [ ! -f ..
/..
/source
/Makefile
]; then
24 if [ "$1" = "clean" ]; then
27 elif [ "$1" = "5" ]; then
33 # check again in case they put the args in the wrong order
35 if [ "$1" = "clean" ]; then
38 elif [ "$1" = "5" ]; then
46 if [ "$doclean" = "clean" ]; then
48 if [ -f Makefile
]; then
52 rm -rf bins catman html codepages swat samba.idb samba.spec
55 # create the catman versions of the manual pages
57 if [ "$doclean" = "clean" ]; then
58 echo Making manual pages
61 if [ $errstat -ne 0 ]; then
62 echo "Error $errstat making manual pages\n";
68 if [ "$doclean" = "clean" ]; then
69 echo Create SGI specific Makefile
70 .
/configure
--prefix=/usr
/samba
--mandir=/usr
/share
/catman
--with-acl-support --with-smbwrapper
72 if [ $errstat -ne 0 ]; then
73 echo "Error $errstat creating Makefile\n";
83 make "CFLAGS=-O -g3" $
*
85 if [ $errstat -ne 0 ]; then
86 echo "Error $errstat building sources\n";
93 # Don't generate packages if targets were specified
95 if [ "$1" != "" ]; then
99 # generate the packages
101 echo Generating Inst Packages
102 .
/spec.pl
# create the samba.spec file
104 if [ $errstat -ne 0 ]; then
105 echo "Error $errstat creating samba.spec\n";
109 .
/idb.pl
# create the samba.idb file
111 if [ $errstat -ne 0 ]; then
112 echo "Error $errstat creating samba.idb\n";
116 if [ ! -d bins
]; then
121 /usr
/sbin
/gendist
-rbase / -sbase ..
/..
-idb samba.idb
-spec samba.spec
-dist .
/bins
-all