wowana.me
website source
commit 972dfe3d7d4f0307d198a3773f32eda95b99bb55 parent edf4db150e5a8cfe29f3eb10588045067c538332 Author: opal hart <opal@wowana.me> Date: Thu, 28 May 2020 10:31:40 +0000 scripts: rename files without .sh suffix Diffstat:
M | Makefile | | | 8 | ++++---- |
R | scripts/altnet.sh -> scripts/altnet | | | 0 | |
R | scripts/blog.sh -> scripts/blog | | | 0 | |
R | scripts/feed.sh -> scripts/feed | | | 0 | |
A | scripts/gitindex | | | 21 | +++++++++++++++++++++ |
D | scripts/gitindex.sh | | | 21 | --------------------- |
R | scripts/postproc.sh -> scripts/postproc | | | 0 |
7 files changed, 25 insertions(+), 25 deletions(-)
diff --git a/Makefile b/Makefile @@ -8,7 +8,7 @@ MARKDOWN := hoedown --xhtml .INTERMEDIATE: $(OBJ) all: $(FINAL) - MARKDOWN='$(MARKDOWN)' ./scripts/gitindex.sh + MARKDOWN='$(MARKDOWN)' ./scripts/gitindex rm -f ./src/git.part.xht check: $(FINAL) @@ -23,7 +23,7 @@ upload: rsync -Pauvz out/git/ sakamoto:/var/lib/git/ src/%.part.xht: src/%.md - ./scripts/altnet.sh < $< | $(MARKDOWN) > $@ + ./scripts/altnet < $< | $(MARKDOWN) > $@ src/blog/index.part.xht: $(BLOGSRC) ( \ @@ -36,7 +36,7 @@ src/blog/index.part.xht: $(BLOGSRC) out/%.xht: src/%.part.xht src/header.inc src/footer.inc mkdir -p `dirname $@` - ./scripts/postproc.sh $< > $@ + ./scripts/postproc $< > $@ out/blog/feed.atom: $(BLOGSRC:%.md=%.part.xht) - ./scripts/feed.sh $$(ls -1t $^) > $@ + ./scripts/feed $$(ls -1t $^) > $@ diff --git a/scripts/altnet.sh b/scripts/altnet diff --git a/scripts/blog.sh b/scripts/blog diff --git a/scripts/feed.sh b/scripts/feed diff --git a/scripts/gitindex b/scripts/gitindex @@ -0,0 +1,21 @@ +#!/bin/sh + +: "${MARKDOWN:=markdown}" + +git_root=/var/lib/git +repos="$(ssh sakamoto find "$git_root" -type d -name '*.git')" + +for repopath in $repos; do + repo="${repopath#"$git_root/"}" + repo="${repo%.git}" + mkdir -p "out/git/$repo.git" + $MARKDOWN <src/git.inc >src/git.part.xht + scripts/postproc src/git.part.xht | + sed "s@%reponame%@$repo@g" >"out/git/$repo.git/index.xht" +done + +printf %s "$repos" | sort | + sed 's@^'"$git_root"'/\(.*\)$@- [\1](/git/\1)@; 1i # git\n' | + $MARKDOWN > src/git-index.md.tmp +scripts/postproc src/git-index.md.tmp >out/git/index.xht +rm src/git-index.md.tmp diff --git a/scripts/gitindex.sh b/scripts/gitindex.sh @@ -1,21 +0,0 @@ -#!/bin/sh - -: "${MARKDOWN:=markdown}" - -git_root=/var/lib/git -repos="$(ssh sakamoto find "$git_root" -type d -name '*.git')" - -for repopath in $repos; do - repo="${repopath#"$git_root/"}" - repo="${repo%.git}" - mkdir -p "out/git/$repo.git" - $MARKDOWN <src/git.inc >src/git.part.xht - scripts/postproc.sh src/git.part.xht | - sed "s@%reponame%@${repo#*/}@g" >"out/git/$repo.git/index.xht" -done - -printf %s "$repos" | sort | - sed 's@^'"$git_root"'/\(.*\)$@- [\1](/git/\1)@; 1i # git\n' | - $MARKDOWN > src/git-index.md.tmp -scripts/postproc.sh src/git-index.md.tmp >out/git/index.xht -rm src/git-index.md.tmp diff --git a/scripts/postproc.sh b/scripts/postproc