Current location

narf Source control manager Git

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorshtrom <shtrom@1991c358-8f32-0410-a49a-990740bdf4c2>2012-03-12 12:45:50 +0000
committershtrom <shtrom@1991c358-8f32-0410-a49a-990740bdf4c2>2012-03-12 12:45:50 +0000
commitdd9596b67b0485d63f257956f0f88996b1cfe404 (patch)
treed5839c018849ce5d1edc05f448e5e6e9298af797 /openbsd
parent359ea88f3f8beafa75e6f73b98197e909868558d (diff)
[openbsd-scripts] Pull OR update ports.
git-svn-id: svn+ssh://scm.narf.ssji.net/svn/shtrom/scripts@1100 1991c358-8f32-0410-a49a-990740bdf4c2
Diffstat (limited to 'openbsd')
-rwxr-xr-xopenbsd/updateports.sh9
1 files changed, 7 insertions, 2 deletions
diff --git a/openbsd/updateports.sh b/openbsd/updateports.sh
index 1cd6e7c..591976b 100755
--- a/openbsd/updateports.sh
+++ b/openbsd/updateports.sh
@@ -2,5 +2,10 @@
# $Id$
export CVSROOT=anoncvs@anoncvs.fr.openbsd.org:/cvs
VERSION=`uname -r`
-cd /usr
-cvs -z9 get -rOPENBSD_${VERSION/./_} -P ports
+if [ -d /usr/ports ]; then
+ cd /usr/ports
+ cvs -z9 up -rOPENBSD_${VERSION/./_}
+else
+ cd /usr
+ cvs -z9 get -rOPENBSD_${VERSION/./_} -P ports
+fi