summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2024-12-20 04:15:58 -0500
committerFreya Murphy <freya@freyacat.org>2024-12-20 04:17:05 -0500
commit4334596d4bebc9a76f5ca8400813847eef5b3bb7 (patch)
tree4bd2229fd48715bcf4ae96bc3d070b7f3c29aa58 /build
parentadd lang column to user (diff)
downloadxssbook2-4334596d4bebc9a76f5ca8400813847eef5b3bb7.tar.gz
xssbook2-4334596d4bebc9a76f5ca8400813847eef5b3bb7.tar.bz2
xssbook2-4334596d4bebc9a76f5ca8400813847eef5b3bb7.zip
rework styles with scss
Diffstat (limited to 'build')
-rw-r--r--build/stamp.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/build/stamp.sh b/build/stamp.sh
new file mode 100644
index 0000000..3b19b04
--- /dev/null
+++ b/build/stamp.sh
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+out="./src/web/stamp.php"
+public="./src/public"
+files=$(find "$public" -type f -printf %P\\n)
+
+printf "<?php\n\$__stamps = array();\n" > "$out"
+for file in $files; do
+ stamp=$(date +%s -r "$public/$file")
+ echo "\$__stamps['public/$file'] = $stamp;" >> "$out";
+done
+echo "define('FILE_TIMES', \$__stamps);" >> "$out"
+echo "unset(\$__stamps);" >> "$out"
+