/[cmucl]/src/tools/make-extra-dist.sh
ViewVC logotype

Diff of /src/tools/make-extra-dist.sh

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.4 by rtoy, Thu May 5 17:06:31 2005 UTC revision 1.4.18.4 by rtoy, Fri Apr 17 20:55:17 2009 UTC
# Line 1  Line 1 
1  #!/bin/sh  #!/bin/sh
2    
3  while getopts "G:O:bgh?" arg  while getopts "G:O:I:bgh?" arg
4  do  do
5      case $arg in      case $arg in
6          G) GROUP="-g $OPTARG" ;;          G) GROUP="-g $OPTARG" ;;
7          O) OWNER="-o $OPTARG" ;;          O) OWNER="-o $OPTARG" ;;
8            I) INSTALL_DIR=$OPTARG ;;
9          b) ENABLE_BZIP=-b ;;          b) ENABLE_BZIP=-b ;;
10          g) ENABLE_GZIP=-g  ;;          g) ENABLE_GZIP=-g  ;;
11          h | \?) usage; exit 1 ;;          h | \?) usage; exit 1 ;;
# Line 25  then Line 26  then
26          exit 2          exit 2
27  fi  fi
28    
29  DESTDIR=release  DESTDIR=${INSTALL_DIR:-release}
30  TARGET="`echo $1 | sed 's:/*$::'`"  TARGET="`echo $1 | sed 's:/*$::'`"
31  VERSION=$2  VERSION=$2
32  ARCH=$3  ARCH=$3
33  OS=$4  OS=$4
34    
35  case $ARCH in  case $ARCH in
36          x86*)           FASL=x86f ;;          x86*)           FASL="x86f sse2f" ;;
37          sparc*)         FASL=sparcf ;;          sparc*)         FASL=sparcf ;;
38          alpha*)         FASL=axpf ;;          alpha*)         FASL=axpf ;;
39          ppc*)           FASL=ppcf ;;          ppc*)           FASL=ppcf ;;
# Line 49  then Line 50  then
50          PATH=/usr/ucb:$PATH          PATH=/usr/ucb:$PATH
51  fi  fi
52    
53  echo Cleaning $DESTDIR  if [ -z "$INSTALL_DIR" ]; then
54  [ -d $DESTDIR ] && rm -rf $DESTDIR      echo Cleaning $DESTDIR
55        [ -d $DESTDIR ] && rm -rf $DESTDIR
56    fi
57    
58  echo Installing extra components  echo Installing extra components
59  install -d ${GROUP} ${OWNER} -m 0755 $DESTDIR/lib/cmucl/lib  install -d ${GROUP} ${OWNER} -m 0755 $DESTDIR/lib/cmucl/lib
60    
61  install -d ${GROUP} ${OWNER} -m 0755 $DESTDIR/lib/cmucl/lib/subsystems  install -d ${GROUP} ${OWNER} -m 0755 $DESTDIR/lib/cmucl/lib/subsystems
62  install ${GROUP} ${OWNER} -m 0644 $TARGET/clx/clx-library.$FASL \  
63          $DESTDIR/lib/cmucl/lib/subsystems/  for ext in $FASL
64  install ${GROUP} ${OWNER} -m 0644 $TARGET/hemlock/hemlock-library.$FASL \  do
65          $DESTDIR/lib/cmucl/lib/subsystems/    install ${GROUP} ${OWNER} -m 0644 $TARGET/clx/clx-library.$ext \
66          $DESTDIR/lib/cmucl/lib/subsystems/
67      install ${GROUP} ${OWNER} -m 0644 $TARGET/hemlock/hemlock-library.$ext \
68          $DESTDIR/lib/cmucl/lib/subsystems/
69      install ${GROUP} ${OWNER} -m 0644 $TARGET/interface/clm-library.$ext  \
70          $DESTDIR/lib/cmucl/lib/subsystems/
71    done
72    
73    # Not sure we really need these, but we'll install them in the
74    # ext-formats directory.  (Should they go somewhere else?)
75    #install -d ${GROUP} ${OWNER} -m 0755 $DESTDIR/lib/cmucl/lib/ext-formats
76    #for f in src/i18n/NameAliases.txt src/i18n/UnicodeData.txt
77    #do
78    #    echo $f
79    #    install ${GROUP} ${OWNER} -m 0644 $f $DESTDIR/lib/cmucl/lib/ext-formats/
80    #done
81    
82  # install -d ${GROUP} ${OWNER} -m 0755 $DESTDIR/lib/cmucl/lib/fonts/  # install -d ${GROUP} ${OWNER} -m 0755 $DESTDIR/lib/cmucl/lib/fonts/
83  # install ${GROUP} ${OWNER} -m 0644 misc/8x13u.snf misc/fonts.dir \  # install ${GROUP} ${OWNER} -m 0644 misc/8x13u.snf misc/fonts.dir \
84  #       $DESTDIR/lib/cmucl/lib/fonts/  #       $DESTDIR/lib/cmucl/lib/fonts/
# Line 67  install ${GROUP} ${OWNER} -m 0644 src/he Line 87  install ${GROUP} ${OWNER} -m 0644 src/he
87          $TARGET/hemlock/spell-dictionary.bin \          $TARGET/hemlock/spell-dictionary.bin \
88          $DESTDIR/lib/cmucl/lib/          $DESTDIR/lib/cmucl/lib/
89  install ${GROUP} ${OWNER} -m 0755 src/hemlock/mh-scan $DESTDIR/lib/cmucl/lib/  install ${GROUP} ${OWNER} -m 0755 src/hemlock/mh-scan $DESTDIR/lib/cmucl/lib/
 install ${GROUP} ${OWNER} -m 0644 $TARGET/interface/clm-library.$FASL  \  
         $DESTDIR/lib/cmucl/lib/subsystems/  
90  install ${GROUP} ${OWNER} -m 0755 $TARGET/motif/server/motifd \  install ${GROUP} ${OWNER} -m 0755 $TARGET/motif/server/motifd \
91          $DESTDIR/lib/cmucl/lib/          $DESTDIR/lib/cmucl/lib/
92    
93  sync ; sleep 1 ; sync ; sleep 1 ; sync  if [ -z "$INSTALL_DIR" ]; then
94  echo Tarring extra components      sync ; sleep 1 ; sync ; sleep 1 ; sync
95  if [ -n "$ENABLE_GZIP" ]; then      echo Tarring extra components
96      echo "  Compressing with gzip"      if [ -n "$ENABLE_GZIP" ]; then
97      ( cd $DESTDIR >/dev/null ; tar cf - lib ) | \          echo "  Compressing with gzip"
98          gzip -c > cmucl-$VERSION-$ARCH-$OS.extra.tar.gz          ( cd $DESTDIR >/dev/null ; tar cf - lib ) | \
99             gzip -c > cmucl-$VERSION-$ARCH-$OS.extra.tar.gz
100        fi
101        if [ -n "$ENABLE_BZIP" ]; then
102            echo "  Compressing with bzip"
103            ( cd $DESTDIR >/dev/null ; tar cf - lib ) | \
104             bzip2 > cmucl-$VERSION-$ARCH-$OS.extra.tar.bz2
105        fi
106    
107        echo Cleaning $DESTDIR
108        [ -d $DESTDIR ] && rm -rf $DESTDIR
109        echo Done
110  fi  fi
 if [ -n "$ENABLE_BZIP" ]; then  
     echo "  Compressing with bzip"  
     ( cd $DESTDIR >/dev/null ; tar cf - lib ) | \  
         bzip2 > cmucl-$VERSION-$ARCH-$OS.extra.tar.bz2  
 fi  
   
 echo Cleaning $DESTDIR  
 [ -d $DESTDIR ] && rm -rf $DESTDIR  
 echo Done  

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.4.18.4

  ViewVC Help
Powered by ViewVC 1.1.5