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.
pull/14/head
Jesus Alvarez 12 years ago
parent a2180a9b6e
commit c0dd09de28
  1. 13
      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

Loading…
Cancel
Save