/[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.2 by rtoy, Wed Mar 18 15:37:29 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  # install -d ${GROUP} ${OWNER} -m 0755 $DESTDIR/lib/cmucl/lib/fonts/  # install -d ${GROUP} ${OWNER} -m 0755 $DESTDIR/lib/cmucl/lib/fonts/
74  # install ${GROUP} ${OWNER} -m 0644 misc/8x13u.snf misc/fonts.dir \  # install ${GROUP} ${OWNER} -m 0644 misc/8x13u.snf misc/fonts.dir \
75  #       $DESTDIR/lib/cmucl/lib/fonts/  #       $DESTDIR/lib/cmucl/lib/fonts/
# Line 67  install ${GROUP} ${OWNER} -m 0644 src/he Line 78  install ${GROUP} ${OWNER} -m 0644 src/he
78          $TARGET/hemlock/spell-dictionary.bin \          $TARGET/hemlock/spell-dictionary.bin \
79          $DESTDIR/lib/cmucl/lib/          $DESTDIR/lib/cmucl/lib/
80  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/  
81  install ${GROUP} ${OWNER} -m 0755 $TARGET/motif/server/motifd \  install ${GROUP} ${OWNER} -m 0755 $TARGET/motif/server/motifd \
82          $DESTDIR/lib/cmucl/lib/          $DESTDIR/lib/cmucl/lib/
83    
84  sync ; sleep 1 ; sync ; sleep 1 ; sync  if [ -z "$INSTALL_DIR" ]; then
85  echo Tarring extra components      sync ; sleep 1 ; sync ; sleep 1 ; sync
86  if [ -n "$ENABLE_GZIP" ]; then      echo Tarring extra components
87      echo "  Compressing with gzip"      if [ -n "$ENABLE_GZIP" ]; then
88      ( cd $DESTDIR >/dev/null ; tar cf - lib ) | \          echo "  Compressing with gzip"
89          gzip -c > cmucl-$VERSION-$ARCH-$OS.extra.tar.gz          ( cd $DESTDIR >/dev/null ; tar cf - lib ) | \
90             gzip -c > cmucl-$VERSION-$ARCH-$OS.extra.tar.gz
91        fi
92        if [ -n "$ENABLE_BZIP" ]; then
93            echo "  Compressing with bzip"
94            ( cd $DESTDIR >/dev/null ; tar cf - lib ) | \
95             bzip2 > cmucl-$VERSION-$ARCH-$OS.extra.tar.bz2
96        fi
97    
98        echo Cleaning $DESTDIR
99        [ -d $DESTDIR ] && rm -rf $DESTDIR
100        echo Done
101  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.2

  ViewVC Help
Powered by ViewVC 1.1.5