diff options
author | TAKATSU Tomonari <tota@FreeBSD.org> | 2013-06-22 11:14:34 +0000 |
---|---|---|
committer | TAKATSU Tomonari <tota@FreeBSD.org> | 2013-06-22 11:14:34 +0000 |
commit | cf7f7c61a5d6426a94d6bd2b86cf3d461caecf2f (patch) | |
tree | c47ba5d24bcc1f430990ddc31a8ddefb49aacffa /ports-mgmt | |
parent | 69cfa402933ef64a13c4befe7c4a070472deb244 (diff) | |
download | ports-cf7f7c61a5d6426a94d6bd2b86cf3d461caecf2f.tar.gz ports-cf7f7c61a5d6426a94d6bd2b86cf3d461caecf2f.zip |
Notes
Diffstat (limited to 'ports-mgmt')
-rw-r--r-- | ports-mgmt/porttools/Makefile | 2 | ||||
-rw-r--r-- | ports-mgmt/porttools/files/patch-cmd_commit.in | 48 |
2 files changed, 36 insertions, 14 deletions
diff --git a/ports-mgmt/porttools/Makefile b/ports-mgmt/porttools/Makefile index a3b816f0eef7..8ecc0aea63e3 100644 --- a/ports-mgmt/porttools/Makefile +++ b/ports-mgmt/porttools/Makefile @@ -3,7 +3,7 @@ PORTNAME= porttools PORTVERSION= 0.99 -PORTREVISION= 7 +PORTREVISION= 8 CATEGORIES= ports-mgmt MASTER_SITES= SF diff --git a/ports-mgmt/porttools/files/patch-cmd_commit.in b/ports-mgmt/porttools/files/patch-cmd_commit.in index 00fc765dca88..d3bdbc8a9d58 100644 --- a/ports-mgmt/porttools/files/patch-cmd_commit.in +++ b/ports-mgmt/porttools/files/patch-cmd_commit.in @@ -1,5 +1,5 @@ --- cmd_commit.in.orig 2009-09-10 04:59:59.000000000 +0900 -+++ cmd_commit.in 2012-12-31 21:42:13.000000000 +0900 ++++ cmd_commit.in 2013-04-27 07:26:46.000000000 +0900 @@ -1,6 +1,6 @@ # cmd_commit # Module for port(1) @@ -8,13 +8,16 @@ # # $Id: cmd_commit.in,v 1.2 2009/09/09 19:58:30 skolobov Exp $ # -@@ -59,13 +59,14 @@ +@@ -59,13 +59,17 @@ # Determine if this is a new port MODE="update" -[ "`grep '\$FreeBSD: ' Makefile`" ] || MODE="new" +svn status Makefile 2>&1 1>/dev/null | grep -qs 'svn: warning: W155007:' -+[ $? -eq 0 ] || [ "`grep '\$FreeBSD: ' Makefile`" ] || MODE="new" ++if [ $? -eq 0 ] ++then ++ MODE="new" ++fi # Run portlint(1) to validate port's sanity echo "===> Pre-commit portlint check" @@ -25,13 +28,30 @@ portlint ${FLAGS} if [ $? -ne 0 ] then -@@ -79,15 +80,12 @@ +@@ -74,21 +78,25 @@ + fi + + +-PORTSDIR="`make -V PORTSDIR`" ++# See if SVN message already exists, and use that for commit log ++MSG="svn-msg" ++FLAGS="" ++ + if [ "${MODE}" = "new" ] then - ${PORTSDIR}/Tools/scripts/addport -d `pwd` -u ${FREEFALL_USERNAME} - else +- ${PORTSDIR}/Tools/scripts/addport -d `pwd` -u ${FREEFALL_USERNAME} +-else - # Initialize CVS environment - PCVS="cvs -d ${FREEFALL_USERNAME}@pcvs.FreeBSD.org:/home/pcvs" -- ++ PORTSDIR="`make -V PORTSDIR`" + ++ if [ -e ${MSG} ] ++ then ++ FLAGS="-c ${MSG}" ++ fi ++ ++ ${PORTSDIR}/Tools/scripts/addport -d `pwd` -u ${FREEFALL_USERNAME} ${FLAGS} ++else # Make sure we are working with up-to-date version - echo "===> Pre-commit CVS update" - ${PCVS} update @@ -40,12 +60,11 @@ - # See if CVS message already exists, and use that for commit log - MSG="cvs-msg" -+ # See if SVN message already exists, and use that for commit log -+ MSG="svn-msg" - FLAGS="" +- FLAGS="" if [ -e ${MSG} ] then -@@ -99,16 +97,16 @@ + FLAGS="-F ${MSG}" +@@ -99,18 +107,18 @@ echo '=============================================' cat ${MSG} echo '=============================================' @@ -61,7 +80,10 @@ + svn commit ${FLAGS} - # Remove CVS message file only if commit was successful -+ # Remove SVN message file only if commit was successful - [ $? -eq 0 -a -e ${MSG} ] && rm ${MSG} +- [ $? -eq 0 -a -e ${MSG} ] && rm ${MSG} fi ++# Remove SVN message file only if commit was successful ++[ $? -eq 0 -a -e ${MSG} ] && rm ${MSG} + echo "===> Done" + exit 0 |