Current location

narf Source control manager Git

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorshtrom <shtrom@1991c358-8f32-0410-a49a-990740bdf4c2>2010-07-12 12:05:23 +0000
committershtrom <shtrom@1991c358-8f32-0410-a49a-990740bdf4c2>2010-07-12 12:05:23 +0000
commit93739ab857c82a9ec1ffcde65d42a8258dd2a5d0 (patch)
tree22f82c6e1d922b2ee2dd799ad2539cb5a9727098 /openbsd
parent5a343059f955e34574eea95a8cea0483507fe7d8 (diff)
[openbsd-sync-mirror] Get OpenBSD version and architecture automatically.
git-svn-id: svn+ssh://scm.narf.ssji.net/svn/shtrom/scripts@814 1991c358-8f32-0410-a49a-990740bdf4c2
Diffstat (limited to 'openbsd')
-rwxr-xr-xopenbsd/openbsd-sync-mirror.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/openbsd/openbsd-sync-mirror.sh b/openbsd/openbsd-sync-mirror.sh
index 8dea234..6b8b891 100755
--- a/openbsd/openbsd-sync-mirror.sh
+++ b/openbsd/openbsd-sync-mirror.sh
@@ -1,10 +1,10 @@
#!/bin/bash
# $Id$
-CURVER=3.8
+CURVER=`uname -r`
BASEDIR="/data/mirrors/openbsd/"
MAXRATE=100000
-GETWHAT="${CURVER}/i386 ${CURVER}/ports.tar.gz snapshots/i386 snapshots/ports.tar.gz"
+GETWHAT="${CURVER}/'uname -a' ${CURVER}/ports.tar.gz snapshots/i386 snapshots/ports.tar.gz"
RSYNC=/usr/bin/rsync
#RSYNCHOST="ftp.sunet.se"