summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke T. Shumaker <lukeshu@lukeshu.com>2023-10-14 17:41:48 -0600
committerLuke T. Shumaker <lukeshu@lukeshu.com>2023-10-14 19:04:19 -0600
commit84d09b97bf85096e98b8f6f7e95008788ab15f5f (patch)
tree0bd6e0743719c83350a73f0e504d9337ec5fd642
parent8722fff2231107011d4b87104b7a024e48a6e0a3 (diff)
sed -r is deprecated in favor of -E
-rw-r--r--Makefile2
-rwxr-xr-xbin/gitify2
2 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index d72b0c3..ed1dbad 100644
--- a/Makefile
+++ b/Makefile
@@ -59,7 +59,7 @@ download: $(download)
.PHONY: download
dat/metadata.txt: $(addsuffix metadata.txt,$(content-dir)) dat/index.txt
- grep ^ $(foreach c,$(filter %/metadata.txt,$^),'$c') | sed -r -e 's,^dat/content-dir/,,' -e 's,/.*/Public/, ,' -e 's,/metadata\.txt:,/,' -e 's,\s+, ,g' | sort -u > $@
+ grep ^ $(foreach c,$(filter %/metadata.txt,$^),'$c') | sed -E -e 's,^dat/content-dir/,,' -e 's,/.*/Public/, ,' -e 's,/metadata\.txt:,/,' -e 's,\s+, ,g' | sort -u > $@
dat/pools: $(download) dat/metadata.txt dat/index.txt
rm -rf -- $@ $@.bak
poolify dat/metadata.txt dat/index.txt || $(dirfail)
diff --git a/bin/gitify b/bin/gitify
index 1e5d43d..7282dc3 100755
--- a/bin/gitify
+++ b/bin/gitify
@@ -82,7 +82,7 @@ main() {
HACK_NAME='Luke Shumaker'
HACK_EMAIL='lukeshu@lukeshu.com'
- gitdate="$(sed -r 's/(....)(..)(..)(..)(..)(..)/\1-\2-\3T\4:\5:\6 '"$HACK_TZ"'/' <<<"$time")"
+ gitdate="$(sed -E 's/(....)(..)(..)(..)(..)(..)/\1-\2-\3T\4:\5:\6 '"$HACK_TZ"'/' <<<"$time")"
git add .