portalzine

portalzine / Codekit - Timestamp Hook

Last active 3 months ago

Like 0

Add current timestamp to files, when compiling

portalzine revised this gist 1 year ago · 208db7b

1 file changed

gistfile1.txt renamed to codekit_timestamp.sh

File renamed without changes

portalzine revised this gist 1 year ago · 8cd54f9

1 file changed, 2 insertions

gistfile1.txt (file created)
@@ -0,0 +1,2 @@
1 + NOW=`date "+%a %Y-%m-%d %T"`
2 + sed -i -- "s|{{TIMESTAMP}}|${NOW}|g" $CK_OUTPUT_PATH