merge from 2.2 - build winbindd and libsmbclient
[kai/samba.git] / packaging / SGI / mkrelease.sh
index 1a565a73e75c4160e510910dc5c19e554dd4b639..6ba486c673f180e8b2b1c76f402be2f47d3d6b7f 100755 (executable)
@@ -19,14 +19,14 @@ if [ ! -f ../../source/Makefile ]; then
   doclean="clean"
 fi
 
-if [ "$1" = "clean" ]; then
+if [ "$1" = "clean" ] || [ "$1" = "cleanonly" ]; then
   doclean=$1
   shift
 fi
 
 export SGI_ABI ISA CC
 
-if [ "$doclean" = "clean" ]; then
+if [ "$doclean" = "clean" ] || [ "$doclean" = "cleanonly" ]; then
   cd ../../source
   if [ -f Makefile ]; then
     make distclean
@@ -34,6 +34,7 @@ if [ "$doclean" = "clean" ]; then
   rm -rf bin/*.profile bin/*.noquota
   cd ../packaging/SGI
   rm -rf bins catman html codepages swat samba.idb samba.spec
+  if [ "$doclean" = "cleanonly" ]; then exit 0 ; fi
 fi
 
 # create the catman versions of the manual pages
@@ -88,7 +89,7 @@ fi
 mv  bin/smbd bin/smbd.noquota
 
 echo "=====================  Making Regular versions ======================="
-make -P "CFLAGS=-O -g3 -woff 1188" all
+make -P "CFLAGS=-O -g3 -woff 1188" all libsmbclient
 errstat=$?
 if [ $errstat -ne 0 ]; then
   echo "Error $errstat building sources\n";