Changeset 28292 for other-projects

Show
Ignore:
Timestamp:
18.09.2013 19:57:41 (6 years ago)
Author:
ak19
Message:

Adding in the makeminimal command for gnomelib, to produce the minimal package

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • other-projects/cascade-make/trunk/lib/cascade-lib.bash

    r27619 r28292  
    115115 
    116116  pushd .. 
    117     
     117 
    118118  tar cvzf $dirname-$distos.tar.gz $distlist 
    119119  mv $dirname-$distos.tar.gz $dirname/. 
     
    130130  local checklist="setup.bash setup.bat perllib $GSDLOS lib $*" 
    131131  toplevel_make_dist $distos $checklist 
     132} 
     133 
     134toplevel_make_minimal() 
     135{ 
     136  local distos=$1 ; shift 
     137  local dirname=`basename $exthome`  
     138 
     139  local checklist="devel.bash setup.bash_old setup.bat_old $GSDLOS/lib $GSDLOS/bin $GSDLOS/include $*" 
     140  local distlist="" 
     141 
     142  for d in $checklist ; do 
     143    if [ -e $d ] ; then 
     144          distlist="$distlist $dirname/$d" 
     145    fi 
     146  done 
     147 
     148  pushd .. 
     149 
     150  echo "@@@@ LIST: $distlist" 
     151 
     152  local tarname="gnome-lib-minimal" 
     153  
     154  if [ $distos = "linux" ] ; then 
     155      tarname="$tarname-linux" 
     156 
     157      arch=`uname -m` 
     158      if [[ "$arch" == *"64"* ]]; then 
     159          tarname="$tarname-x64"; 
     160      fi       
     161  elif [ $distos = "darwin" ] ; then 
     162      if [ $OSTYPE != "darwin9.0" ] ; then 
     163      tarname="$tarname-$OSTYPE-intel" 
     164      else 
     165      tarname="$tarname-darwin-intel" 
     166      fi 
     167  fi 
     168 
     169  tar cvzf $tarname.tar.gz $distlist 
     170  mv $tarname.tar.gz $dirname/. 
     171 
     172  popd 
    132173} 
    133174 
     
    273314print_usage() 
    274315{ 
    275   echo "$0 [untar|configure|comiple|install|clean|distclean|tarclean|makedist]+" 
     316  echo "$0 [untar|configure|comiple|install|clean|distclean|tarclean|makedist|makeminimal]+" 
    276317  echo "  or" 
    277318  echo "$0 [installclean|help]" 
     
    291332tarclean=0 
    292333makedist=0 
     334makeminimal=0 
    293335 
    294336if [ $# -gt 0 ] ; then 
     
    303345    elif [ $cmd = "tarclean" ]     ; then tarclean=1 
    304346    elif [ $cmd = "makedist" ]     ; then makedist=1 
     347    elif [ $cmd = "makeminimal" ]     ; then makeminimal=1 
    305348 
    306349    elif [ $cmd = "installclean" ] ; then run_installclean 
     
    318361  tarclean=0 
    319362  makedist=0 
     363  makeminimal=0 
    320364fi 
    321365