Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2020-03-06 11:55:18 +0100
committerErich Eckner <git@eckner.net>2020-03-06 11:55:18 +0100
commit2958d22f03ffa3cb7c120aa57c38ebf337bfef3f (patch)
treef46a09f5711d364f4b768d6b17c418b335b462e7
parent823380f86420fdc9ccfefde601a49d5f4837431d (diff)
build-isos: also remove obsolete checksums
-rwxr-xr-xbuild-isos13
1 files changed, 11 insertions, 2 deletions
diff --git a/build-isos b/build-isos
index 6843fe1..480d9e0 100755
--- a/build-isos
+++ b/build-isos
@@ -77,10 +77,19 @@ case "$(hostname -s)" in
find "${destination}" -name 'archlinux-*' -not -name 'archlinux-'"${date}"'-*' \
| while read -r to_delete; do
- if diff -q "${to_delete}" "${archive}/iso/${to_delete#${destination}/}"; then
+ if diff -q "${to_delete}" "${archive}/iso/${to_delete#${destination}/}" >/dev/null; then
rm "${to_delete}"
+ printf '%s\n' "${to_delete}" \
+ | sed '
+ s@^.*/@@
+ s/\./\\./g
+ s@.*@/ \0$/d@
+ '
fi
- done
+ done \
+ >> "${tmp_dir}/delete-regex"
+ sed -i -f "${tmp_dir}/delete-regex" "${destination}/sha512sums"
+ sed -i -f "${tmp_dir}/delete-regex" "${destination}/md5sums"
echo '... done.'
;;