cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From giac...@apache.org
Subject cvs commit: cocoon-2.1/tools/bin create-repository-jars.sh
Date Mon, 02 Feb 2004 20:28:03 GMT
giacomo     2004/02/02 12:28:03

  Modified:    tools/bin create-repository-jars.sh
  Log:
  finally got it working for www.apache.org
  
  Revision  Changes    Path
  1.7       +11 -10    cocoon-2.1/tools/bin/create-repository-jars.sh
  
  Index: create-repository-jars.sh
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/tools/bin/create-repository-jars.sh,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -d -b -u -r1.6 -r1.7
  --- create-repository-jars.sh	2 Feb 2004 20:12:36 -0000	1.6
  +++ create-repository-jars.sh	2 Feb 2004 20:28:03 -0000	1.7
  @@ -1,4 +1,5 @@
  -#!/bin/sh
  +#!/bin/sh -x
  +
   
   # $Id$
   
  @@ -48,8 +49,8 @@
   fi
   
   # Where is the md5sum command to be used
  -if [ "$MD5CMD" = "" ]; then
  -  MD5CMD=/sbin/md5
  +if [ "$MD5SUM" = "" ]; then
  +  MD5SUM=/sbin/md5
   fi
   
   # ------- NO NEED TO CHANGE ANYTHING BELOW HERE ----------
  @@ -196,12 +197,12 @@
       CMD="$RM \
            cd $REMOTEPATH/jars; \
            ln -fs cocoon$BLOCKPART-$TVERSION.jar cocoon$BLOCKPART-SNAPSHOT.jar; \
  -         echo $TVERSION >cocoon$BLOCKPART-snapshot.version"
  +         echo $TVERSION >cocoon$BLOCKPART-snapshot.version;"
     else
       CMD=""
     fi
  -  ssh $REMOTEHOST "$CMD; \
  -                   $MD5SUM $REMOTEPATH/jars/cocoon$BLOCKPART-$TVERSION.jar | \
  +  ssh $REMOTEHOST "$CMD \
  +                   $MD5SUM <$REMOTEPATH/jars/cocoon$BLOCKPART-$TVERSION.jar | \
                        sed 's/ .*$//' >$REMOTEPATH/jars/cocoon$BLOCKPART-$TVERSION.jar.md5;
\
                      chmod g+w $REMOTEPATH/jars/cocoon$BLOCKPART-$TVERSION.*"
   done
  @@ -221,12 +222,12 @@
     CMD="$RM \
          cd $REMOTEPATH/wars; \
          ln -fs cocoon-war-$TVERSION.war cocoon-war-SNAPSHOT.war; \
  -       echo $TVERSION >cocoon-war-snapshot.version"
  +       echo $TVERSION >cocoon-war-snapshot.version;"
   else
     CMD=""
   fi
  -ssh $REMOTEHOST "$CMD; \
  -                 $MD5SUM $REMOTEPATH/wars/cocoon-war-$TVERSION.jar | \
  +ssh $REMOTEHOST "$CMD \
  +                 $MD5SUM <$REMOTEPATH/wars/cocoon-war-$TVERSION.jar | \
                      sed 's/ .*$//' >$REMOTEPATH/jars/cocoon-war-$TVERSION.jar.md5; \
                    chmod g+w $REMOTEPATH/jars/cocoon-war-$TVERSION.*"
   
  
  
  

Mime
View raw message