/[CCFs]/bin/buildagain
ViewVC logotype

Diff of /bin/buildagain

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

revision 1.1 by ccflib, Fri Nov 11 15:31:54 2005 UTC revision 1.8 by ccflib, Fri Nov 11 15:45:20 2005 UTC
# Line 1  Line 1 
1  #! /usr/local/bin/bash  #! /usr/local/bin/bash
2  #  #
3  # $Id$  # $Id: buildagain,v 1.7 2005/11/11 15:43:38 ccflib Exp $
4  #  #
5  # + Build again a specific set of CCF packages  # + Build again a specific set of CCF packages
6  #  #
# Line 9  Line 9 
9  #  + 1: shell errors (cd mkdir ...)  #  + 1: shell errors (cd mkdir ...)
10  #  + 2: SAS set up cannot find deceit  #  + 2: SAS set up cannot find deceit
11    
12  if [ -z "$1" ] ; then  if [ -z $1 ] ; then
13     echo "Abort: Enter the package to process"     echo "Abort: Undefined package to process again"
14     exit     exit -1
15  fi  fi
16    
17  pkg=$1  pkg=$1
# Line 39  me=`basename $0` Line 39  me=`basename $0`
39  PATH=$HOME/bin:$PATH  PATH=$HOME/bin:$PATH
40  export PATH  export PATH
41    
42    plist=`find ${builtdir} -name "*${pkg}*" -print`
 plist=`find ${builtdir} -name "*${pkg}* -print`  
43    
44  if [ -z "$plist" ] ; then  if [ -z "$plist" ] ; then
45     exit -1     exit -1
# Line 57  if [ -d $builddir ] ; then Line 56  if [ -d $builddir ] ; then
56  fi  fi
57  mkdir -p $builddir  mkdir -p $builddir
58  cd $builddir || exit 1  cd $builddir || exit 1
59  echo -n Removing the contents of $builddir ...  echo Removing the contents of $builddir ...
60  rm -fr *  rm -fr *
61    
62  mkdir packages || exit 1  mkdir packages || exit 1
63    
64  for p in $plist; do  for p in $plist; do
   
65     echo -n Unpacking `basename $p` ...     echo -n Unpacking `basename $p` ...
66     tar -C packages -xzf $p || (echo FAILED, aborting ; exit 1)     tar -C packages -xzf $p || (echo FAILED, aborting ; exit 1)
67     echo " done."     echo " done."
   
68  done  done
69    
70  # updating the dev directory for any possible change in its files  # updating the dev directory for any possible change in its files
# Line 83  cd ~- ; cd packages Line 80  cd ~- ; cd packages
80    
81    
82  for p in $plist; do  for p in $plist; do
83       echo "making package $p"
84     thisp=`basename $p '.tgz' | sed -e 's/-[0-9]\{1,\}\.[0-9]\{1,\}$//'`     thisp=`basename $p '.tgz' | sed -e 's/-[0-9]\{1,\}\.[0-9]\{1,\}$//'`
85     buildpkg $thisp && (echo ok; mv $p $builtdir) || (echo FAILED ;   cat $builddir/build.log)  #   buildpkg $thisp && (echo ok) || (echo FAILED ;   cat $builddir/build.log)
86  done  done
   
 ###emptypkgdir  

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.8

  ViewVC Help
Powered by ViewVC 1.1.27