diff options
author | Erich Eckner <git@eckner.net> | 2023-06-13 09:25:42 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2023-06-13 09:25:42 +0200 |
commit | 31a670bfbde7e892bf0d9f8531d7e95d330e94fd (patch) | |
tree | 7fb8e357d717d5218975d20c1e291fb0b71c2827 /cpan2cruxPorts | |
parent | a374cb961baf03a167229a25926fef0815479d86 (diff) | |
download | crux-ports-31a670bfbde7e892bf0d9f8531d7e95d330e94fd.tar.xz |
rebuild script new
Diffstat (limited to 'cpan2cruxPorts')
-rwxr-xr-x | cpan2cruxPorts/rebuild | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/cpan2cruxPorts/rebuild b/cpan2cruxPorts/rebuild new file mode 100755 index 0000000..3702b21 --- /dev/null +++ b/cpan2cruxPorts/rebuild @@ -0,0 +1,29 @@ +#!/bin/bash + +set -e + +cd "${0%/*}" + +for pkg in p5-*/Pkgfile; do + cd "${pkg%/*}" + eval "$( + grep '^release=' 'Pkgfile' + )" + sed -i ' + /^release=/ s@=.*$@='"$((release+1))"'@ + ' 'Pkgfile' + + sudo -u pkgmk fakeroot pkgmk -if -is -f + pkgmk -uf + if git status --porcelain | grep -qF " cpan2cruxPorts/${pkg%/*}/.footprint"; then + pkgmk -us -sk '/etc/ports/deepthought.sec' + git add 'Pkgfile' '.footprint' '.signature' + else + git checkout 'Pkgfile' + fi + cd .. +done + +if [ -n "$(git status --porcelain)" ]; then + git commit -m'rebuild cpan2cruxPorts' +fi |