summaryrefslogtreecommitdiff
path: root/cpan2cruxPorts
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2023-06-13 09:25:42 +0200
committerErich Eckner <git@eckner.net>2023-06-13 09:25:42 +0200
commit31a670bfbde7e892bf0d9f8531d7e95d330e94fd (patch)
tree7fb8e357d717d5218975d20c1e291fb0b71c2827 /cpan2cruxPorts
parenta374cb961baf03a167229a25926fef0815479d86 (diff)
downloadcrux-ports-31a670bfbde7e892bf0d9f8531d7e95d330e94fd.tar.xz
rebuild script new
Diffstat (limited to 'cpan2cruxPorts')
-rwxr-xr-xcpan2cruxPorts/rebuild29
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