Update header
This commit is contained in:
parent
3d9d01cc42
commit
ee8f96952a
2
Makefile
2
Makefile
@ -27,6 +27,6 @@ $(STL) $(PNG): $(SCAD) $(CONFIG) Makefile
|
|||||||
openscad -o $@ -p $(CONFIG) -P $(basename $(@F)) $(SCAD)
|
openscad -o $@ -p $(CONFIG) -P $(basename $(@F)) $(SCAD)
|
||||||
|
|
||||||
$(INDEX): header.html entry.html footer.html Makefile
|
$(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' >> $@;)
|
$(foreach P,$(PARAMETERS),cat entry.html | sed 's/%/$P/g' >> $@;)
|
||||||
cat footer.html >> $@
|
cat footer.html >> $@
|
||||||
|
@ -3,3 +3,4 @@
|
|||||||
<title>LEGO STLs</title>
|
<title>LEGO STLs</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
Generated on <b>%date</b> using version <b>%version</b>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user