summaryrefslogtreecommitdiff
path: root/abslibre
diff options
context:
space:
mode:
authorParabola <dev@list.parabolagnulinux.org>2015-05-24 08:18:17 +0100
committerParabola <dev@list.parabolagnulinux.org>2015-05-24 08:18:17 +0100
commit60c97dd73fa93fffaef35ce169330daf0dbc8ce4 (patch)
tree29f90000dba408c9eadbcf51d533fdf99231208f /abslibre
parent0527d9f1f600387f3397ebcbaff1a6742862cf9f (diff)
abslibre: remember these things called variables, so we don't need to chage the same thing in a dozen places?
Diffstat (limited to 'abslibre')
-rwxr-xr-xabslibre9
1 files changed, 5 insertions, 4 deletions
diff --git a/abslibre b/abslibre
index 493a266..a4af041 100755
--- a/abslibre
+++ b/abslibre
@@ -2,6 +2,7 @@
set -e -x
+FTP_BASE=/srv/repo/main
ABSLIBRE=/srv/abslibre
ABSGIT=/srv/git/repositories/abslibre.git
# Remote
@@ -52,7 +53,7 @@ function sync_abs_libre() {
git pull
popd >/dev/null 2>&1
else
- git clone /srv/git/abslibre.git /var/tmp/abslibre
+ git clone "$ABSGIT" /var/tmp/abslibre
fi
# Sync from ABS and then sync from ABSLibre
@@ -102,11 +103,11 @@ create_tarballs() {
arch=$(basename $(dirname $repo))
# Remove the old one
- mkdir -p /srv/http/web/media/abs/$baserepo/os/$arch/
- rm /srv/http/web/media/abs/$baserepo/os/$arch/$baserepo.abs.tar.gz
+ mkdir -p $FTP_BASE/$baserepo/os/$arch/
+ rm $FTP_BASE/$baserepo/os/$arch/$baserepo.abs.tar.gz
# Create a new one joining arch and any
# Remove the first part of the path (it could be $repo but any isn't hit)
- bsdtar -czvf /srv/http/web/media/abs/$baserepo/os/$arch/$baserepo.abs.tar.gz \
+ bsdtar -czvf $FTP_BASE/$baserepo/os/$arch/$baserepo.abs.tar.gz \
-s ":${ABSLIBRE}/[a-z0-9_]\+/[a-z]\+::" \
$repo/* ${ABSLIBRE}/any/${baserepo}/*