Author: shadzik Date: Wed Apr 29 20:54:34 2009 New Revision: 10341 Modified: toys/stbr/cvslog.sh Log: - 0.8.1
Modified: toys/stbr/cvslog.sh ============================================================================== --- toys/stbr/cvslog.sh (original) +++ toys/stbr/cvslog.sh Wed Apr 29 20:54:34 2009 @@ -1,7 +1,7 @@ #!/bin/bash # author: shadzik at pld-linux dot org # use with stbr.tcl at exactly the same version -# Version: 0.8 +# Version: 0.8.1 CVSROOT=":pserver:[email protected]/cvsroot/" HOST="pld-linux.org" @@ -17,29 +17,29 @@ if [ "$BUILDER" == "upgrade" ]; then -rm -f SPECS/$SPEC >/dev/null 2>&1 +rm -fr packages/$SPEC >/dev/null 2>&1 if [ "$BRANCH" == "HEAD" ]; then send_branch="" - cvs -d $CVSROOT get SPECS/$SPEC >/dev/null 2>&1 + cvs -d $CVSROOT get packages/$SPEC >/dev/null 2>&1 else - cvs -d $CVSROOT up -r $BRANCH SPECS/$SPEC >/dev/null 2>&1 + cvs -d $CVSROOT up -r $BRANCH packages/$SPEC >/dev/null 2>&1 fi -ADD_INFO=`grep -B 50 -A 2 Name: SPECS/$SPEC` +ADD_INFO=`grep -B 50 -A 2 Name: packages/$SPEC` fi -spec_name=$(awk '/Name:/ {print $2}' SPECS/$SPEC) -spec_ver=$(awk '/Version:/ {print $2}' SPECS/$SPEC |tr . _) -spec_rel=$(awk '/Release:/ {print $2}' SPECS/$SPEC |grep -vE "(\.)") +spec_name=$(awk '/Name:/ {print $2}' packages/$SPEC) +spec_ver=$(awk '/Version:/ {print $2}' packages/$SPEC |tr . _) +spec_rel=$(awk '/Release:/ {print $2}' packages/$SPEC |grep -vE "(\.)") if [ "x$spec_rel" != "x" ]; then auto_tag="auto-$DIST-$spec_name-$spec_ver-$spec_rel" -cvs -d $CVSROOT status -v SPECS/$SPEC |grep $auto_tag >/dev/null && TAG_INFO="Found $auto_tag tag. You need to increase spec release to successfully send upgrade." || TAG_INFO="No $auto_tag tag found. It's safe to send upgrade." +cvs -d $CVSROOT status -v packages/$SPEC |grep $auto_tag >/dev/null && TAG_INFO="Found $auto_tag tag. You need to increase spec release to successfully send upgrade." || TAG_INFO="No $auto_tag tag found. It's safe to send upgrade." else TAG_INFO="Release seems not to be integer. Please correct this before sending upgrade." fi -LAST_AUTOTAG=$(cvs -d ":pserver:[email protected]/cvsroot/" status -v SPECS/$SPEC |grep auto-$DIST |head -1 |awk '{print $1}') +LAST_AUTOTAG=$(cvs -d ":pserver:[email protected]/cvsroot/" status -v packages/$SPEC |grep auto-$DIST |head -1 |awk '{print $1}') if [ "x$LAST_AUTOTAG" != "x" ]; then LAST_AT="$LAST_AUTOTAG" _______________________________________________ pld-cvs-commit mailing list [email protected] http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit
