Updating note thanks to comments from Franky Liederkerke.
[kai/samba.git] / packaging / SGI / mkrelease.sh
1 #!/bin/sh
2
3 # This file goes through all the necessary steps to build a release package.
4 # You may specify a OS major version number (4, 5, or 6) to specify which
5 # OS release to build. If no version number is given it will default to 6.
6
7 # create the catman versions of the manual pages
8 #
9 echo Making manual pages
10 ./mkman
11 errstat=$?
12 if [ $errstat -ne 0 ]; then
13   echo "Error $errstat making manual pages\n";
14   exit $errstat;
15 fi
16
17 # build the sources
18 #
19 echo Making binaries
20 ./makefile.pl $1                # create the Makefile for the specified OS ver
21 errstat=$?
22 if [ $errstat -ne 0 ]; then
23   echo "Error $errstat creating Makefile\n";
24   exit $errstat;
25 fi
26
27 cd ../../source
28 # make -f ../packaging/SGI/Makefile clean
29 make -f ../packaging/SGI/Makefile all
30 errstat=$?
31 if [ $errstat -ne 0 ]; then
32   echo "Error $errstat building sources\n";
33   exit $errstat;
34 fi
35
36 cd ../packaging/SGI
37
38 # generate the packages
39 #
40 echo Generating Inst Packages
41 ./spec.pl                       # create the samba.spec file
42 errstat=$?
43 if [ $errstat -ne 0 ]; then
44   echo "Error $errstat creating samba.spec\n";
45   exit $errstat;
46 fi
47
48 ./idb.pl                        # create the samba.idb file
49 errstat=$?
50 if [ $errstat -ne 0 ]; then
51   echo "Error $errstat creating samba.idb\n";
52   exit $errstat;
53 fi
54
55 if [ ! -d bins ]; then
56    mkdir bins
57 fi
58
59 # do the packaging
60 /usr/sbin/gendist -rbase / -sbase ../.. -idb samba.idb -spec samba.spec -dist ./bins -all
61