diff options
Diffstat (limited to 'gen-perl-pkg')
-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 |