Update header

This commit is contained in:
Sebastiaan de Schaetzen 2023-02-17 17:39:55 +01:00
parent 3d9d01cc42
commit ee8f96952a
2 changed files with 2 additions and 1 deletions

View File

@ -27,6 +27,6 @@ $(STL) $(PNG): $(SCAD) $(CONFIG) Makefile
openscad -o $@ -p $(CONFIG) -P $(basename $(@F)) $(SCAD)
$(INDEX): header.html entry.html footer.html Makefile
cat header.html > $@
cat header.html | sed "s/%date/`date '+%Y-%m-%d at %T'`/g" | sed "s/%version/`git describe --always --dirty`/g" > $@
$(foreach P,$(PARAMETERS),cat entry.html | sed 's/%/$P/g' >> $@;)
cat footer.html >> $@

View File

@ -3,3 +3,4 @@
<title>LEGO STLs</title>
</head>
<body>
Generated on <b>%date</b> using version <b>%version</b>