diff options
author | Piraty <piraty1@inbox.ru> | 2019-09-10 16:46:58 +0200 |
---|---|---|
committer | Leah Neukirchen <leah@vuxu.org> | 2019-09-10 17:19:17 +0200 |
commit | 398c230e952314f1c712b4c74aa05ae4bd638802 (patch) | |
tree | cbc8483ca09561126a6ca679316d737e830a96f2 /xrevbump | |
parent | 1117158b9e56b0a00262f2e965b6927e7bb79eb5 (diff) | |
download | xtools-398c230e952314f1c712b4c74aa05ae4bd638802.tar.gz xtools-398c230e952314f1c712b4c74aa05ae4bd638802.tar.xz xtools-398c230e952314f1c712b4c74aa05ae4bd638802.zip |
xrevbump: use xdistdir to find the template
Closes: #151 [via git-merge-pr]
Diffstat (limited to 'xrevbump')
-rwxr-xr-x | xrevbump | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/xrevbump b/xrevbump index a46c2cf..a9c80ff 100755 --- a/xrevbump +++ b/xrevbump @@ -23,9 +23,11 @@ bump() { t="$t/template" elif [ -f "srcpkgs/$t/template" ]; then t="srcpkgs/$t/template" + elif [ -f "$XBPS_DISTDIR/srcpkgs/$1/template" ]; then + t="$XBPS_DISTDIR/srcpkgs/$1/template" else printf "Cannot find template '%s'\n" "$t" - break + return fi . "$t" @@ -45,6 +47,8 @@ bump() { esac } +XBPS_DISTDIR="$(xdistdir)" + if [ "$1" = - ]; then while IFS="$nl" read -r t; do bump "$t" |