[Cryptech-Commits] [user/sra/pelican] 66/68: Add rule for trac-to-pelican-home.md

git at cryptech.is git at cryptech.is
Mon Jul 19 22:25:45 UTC 2021


This is an automated email from the git hooks/post-receive script.

sra at hactrn.net pushed a commit to branch pelican
in repository user/sra/pelican.

commit 66569536b627510735e35c6d68754c8edcefb8f0
Author: Rob Austein <sra at hactrn.net>
AuthorDate: Mon Jul 12 04:06:43 2021 +0000

    Add rule for trac-to-pelican-home.md
---
 .gitignore  | 3 +--
 GNUmakefile | 7 +++++--
 tools       | 2 +-
 3 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/.gitignore b/.gitignore
index 2e6cff8..24aee26 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,5 +1,4 @@
-#pelican
-#wiki
+*.stamp
 TAGS
 __pycache__
 attachments
diff --git a/GNUmakefile b/GNUmakefile
index cd6bc36..7fbdb88 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -8,12 +8,15 @@ REPO_HOST := bikeshed.cryptech.is
 REPO_PATH := /usr/local/git/repositories
 
 
-all:
+all: pelican/content/trac-to-pelican-home.md
 	tools/extract.py --source-url ${SOURCE_URL}
 	./kludge-cgit-urls.py
-	(date '+Date: %Y-%m-%d %H:%M'; cat tools/trac-to-pelican-home.md) > pelican/content/trac-to-pelican-home.md
 	cd pelican; pelican --output website --settings pelicanconf.py --fatal errors content
 
+pelican/content/trac-to-pelican-home.md: tools/trac-to-pelican-home.md
+	mkdir -p $(dir $@)
+	(date '+Date: %Y-%m-%d %H:%M'; cat $<) > $@
+
 fetch:
 	rsync -aP --delete ${SOURCE_TRAC_DB} ${SOURCE_TRAC_ATTACHMENTS} .
 	ssh -n ${REPO_HOST} 'sudo find ${REPO_PATH} -name "*.git"' | \
diff --git a/tools b/tools
index 8a435a7..1be425f 160000
--- a/tools
+++ b/tools
@@ -1 +1 @@
-Subproject commit 8a435a7c4d84d454e1272856d2921213e708ca52
+Subproject commit 1be425fbb0f62bdbb1147339c2af85eef255982d



More information about the Commits mailing list