diff options
author | Florian Pritz <bluewind@xinu.at> | 2017-09-13 11:39:10 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2017-09-13 11:39:10 +0200 |
commit | 3e7f8d425d593b426c46b472012c271c6497a855 (patch) | |
tree | d32c17865e5109ec82a1fec3fe36f67951561658 | |
parent | 3f20895c4db60362590ccabb285c20828b472f7a (diff) | |
download | bin-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-x | gen-perl-pkg | 6 |
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 |