aboutsummaryrefslogtreecommitdiff
path: root/gen-initialize.sh
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2023-12-08 05:42:24 +0100
committerPřemysl Eric Janouch <p@janouch.name>2023-12-08 05:42:24 +0100
commitbfbdf29ca3a60798c5267e88de5577a3faead9e9 (patch)
treec6acf5ee04749b5957901253aa0271b4279710e2 /gen-initialize.sh
parent941022bdd6c69de93f38992205b02ed95c6e8eb0 (diff)
downloadgallery-bfbdf29ca3a60798c5267e88de5577a3faead9e9.tar.gz
gallery-bfbdf29ca3a60798c5267e88de5577a3faead9e9.tar.xz
gallery-bfbdf29ca3a60798c5267e88de5577a3faead9e9.zip
More basic stuff
Diffstat (limited to 'gen-initialize.sh')
-rwxr-xr-xgen-initialize.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/gen-initialize.sh b/gen-initialize.sh
new file mode 100755
index 0000000..8d8cb55
--- /dev/null
+++ b/gen-initialize.sh
@@ -0,0 +1,6 @@
+#!/bin/sh -e
+gofmt <<EOF
+package ${GOPACKAGE:-main}
+
+const initializeSQL = \`$(sed 's/`/` + "`" + `/g' "$@")\`
+EOF