summaryrefslogtreecommitdiffstats
path: root/gen-perl-pkg
diff options
context:
space:
mode:
Diffstat (limited to 'gen-perl-pkg')
-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