sync with 2.2 branch
authorHerb Lewis <herb@samba.org>
Tue, 21 Aug 2001 23:56:04 +0000 (23:56 +0000)
committerHerb Lewis <herb@samba.org>
Tue, 21 Aug 2001 23:56:04 +0000 (23:56 +0000)
packaging/SGI/mkrelease.sh

index 6eab242de846c3b7f15cf9b9721d9d55aeec5609..ef07a2e2d42a4ac2949171186034470b305c78ac 100755 (executable)
@@ -2,9 +2,7 @@
 
 # This file goes through all the necessary steps to build a release package.
 # syntax:
-#     mkrelease.sh [5] [clean] [targets ....]
-#
-# You may specify 5 to build for IRIX 5.3
+#     mkrelease.sh [clean]
 #
 # You can specify clean to do a make clean before building. Make clean
 # will also run configure and generate the required Makefile.
@@ -24,21 +22,6 @@ fi
 if [ "$1" = "clean" ]; then
   doclean=$1
   shift
-elif [ "$1" = "5" ]; then
-  SGI_ABI=-32
-  ISA=""
-  shift
-fi
-
-# check again in case they put the args in the wrong order
-
-if [ "$1" = "clean" ]; then
-  doclean=$1
-  shift
-elif [ "$1" = "5" ]; then
-  SGI_ABI=-32
-  ISA=""
-  shift
 fi
 
 export SGI_ABI ISA CC
@@ -67,7 +50,7 @@ fi
 cd ../../source
 if [ "$doclean" = "clean" ]; then
   echo Create SGI specific Makefile
-  ./configure --prefix=/usr/samba --mandir=/usr/share/catman --with-acl-support --with-smbwrapper
+  ./configure --prefix=/usr/samba --sbindir='${exec_prefix}/bin' --mandir=/usr/share/catman --with-acl-support --with-smbwrapper
   errstat=$?
   if [ $errstat -ne 0 ]; then
     echo "Error $errstat creating Makefile\n";
@@ -80,7 +63,17 @@ fi
 #
 echo Making binaries
 
-make "CFLAGS=-O -g3" $*
+make clean
+make "CFLAGS=-O -g3 -D WITH_PROFILE" CHECK bin/smbd bin/nmbd
+errstat=$?
+if [ $errstat -ne 0 ]; then
+  echo "Error $errstat building profile sources\n";
+  exit $errstat;
+fi
+mv  bin/smbd bin/smbd.profile
+mv  bin/nmbd bin/nmbd.profile
+make clean
+make "CFLAGS=-O -g3" all
 errstat=$?
 if [ $errstat -ne 0 ]; then
   echo "Error $errstat building sources\n";