From 8c000fd68353ff087ea2208eb90ba9fb61605eef Mon Sep 17 00:00:00 2001 From: ed Date: Mon, 4 Aug 2025 00:40:27 +0000 Subject: [PATCH] cleanup --- README.md | 2 +- scripts/prep.sh | 14 +++++--------- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index f7c27be8..9746581b 100644 --- a/README.md +++ b/README.md @@ -1229,7 +1229,7 @@ using arguments or config files, or a mix of both: **NB:** as humongous as this readme is, there is also a lot of undocumented features. Run copyparty with `--help` to see all available global options; all of those can be used in the `[global]` section of config files, and everything listed in `--help-flags` can be used in volumes as volflags. * if running in docker/podman, try this: `docker run --rm -it copyparty/ac --help` -* or see this (probably outdated): https://ocv.me/copyparty/helptext.html +* or see this: https://ocv.me/copyparty/helptext.html * or if you prefer plaintext, https://ocv.me/copyparty/helptext.txt diff --git a/scripts/prep.sh b/scripts/prep.sh index a4c8a132..d522371e 100755 --- a/scripts/prep.sh +++ b/scripts/prep.sh @@ -29,15 +29,11 @@ update_mpr_pkgbuild() { sha=$(sha256sum "$self/../dist/copyparty-$ver.tar.gz" | awk '{print$1}') - # awk -v ver=$ver -v sha=$sha ' - # /^pkgver=/{sub(/[0-9\.]+/,ver)}; - # /^sha256sums=/{sub(/[0-9a-f]{64}/,sha)}; - # 1' PKGBUILD >a - # mv a PKGBUILD - # TODO: check if this still works. if so, remove the following 2 lines: - - sed -s -i "s/pkgver=\"\"/pkgver=\"$ver\"/" PKGBUILD - sed -s -i "s/sha256sums=(\".*\")/sha256sums=(\"$sha\")/" PKGBUILD + awk -v ver=$ver -v sha=$sha ' + /^pkgver=/{sub(/[0-9\.]+/,ver)}; + /^sha256sums=/{sub(/[0-9a-f]{64}/,sha)}; + 1' PKGBUILD >a + mv a PKGBUILD rm -rf x }