home *** CD-ROM | disk | FTP | other *** search
/ Dream 52 / Amiga_Dream_52.iso / Linux / Divers / samba-1.9.18p7.tar.gz / samba-1.9.18p7.tar / samba-1.9.18p7 / packaging / SGI / mkrelease.sh < prev    next >
Linux/UNIX/POSIX Shell Script  |  1998-05-08  |  2KB  |  78 lines

  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. doclean=""
  8.  
  9. if [ "$1" = "clean" ]; then
  10.   doclean=$1
  11.   shift
  12. fi
  13.  
  14. echo Create SGI specific Makefile
  15. ./makefile.pl $1        # create the Makefile for the specified OS ver
  16.  
  17. if [ "$doclean" = "clean" ]; then
  18.   cd ../../source
  19.   make -f ../packaging/SGI/Makefile clean
  20.   cd ../packaging/SGI
  21.   rm -rf bins catman html codepages swat samba.idb samba.spec
  22. fi
  23.  
  24. # create the catman versions of the manual pages
  25. #
  26. echo Making manual pages
  27. ./mkman
  28. errstat=$?
  29. if [ $errstat -ne 0 ]; then
  30.   echo "Error $errstat making manual pages\n";
  31.   exit $errstat;
  32. fi
  33.  
  34. # build the sources
  35. #
  36. echo Making binaries
  37. errstat=$?
  38. if [ $errstat -ne 0 ]; then
  39.   echo "Error $errstat creating Makefile\n";
  40.   exit $errstat;
  41. fi
  42.  
  43. cd ../../source
  44. # make -f ../packaging/SGI/Makefile clean
  45. make -f ../packaging/SGI/Makefile all
  46. errstat=$?
  47. if [ $errstat -ne 0 ]; then
  48.   echo "Error $errstat building sources\n";
  49.   exit $errstat;
  50. fi
  51.  
  52. cd ../packaging/SGI
  53.  
  54. # generate the packages
  55. #
  56. echo Generating Inst Packages
  57. ./spec.pl            # create the samba.spec file
  58. errstat=$?
  59. if [ $errstat -ne 0 ]; then
  60.   echo "Error $errstat creating samba.spec\n";
  61.   exit $errstat;
  62. fi
  63.  
  64. ./idb.pl            # create the samba.idb file
  65. errstat=$?
  66. if [ $errstat -ne 0 ]; then
  67.   echo "Error $errstat creating samba.idb\n";
  68.   exit $errstat;
  69. fi
  70.  
  71. if [ ! -d bins ]; then
  72.    mkdir bins
  73. fi
  74.  
  75. # do the packaging
  76. /usr/sbin/gendist -rbase / -sbase ../.. -idb samba.idb -spec samba.spec -dist ./bins -all
  77.  
  78.