diff options
author | shtrom <shtrom@1991c358-8f32-0410-a49a-990740bdf4c2> | 2012-03-12 12:45:50 +0000 |
---|---|---|
committer | shtrom <shtrom@1991c358-8f32-0410-a49a-990740bdf4c2> | 2012-03-12 12:45:50 +0000 |
commit | dd9596b67b0485d63f257956f0f88996b1cfe404 (patch) | |
tree | d5839c018849ce5d1edc05f448e5e6e9298af797 | |
parent | 359ea88f3f8beafa75e6f73b98197e909868558d (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
-rwxr-xr-x | openbsd/updateports.sh | 9 |
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 |