leosimons    2003/08/10 13:49:47

  Added:       .        sign.sh dist.sh
  Log:
  
  
  Revision  Changes    Path
  1.1                  avalon-components/sign.sh
  
  Index: sign.sh
  ===================================================================
  echo =============================================================
  echo  hacky automated gpg signing script, by LSD
  echo =======================================v0.1-Cygwin===========
  echo
  echo \
  'Tip: Temporarily disable your passphrase to avoid typing it
  a hundred times. Make sure your machine is disconnected
  before you do this!
  The commands go somewhat like:
  
      gpg --edit-key <YOUR ID>
      > key <YOURKEY>
      > passwd
      <YOUR PASSPHRASE>
      <enter>
      <enter>
      yes
      quit
      yes
  
  then run this script. After running the script, make sure you
  re-enable your passphrase:
  
      gpg --edit-key <YOUR ID>
      > key <YOURKEY>
      > passwd
      <YOUR PASSPHRASE>
      <YOUR PASSPHRASE>
      quit
      yes
  
   -------------------------------------------------------------
   Now signing the distributions
   -------------------------------------------------------------
  '
  
  for i in \
      `find . -type d -maxdepth 1 \
      ! -name 'CVS' ! -name 'target' ! -name 'site' ! -name 'src' ! -name '\.' ! -name 
'threads-tutorial'`
  do
  
      echo - Signing the $i distributions
      cd $i/target/distributions
      for j in `find . -type f -maxdepth 1 -name '*.zip' -or -name '*.gz'`
      do
        #echo gpg -v --output $j.asc --detach-sig --armor $j
        gpg -v --output $j.asc --detach-sig --armor $j
      done
  
      echo - Signing the $i jars
      cd ..
      for j in *.jar
      do
        #echo gpg -v --output $j.asc --detach-sig --armor $j
        gpg -v --output $j.asc --detach-sig --armor $j
      done
  
      cd ../..
  done
  
  
  
  
  1.1                  avalon-components/dist.sh
  
  Index: dist.sh
  ===================================================================
  echo =============================================================
  echo          Stupid Shell Script for maven reactor problem
  echo =============================================================
  
  echo Doing cleanup
  echo -------------------------------------------------------------
  
  maven do-clean 2>&1 3>&1 4>&1 > dist-clean-log.txt
  
  echo
  echo Building and installing snapshot jars
  echo -------------------------------------------------------------
  maven 2>&1 3>&1 4>&1 > dist-build-log.txt
  
  echo
  echo -------------------------------------------------------------
  echo Building distributions
  echo -------------------------------------------------------------
  echo
  
  for i in \
      `find . -type d -maxdepth 1 \
      ! -name 'CVS' ! -name 'target' ! -name 'site' ! -name 'src' ! -name '\.' ! -name 
'threads-tutorial'`
  do
      cd $i
      echo - BUILDING DIST for: $i
      maven dist 2>&1 3>&1 4>&1 > $i-dist-log.txt
      cd ..
  done
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to