From 040505e07691a904dbf5bc69dafe3d6773731527 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Mon, 14 Oct 2024 21:13:30 +0200 Subject: Update to pkgctl for svn2git move Signed-off-by: Florian Pritz --- gen-perl-pkg | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) (limited to 'gen-perl-pkg') diff --git a/gen-perl-pkg b/gen-perl-pkg index 46e5d18..d5a02a8 100755 --- a/gen-perl-pkg +++ b/gen-perl-pkg @@ -2,30 +2,29 @@ set -e for pkg in "$@"; do - export MAINTAINER="Florian Pritz " - targets=(~/arch/{community,extra}) - target_new=~/arch/community + export MAINTAINER="Florian Pritz " + targets=(~/arch/pkgs) + target_new=~/arch/pkgs found_pkg=0 genpkg "$pkg" for target in "${targets[@]}"; do - if [[ -f "$target/$pkg/trunk/PKGBUILD" ]]; then + if [[ -f "$target/$pkg/PKGBUILD" ]]; then found_pkg=1 - vimdiff "$target/$pkg/trunk/PKGBUILD" "$HOME/pkg/dest/$pkg/PKGBUILD" + vimdiff "$target/$pkg/PKGBUILD" "$HOME/pkg/dest/$pkg/PKGBUILD" fi done if ((!found_pkg)); then - if [[ $PWD =~ ($HOME/arch/(community|extra)).* ]]; then + if [[ $PWD =~ ($HOME/arch/pkgs).* ]]; then target_new="${BASH_REMATCH[1]}" echo "Found target directory $target_new" fi - echo "Package not found, creating new in '$target_new/$pkg/trunk'" - mkdir -p "$target_new/$pkg/"{trunk,repos} - cp "$HOME/pkg/dest/$pkg/PKGBUILD" "$target_new/$pkg/trunk/" + echo "Package not found, creating new in '$target_new/$pkg/'" + cp "$HOME/pkg/dest/$pkg/PKGBUILD" "$target_new/$pkg/" cd "$target_new" - svn add "$pkg" + git add "$pkg" fi done -- cgit v1.2.3-24-g4f1b