commit 95bc3a9627ad32904cfdaf49b1b15c1da825d2d0
parent 9dcb2e7bd8f5f0e2651daec0f7a8705e07dda8d3
Author: amin <dev@aminmesbah.com>
Date: Sat, 9 Nov 2019 07:39:43 +0000
Add source code link in comment in wasm html
FossilOrigin-Name: c01440fb695f63d7249353307babcee282f01e11412c7dfdb583593ae4a36b41
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/build_wasm.sh b/build_wasm.sh
@@ -47,3 +47,7 @@ wasm-ld \
rm $wasm_dir/*.o
rm $wasm_dir/*.bc
+
+current_commit=$(git rev-parse HEAD)
+echo "<!-- Source Code: https://git.amin.space/a-game/tree/?id=$current_commit -->" \
+ >> $wasm_dir/index.html