commit bc451a9607ee6efd2d30a325d719d873bad0b93a from: Omar Polo date: Thu Feb 10 11:00:28 2022 UTC provide more variables and use ! instead of / for sed commit - e44272b68571536d6d825415093b217fb6e5c085 commit + bc451a9607ee6efd2d30a325d719d873bad0b93a blob - 8398b05406f7518c77d6b1ede66631ae68dae35f blob + cae83a8c2112d3942c7c698fb1914f244b23c9df --- site/Makefile +++ site/Makefile @@ -12,9 +12,14 @@ TITLE_index.gmi = home TITLE_install.gmi = install guide TITLE_tutorial.gmi = tutorial -SUBST_GEM = ./subst MANEXT=txt EXT=gmi -SUBST_WWW = ./subst MANEXT=html EXT=html +SUBST = ./subst CURRV=0.1 NEXTV=0.2 \ + GH=https://github.com/omar-polo/kamid \ + CURRSIGN=RWTaqCGPkA11Nhvo+uW+U1EKASiVo3IxKrQOqLaEtpYDdw5qLzs4a/9T \ + NEXTSIGN=RWRwqQVDYtY1jTc1lXqyu2e+ZGWgN/h3n/LE/at7pNTuJ1qWsogFvDh8 +SUBST_GEM = ${SUBST} MANEXT=txt EXT=gmi +SUBST_WWW = ${SUBST} MANEXT=html EXT=html + .PHONY: all dirs manpages server-www serve-gemini upload clean titles all: dirs manpages pages blob - c804fc56f5631851e80726c73d83333dca9e1c30 blob + e2506f108b914844d1ebee9c0ec1d7f8c494cb00 --- site/subst +++ site/subst @@ -39,7 +39,7 @@ while (1) { } my ($match, $repl) = m/^([^\s]*)=(.*)$/; - push @args, "-e", "s/$match/$repl/g"; + push @args, "-e", "s!$match!$repl!g"; } # OK, shelling out to sed is a bit lame...