diff options
author | coadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu> | 2015-09-23 18:30:39 -0300 |
---|---|---|
committer | coadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu> | 2015-09-23 18:30:39 -0300 |
commit | fa4ff798507ded0b26dcdc310d1f97e2e61198c4 (patch) | |
tree | b1a7a66b187fb3825f24fba79603a19bd9036127 /abslibre | |
parent | a6f91db681e302763b687bb47abb5d258948007b (diff) |
rename FTP_BASE -> root_dir
Diffstat (limited to 'abslibre')
-rwxr-xr-x | abslibre | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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}/* |