From feb9bf86723bce7dd1e81250b92191c370228a45 Mon Sep 17 00:00:00 2001 From: Herb Lewis Date: Tue, 21 Aug 2001 23:56:04 +0000 Subject: [PATCH] sync with 2.2 branch --- packaging/SGI/mkrelease.sh | 33 +++++++++++++-------------------- 1 file changed, 13 insertions(+), 20 deletions(-) diff --git a/packaging/SGI/mkrelease.sh b/packaging/SGI/mkrelease.sh index 6eab242de84..ef07a2e2d42 100755 --- a/packaging/SGI/mkrelease.sh +++ b/packaging/SGI/mkrelease.sh @@ -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";