3 # This file goes through all the necessary steps to build a release package.
7 # You can specify clean to do a make clean before building. Make clean
8 # will also run configure and generate the required Makefile.
10 # This will build an smbd.noquota, smbd.profile, nmbd.profile and the
11 # entire package with quota support and acl support.
18 if [ ! -f ..
/..
/source
/Makefile
]; then
22 if [ "$1" = "clean" ]; then
29 if [ "$doclean" = "clean" ]; then
31 if [ -f Makefile
]; then
34 rm -rf bin
/*.profile bin
/*.noquota
36 rm -rf bins catman html codepages swat samba.idb samba.spec
39 # create the catman versions of the manual pages
41 if [ "$doclean" = "clean" ]; then
42 echo Making manual pages
45 if [ $errstat -ne 0 ]; then
46 echo "Error $errstat making manual pages\n";
52 if [ "$doclean" = "clean" ]; then
53 echo Create SGI specific Makefile
54 .
/configure
--prefix=/usr
/samba
--sbindir=/usr
/samba
/bin
--mandir=/usr
/share
/catman
--with-acl-support --with-quotas --with-smbwrapper
56 if [ $errstat -ne 0 ]; then
57 echo "Error $errstat creating Makefile\n";
67 echo "===================== Making Profile versions ======================="
70 make -P "CFLAGS=-O -g3 -D WITH_PROFILE" bin
/smbd bin
/nmbd
72 if [ $errstat -ne 0 ]; then
73 echo "Error $errstat building profile sources\n";
76 mv bin
/smbd bin
/smbd.profile
77 mv bin
/nmbd bin
/nmbd.profile
79 echo "===================== Making No Quota versions ======================="
82 make -P "CFLAGS=-O -g3 -D QUOTAOBJS=smbd/noquotas.o" bin
/smbd
84 if [ $errstat -ne 0 ]; then
85 echo "Error $errstat building noquota sources\n";
88 mv bin
/smbd bin
/smbd.noquota
90 echo "===================== Making smbwrapper.32.so ======================="
91 # cannot use -mips3 with 32 bit shared libraries so reset the ISA variable
92 # just for this object
95 make -P "CFLAGS=-O -g3" bin
/smbwrapper
.32.so
97 if [ $errstat -ne 0 ]; then
98 echo "Error $errstat building sources\n";
103 echo "===================== Making Regular versions ======================="
104 make -P "CFLAGS=-O -g3" all nsswitch
/libnss_wins.so
106 if [ $errstat -ne 0 ]; then
107 echo "Error $errstat building sources\n";
113 # generate the packages
115 echo Generating Inst Packages
116 .
/spec.pl
# create the samba.spec file
118 if [ $errstat -ne 0 ]; then
119 echo "Error $errstat creating samba.spec\n";
123 .
/idb.pl
# create the samba.idb file
125 if [ $errstat -ne 0 ]; then
126 echo "Error $errstat creating samba.idb\n";
130 if [ ! -d bins
]; then
135 /usr
/sbin
/gendist
-rbase / -sbase ..
/..
-idb samba.idb
-spec samba.spec
-dist .
/bins
-all