From 398c230e952314f1c712b4c74aa05ae4bd638802 Mon Sep 17 00:00:00 2001 From: Piraty Date: Tue, 10 Sep 2019 16:46:58 +0200 Subject: xrevbump: use xdistdir to find the template Closes: #151 [via git-merge-pr] --- xrevbump | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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" -- cgit 1.4.1