From 60c97dd73fa93fffaef35ce169330daf0dbc8ce4 Mon Sep 17 00:00:00 2001 From: Parabola Date: Sun, 24 May 2015 08:18:17 +0100 Subject: abslibre: remember these things called variables, so we don't need to chage the same thing in a dozen places? --- abslibre | 9 +++++---- 1 file 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}/* -- cgit v1.2.3