[110763] users/pixilla/scripts
pixilla at macports.org
pixilla at macports.org
Thu Sep 5 07:30:38 PDT 2013
Revision: 110763
https://trac.macports.org/changeset/110763
Author: pixilla at macports.org
Date: 2013-09-05 07:30:38 -0700 (Thu, 05 Sep 2013)
Log Message:
-----------
users/pixilla/scripts:
- Use which to find svn command.
Modified Paths:
--------------
users/pixilla/scripts/mp-base-upgrade
users/pixilla/scripts/mp-svn-ci-port
users/pixilla/scripts/mp-svn-diff-port
users/pixilla/scripts/mp-svn-log-port
users/pixilla/scripts/mp-svn-propedit
users/pixilla/scripts/mp-svn-revert-port
users/pixilla/scripts/mp-svn-st-port
users/pixilla/scripts/mp-svn-tree-setup
users/pixilla/scripts/mp-svn-up-dports
users/pixilla/scripts/mp-svn-up-trunk
users/pixilla/scripts/mp-trac-table-port
users/pixilla/scripts/mp-trunk-upgrade
Modified: users/pixilla/scripts/mp-base-upgrade
===================================================================
--- users/pixilla/scripts/mp-base-upgrade 2013-09-05 14:27:29 UTC (rev 110762)
+++ users/pixilla/scripts/mp-base-upgrade 2013-09-05 14:30:38 UTC (rev 110763)
@@ -1,7 +1,7 @@
#!/bin/bash
# mp-base-upgrade
: ${MP_PREFIX:="/opt/local"}
-: ${MP_SVNCMD:="/opt/local/bin/svn"}
+: ${MP_SVNCMD:=$(which svn)}
: ${MP_SVNTRUNK:="${MP_PREFIX}/var/macports/sources/svn.macports.org/trunk"}
: ${MP_SVNBASE:="${MP_SVNTRUNK}/base"}
echo "MP_SVNBASE=${MP_SVNBASE}"
Modified: users/pixilla/scripts/mp-svn-ci-port
===================================================================
--- users/pixilla/scripts/mp-svn-ci-port 2013-09-05 14:27:29 UTC (rev 110762)
+++ users/pixilla/scripts/mp-svn-ci-port 2013-09-05 14:30:38 UTC (rev 110763)
@@ -1,7 +1,7 @@
#!/bin/sh
# mp-svn-cu-port
# svn commit for "port dir <stdin>"
-: ${MP_SVNCMD:="/opt/local/bin/svn"}
+: ${MP_SVNCMD:=$(which svn)}
CMD="port dir $@ | sort -u"
#echo "${CMD}"
#exit
Modified: users/pixilla/scripts/mp-svn-diff-port
===================================================================
--- users/pixilla/scripts/mp-svn-diff-port 2013-09-05 14:27:29 UTC (rev 110762)
+++ users/pixilla/scripts/mp-svn-diff-port 2013-09-05 14:30:38 UTC (rev 110763)
@@ -1,7 +1,7 @@
#!/bin/sh
# mp-svn-diff-port
# Get svn diff for "port dir <stdin>"
-: ${MP_SVNCMD:="/opt/local/bin/svn"}
+: ${MP_SVNCMD:=$(which svn)}
CMD="port dir $@ | sort -u"
#echo "${CMD}"
#exit
Modified: users/pixilla/scripts/mp-svn-log-port
===================================================================
--- users/pixilla/scripts/mp-svn-log-port 2013-09-05 14:27:29 UTC (rev 110762)
+++ users/pixilla/scripts/mp-svn-log-port 2013-09-05 14:30:38 UTC (rev 110763)
@@ -1,7 +1,7 @@
#!/bin/sh
# mp-svn-log-port
# Get svn log for "port dir <stdin>"
-: ${MP_SVNCMD:="/opt/local/bin/svn"}
+: ${MP_SVNCMD:=$(which svn)}
CMD="port dir $@ | sort -u"
#echo "${CMD}"
#exit
Modified: users/pixilla/scripts/mp-svn-propedit
===================================================================
--- users/pixilla/scripts/mp-svn-propedit 2013-09-05 14:27:29 UTC (rev 110762)
+++ users/pixilla/scripts/mp-svn-propedit 2013-09-05 14:30:38 UTC (rev 110763)
@@ -4,7 +4,7 @@
# Argument = [-q] <path name>
-: ${MP_SVNCMD:="/opt/local/bin/svn"}
+: ${MP_SVNCMD:=$(which svn)}
usage()
{
Modified: users/pixilla/scripts/mp-svn-revert-port
===================================================================
--- users/pixilla/scripts/mp-svn-revert-port 2013-09-05 14:27:29 UTC (rev 110762)
+++ users/pixilla/scripts/mp-svn-revert-port 2013-09-05 14:30:38 UTC (rev 110763)
@@ -1,7 +1,7 @@
#!/bin/sh
# mp-svn-revert-port
# Recrusive svn revert for "port dir <stdin>"
-: ${MP_SVNCMD:="/opt/local/bin/svn"}
+: ${MP_SVNCMD:=$(which svn)}
CMD="port dir $@ | sort -u"
#echo "${CMD}"
#exit
Modified: users/pixilla/scripts/mp-svn-st-port
===================================================================
--- users/pixilla/scripts/mp-svn-st-port 2013-09-05 14:27:29 UTC (rev 110762)
+++ users/pixilla/scripts/mp-svn-st-port 2013-09-05 14:30:38 UTC (rev 110763)
@@ -1,7 +1,7 @@
#!/bin/sh
# mp-svn-st-port
# Get svn st for "port dir <stdin>"
-: ${MP_SVNCMD:="/opt/local/bin/svn"}
+: ${MP_SVNCMD:=$(which svn)}
CMD="port dir $@ | sort -u"
#echo "${CMD}"
#exit
Modified: users/pixilla/scripts/mp-svn-tree-setup
===================================================================
--- users/pixilla/scripts/mp-svn-tree-setup 2013-09-05 14:27:29 UTC (rev 110762)
+++ users/pixilla/scripts/mp-svn-tree-setup 2013-09-05 14:30:38 UTC (rev 110763)
@@ -5,7 +5,7 @@
DATE=$(date +%Y%m%d%H%M$S)
# set svn command
-: ${MP_SVNCMD:="/opt/local/bin/svn"}
+: ${MP_SVNCMD:=$(which svn)}
# set MacPorts prefix if not in env
: ${MP_PREFIX:="/opt/local"}
Modified: users/pixilla/scripts/mp-svn-up-dports
===================================================================
--- users/pixilla/scripts/mp-svn-up-dports 2013-09-05 14:27:29 UTC (rev 110762)
+++ users/pixilla/scripts/mp-svn-up-dports 2013-09-05 14:30:38 UTC (rev 110763)
@@ -2,7 +2,7 @@
# mp-svn-up-dports
# Set vars if not set.
: ${MP_PREFIX:="/opt/local"}
-: ${MP_SVNCMD:="/opt/local/bin/svn"}
+: ${MP_SVNCMD:=$(which svn)}
: ${MP_SVNTRUNK:="${MP_PREFIX}/var/macports/sources/svn.macports.org/trunk"}
: ${MP_SVNDPORTS:="${MP_SVNTRUNK}/dports"}
echo "MP_SVNDPORTS=${MP_SVNDPORTS}"
Modified: users/pixilla/scripts/mp-svn-up-trunk
===================================================================
--- users/pixilla/scripts/mp-svn-up-trunk 2013-09-05 14:27:29 UTC (rev 110762)
+++ users/pixilla/scripts/mp-svn-up-trunk 2013-09-05 14:30:38 UTC (rev 110763)
@@ -2,7 +2,7 @@
# mp-svn-up-trunk
# Set vars if not set.
: ${MP_PREFIX:="/opt/local"}
-: ${MP_SVNCMD:="/opt/local/bin/svn"}
+: ${MP_SVNCMD:=$(which svn)}
: ${MP_SVNTRUNK:="${MP_PREFIX}/var/macports/sources/svn.macports.org/trunk"}
echo "MP_PREFIX=${MP_PREFIX}"
echo "MP_SVNTRUNK=${MP_SVNTRUNK}"
Modified: users/pixilla/scripts/mp-trac-table-port
===================================================================
--- users/pixilla/scripts/mp-trac-table-port 2013-09-05 14:27:29 UTC (rev 110762)
+++ users/pixilla/scripts/mp-trac-table-port 2013-09-05 14:30:38 UTC (rev 110763)
@@ -1,7 +1,7 @@
#!/bin/sh
# mp-trac-table-port
# Make trac wiki formatted table of MacPorts ports matching "port echo <stdin>"
-: ${MP_SVNCMD:="/opt/local/bin/svn"}
+: ${MP_SVNCMD:=$(which svn)}
CMD="port echo $@"
#echo $CMD
#exit
Modified: users/pixilla/scripts/mp-trunk-upgrade
===================================================================
--- users/pixilla/scripts/mp-trunk-upgrade 2013-09-05 14:27:29 UTC (rev 110762)
+++ users/pixilla/scripts/mp-trunk-upgrade 2013-09-05 14:30:38 UTC (rev 110763)
@@ -2,7 +2,7 @@
# mp-trunk-upgrade
# Set vars if not set.
: ${MP_PREFIX:="/opt/local"}
-: ${MP_SVNCMD:="/opt/local/bin/svn"}
+: ${MP_SVNCMD:=$(which svn)}
: ${MP_SVNTRUNK:="${MP_PREFIX}/var/macports/sources/svn.macports.org/trunk"}
: ${MP_SVNDPORTS:="${MP_SVNTRUNK}/dports"}
: ${MP_SVNBASE:="${MP_SVNTRUNK}/base"}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130905/0f713209/attachment.html>
More information about the macports-changes
mailing list