[BACK]Return to release.sh CVS log [TXT][DIR] Up to [local] / openbsd / update_openbsd

Diff for /openbsd/update_openbsd/release.sh between version 1.7 and 1.13

version 1.7, 2006/11/07 17:32:10 version 1.13, 2007/11/19 22:08:37
Line 1 
Line 1 
 #!/bin/sh  #!/bin/sh
 # $RedRiver: release.sh,v 1.6 2006/11/07 17:09:19 andrew Exp $  # $RedRiver: release.sh,v 1.12 2007/09/09 21:40:41 andrew Exp $
 # Copyright (c) 2002 - 2006, FenderQ  # Copyright (c) 2002 - 2006, FenderQ
 # All rights reserved.  # All rights reserved.
 #  #
Line 38 
Line 38 
   
 DEST="/usr/dest"  DEST="/usr/dest"
 RELEASE="/usr/release"  RELEASE="/usr/release"
 CVSTAG=`uname -r | awk '{ sub("\\\.","_"); print "OPENBSD_" $0 }'`  CVSTAG=${CVSTAG:=`uname -sr | tr '[:lower:] .' '[:upper:]_'`}
 #SOURCES="src ports XF4"  #SOURCES="src ports XF4"
 #SOURCES="src ports"  #SOURCES="src ports"
 SOURCES="src XF4"  SOURCES="src ports XF4"
   
 # Anonymous CVS - http://www.openbsd.org/anoncvs.html  # Anonymous CVS - http://www.openbsd.org/anoncvs.html
 CVSROOT="anoncvs@anoncvs3.usa.openbsd.org:/cvs"  #CVSROOT="anoncvs@anoncvs3.usa.openbsd.org:/cvs"
   #CVSROOT="anoncvs@anoncvs1.usa.openbsd.org:/cvs"
   CVSROOT="anoncvs@rt.fm:/cvs"
 export CVSROOT  export CVSROOT
   
 install_sources() {  install_sources() {
Line 59 
Line 61 
 update_sources() {  update_sources() {
         echo "********** Update sources **********"          echo "********** Update sources **********"
         for d in $SOURCES; do          for d in $SOURCES; do
                 cd /usr && cvs -q -z6 update -r$CVSTAG -Pd $d                  _cvstag=-r$CVSTAG
                   if [ X"$CVSTAG" == X"HEAD" ]; then
                           _cvstag=-A
                   fi
                   cd /usr && cvs -q -z6 update $_cvstag -Pd $d
         done          done
 }  }
   
Line 133 
Line 139 
         echo          echo
 }  }
   
 if [ `whoami` != "root" ]; then  
         echo "You probably should be root instead of `whoami` to run this safely."  
         exit 1  
 fi  
   
 START=`date`  START=`date`
 echo  echo
 echo "***** OpenBSD - Release Building *****"  echo "***** OpenBSD - Release Building *****"
Line 149 
Line 150 
 echo  echo
   
 if [ $# = 0 ]; then usage; exit 1; fi  if [ $# = 0 ]; then usage; exit 1; fi
   
   if [ `id -u` != "0" ]; then
           echo "You probably should be root instead of `whoami` to run this safely."
           exit 1
   fi
   
 for i in $*  for i in $*
 do  do

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.13

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>