diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2010-08-08 11:53:07 +0200 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2010-08-08 11:53:07 +0200 |
commit | d0b5dcb3ce6a1ec5222fc7a0420b3e1dc4c3a27e (patch) | |
tree | 14cea2664bbe3c0eb219048f8e7fd67805a67016 /misc-scripts | |
parent | 3eb0f6abdb822ae15bcc72626dcdad37c0313927 (diff) | |
download | dbscripts-d0b5dcb3ce6a1ec5222fc7a0420b3e1dc4c3a27e.tar.gz dbscripts-d0b5dcb3ce6a1ec5222fc7a0420b3e1dc4c3a27e.tar.xz |
Remove BUILDSCRIPT variable
There is no need to have a variable for things like PKGBUILD
that are very unlikely to ever change.
Diffstat (limited to 'misc-scripts')
-rwxr-xr-x | misc-scripts/make-sourceball | 2 | ||||
-rwxr-xr-x | misc-scripts/sourceballs-cleanup | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/misc-scripts/make-sourceball b/misc-scripts/make-sourceball index 37141c7..41767d0 100755 --- a/misc-scripts/make-sourceball +++ b/misc-scripts/make-sourceball @@ -43,7 +43,7 @@ die() { create_srcpackage() { if [ -d "$1" ]; then pushd "$1" >/dev/null - . "$BUILDSCRIPT" + . "PKGBUILD" if ! [ $FORCE == 1 ] && ! chk_license ${license[@]} ; then #Removed so as not to clutter failed.txt #echo -e "\t$packagename license (${license[@]}) does not require source tarballs" >&2 diff --git a/misc-scripts/sourceballs-cleanup b/misc-scripts/sourceballs-cleanup index c7f284d..d259d3a 100755 --- a/misc-scripts/sourceballs-cleanup +++ b/misc-scripts/sourceballs-cleanup @@ -27,7 +27,7 @@ remove_old() { PKGVERS="" for repo in *; do cd "$repo" - . "$BUILDSCRIPT" + . "PKGBUILD" PKGVERS="$PKGVERS $pkgver-$pkgrel" cd .. done @@ -85,7 +85,7 @@ for sourceball in "$srcpath"/*$SRCEXT; do elif [ -z "$(ls -A "$packagename/repos")" ]; then echo "$packagename : no longer in repos but trunk is still in svn. Removing sourceball." >> "$logfile" mv $sourceball $SOURCE_CLEANUP_DESTDIR - elif ! source "$packagename/trunk/$BUILDSCRIPT" && chk_license ${license[@]}; then + elif ! source "$packagename/trunk/PKGBUILD" && chk_license ${license[@]}; then echo "$packagename : source hosting no longer required by license. Removing sourceball." >> "$logfile" mv $sourceball $SOURCE_CLEANUP_DESTDIR else |