From fa4ff798507ded0b26dcdc310d1f97e2e61198c4 Mon Sep 17 00:00:00 2001 From: "coadde [Márcio Alexandre Silva Delgado]" Date: Wed, 23 Sep 2015 18:30:39 -0300 Subject: rename FTP_BASE -> root_dir --- abslibre | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'abslibre') diff --git a/abslibre b/abslibre index 6b21d24..5c57c41 100755 --- a/abslibre +++ b/abslibre @@ -2,7 +2,7 @@ set -e -FTP_BASE=/srv/repo/main +root_dir=/srv/repo/main ABSLIBRE=/srv/abslibre ABSGIT=/srv/git/abslibre/abslibre.git # Remote @@ -111,11 +111,11 @@ create_tarballs() { arch=$(basename $(dirname $repo)) # Remove the old one - mkdir -p $FTP_BASE/$baserepo/os/$arch/ - rm -fv $FTP_BASE/$baserepo/os/$arch/$baserepo.abs.tar.gz + mkdir -p ${root_dir}/$baserepo/os/$arch/ + rm -fv ${root_dir}/$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 -czf $FTP_BASE/$baserepo/os/$arch/$baserepo.abs.tar.gz \ + bsdtar -czf ${root_dir}/$baserepo/os/$arch/$baserepo.abs.tar.gz \ -s ":${ABSLIBRE}/[a-z0-9_]\+/[a-z]\+::" \ $repo/* ${ABSLIBRE}/any/${baserepo}/* -- cgit v1.2.3-54-g00ecf