diff options
author | Aaron Griffin <aaronmgriffin@gmail.com> | 2009-01-10 00:14:49 +0100 |
---|---|---|
committer | Aaron Griffin <aaronmgriffin@gmail.com> | 2009-01-10 00:14:49 +0100 |
commit | 671f36cb092ac5b8c8c30f53c19c05b8249bdee0 (patch) | |
tree | 3bdb0749fc837efd87d005c15d1fc102e9365365 | |
parent | 34dc23953ecf218cf263bf150ecb019dee36983d (diff) | |
download | dbscripts-671f36cb092ac5b8c8c30f53c19c05b8249bdee0.tar.gz dbscripts-671f36cb092ac5b8c8c30f53c19c05b8249bdee0.tar.xz |
Use new BASEDIR facility in make-sourceball
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
-rwxr-xr-x | misc-scripts/make-sourceball | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/misc-scripts/make-sourceball b/misc-scripts/make-sourceball index 44c3815..c02a84d 100755 --- a/misc-scripts/make-sourceball +++ b/misc-scripts/make-sourceball @@ -5,7 +5,8 @@ if [ $# -ne 3 ]; then exit 1 fi -. "$(dirname $0)/../db-functions" +BASEDIR="$(dirname $0)/../" +. "$BASEDIR/db-functions" source_makepkg @@ -71,7 +72,7 @@ cd "$WORKDIR" echo "Creating Source tarball for $packagename ($reponame-$arch)" -if /usr/bin/svn export -q "$SVN_PATH/repos/$reponame-$arch" $packagename; then +if /usr/bin/svn export -q "$SVN_PATH/$packagename/repos/$reponame-$arch" $packagename; then create_srcpackage "$packagename" if [ $? -eq 0 ]; then exit 0 @@ -79,7 +80,7 @@ if /usr/bin/svn export -q "$SVN_PATH/repos/$reponame-$arch" $packagename; then #trunk sometimes has updated URLs echo ":: Failed to download source, attempting trunk build" rm -rf "$packagename" - if /usr/bin/svn export -q "$SVN_PATH/trunk" "$packagename"; then + if /usr/bin/svn export -q "$SVN_PATH/$packagename/trunk" "$packagename"; then create_srcpackage "$packagename" if [ $? -eq 0 ]; then echo ":: Source package complete: $pkg_file" |