From c0dd09de288cdb7c396313cd5863513e6c0252c1 Mon Sep 17 00:00:00 2001 From: Jesus Alvarez Date: Tue, 6 Aug 2013 15:26:29 -0700 Subject: [PATCH] build.sh: Add burp support Burp allows the user to easily upload the latest package sources to AUR. The implementation requires the user to have a burp.conf. --- build.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/build.sh b/build.sh index 9d8bc5f..4529b61 100755 --- a/build.sh +++ b/build.sh @@ -19,6 +19,7 @@ UPDATE="" UPDATE_PKGBUILDS="" CLEAN="" SIGN="" +BURP="" CHROOT_TARGET="" VERSION="${ZFS_VER}_${LINUX_VER}" FULL_VERSION="$VERSION-$PKGREL" @@ -253,6 +254,12 @@ update_pkgbuilds() { done } +push_sources_to_aur() { + # $1: The directory containing the packages + FILES=$(find $1 -iname "*${ZFS_VER}_${LINUX_VER}-${PKGREL}*.src.tar.gz") + burp -c modules $FILES -v +} + if [ $# -lt 1 ]; then usage; exit 0; @@ -269,6 +276,8 @@ for (( a = 0; a < $#; a++ )); do UPDATE_PKGBUILDS=1 elif [[ ${ARGS[$a]} == "sign" ]]; then SIGN=1 + elif [[ ${ARGS[$a]} == "burp" ]]; then + BURP=1 elif [[ ${ARGS[$a]} == "repo" ]]; then REPO=1 REPO_NAME=$(get_repo_name_from_shorthand ${ARGS[`expr $a + 1`]}) @@ -308,3 +317,7 @@ if [[ $CLEANUP == 1 ]]; then find . \( -iname "sed*" -o -iname "*.log" -o -iname "*.pkg.tar.xz*" \ -o -iname "*.src.tar.gz" \) -print -exec rm -f {} \; fi + +if [[ $BURP == 1 ]]; then + push_sources_to_aur +fi