summaryrefslogtreecommitdiff
path: root/packaging/SGI
diff options
context:
space:
mode:
authorHerb Lewis <herb@samba.org>1998-11-16 16:36:57 +0000
committerHerb Lewis <herb@samba.org>1998-11-16 16:36:57 +0000
commit67d5258486da64e0b272093614d16e6e8794ee1c (patch)
tree2dd6901f5e911812fa6a3d6be9d980825ba11da5 /packaging/SGI
parent0b2e84243c54f86d25364a8b8ff2efeff2ac9b2d (diff)
downloadsamba-67d5258486da64e0b272093614d16e6e8794ee1c.tar.gz
add some more comments and clean it up a little more.
(This used to be commit 73e4b91a9d152eb3d56997c9108d536d38e3c07e)
Diffstat (limited to 'packaging/SGI')
-rwxr-xr-xpackaging/SGI/mkrelease.sh25
1 files changed, 22 insertions, 3 deletions
diff --git a/packaging/SGI/mkrelease.sh b/packaging/SGI/mkrelease.sh
index 4261d1ee00f..921476f3751 100755
--- a/packaging/SGI/mkrelease.sh
+++ b/packaging/SGI/mkrelease.sh
@@ -1,13 +1,25 @@
#!/bin/sh
# This file goes through all the necessary steps to build a release package.
-# You may specify a OS major version number (4, 5, or 6) to specify which
-# OS release to build. If no version number is given it will default to 6.
+# syntax:
+# mkrelease.sh [5] [clean] [targets ....]
+#
+# You may specify 5 to build for IRIX 5.3
+#
+# You can specify clean to do a make clean before building. Make clean
+# will also run configure and generate the required Makefile.
+#
+# You can specify which targets to build. If targets are specified, the
+# specified targets will be built but inst packages will not be generated.
doclean=""
SGI_ABI=-n32
CC=cc
+if [ ! -f ../../source/Makefile ]; then
+ doclean="clean"
+fi
+
if [ "$1" = "clean" ]; then
doclean=$1
shift
@@ -50,7 +62,7 @@ if [ "$doclean" = "clean" ]; then
fi
cd ../../source
-if [ "$doclean" = "clean" -o ! -f Makefile ]; then
+if [ "$doclean" = "clean" ]; then
echo Create SGI specific Makefile
chmod +x configure
chmod +x configure.developer
@@ -79,6 +91,13 @@ fi
cd ../packaging/SGI
+#
+# Don't generate packages if targets were specified
+#
+if [ "$1" != "" ]; then
+ exit 0;
+fi
+
# generate the packages
#
echo Generating Inst Packages