summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2017-09-13 11:39:10 +0200
committerFlorian Pritz <bluewind@xinu.at>2017-09-13 11:39:10 +0200
commit3e7f8d425d593b426c46b472012c271c6497a855 (patch)
treed32c17865e5109ec82a1fec3fe36f67951561658
parent3f20895c4db60362590ccabb285c20828b472f7a (diff)
downloadbin-3e7f8d425d593b426c46b472012c271c6497a855.tar.gz
bin-3e7f8d425d593b426c46b472012c271c6497a855.tar.xz
gen-perl-pkg: diff PKGBUILD if already exists
Signed-off-by: Florian Pritz <bluewind@xinu.at>
-rwxr-xr-xgen-perl-pkg6
1 files changed, 5 insertions, 1 deletions
diff --git a/gen-perl-pkg b/gen-perl-pkg
index f229520..026ca16 100755
--- a/gen-perl-pkg
+++ b/gen-perl-pkg
@@ -7,5 +7,9 @@ for pkg in "$@"; do
genpkg $pkg
mkdir -p "$target/$pkg/"{trunk,repos}
- cp "$HOME/pkg/dest/$pkg/PKGBUILD" "$target/$pkg/trunk/"
+ if [[ -f "$target/$pkg/trunk/PKGBUILD" ]]; then
+ vimdiff "$HOME/pkg/dest/$pkg/PKGBUILD" "$target/$pkg/trunk/PKGBUILD"
+ else
+ cp "$HOME/pkg/dest/$pkg/PKGBUILD" "$target/$pkg/trunk/"
+ fi
done