summaryrefslogtreecommitdiffstats
path: root/src/extension/script/wrap_swig_module.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/extension/script/wrap_swig_module.sh')
-rw-r--r--src/extension/script/wrap_swig_module.sh27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/extension/script/wrap_swig_module.sh b/src/extension/script/wrap_swig_module.sh
new file mode 100644
index 000000000..8c6236f2d
--- /dev/null
+++ b/src/extension/script/wrap_swig_module.sh
@@ -0,0 +1,27 @@
+#!/bin/sh
+
+inf=$1
+outf=$2
+datestr=`date`
+
+echo "" > ${outf}
+echo "/* ###################################################" >> ${outf}
+echo "## This file generated by wrap_swig_module.sh from" >> ${outf}
+echo "## ${inf} on ${datestr}" >> ${outf}
+echo "## DO NOT EDIT" >> ${outf}
+echo "################################################### */" >> ${outf}
+echo "" >> ${outf}
+
+echo "static char *inkscape_module_script =" >> ${outf}
+echo "\"\n\"" >> ${outf}
+
+cat ${inf} | \
+sed -e 's/\"/\\"/g' -e 's/^/\"/g' -e 's/$/\\n\"/g' >> ${outf}
+
+echo "\"\n\";" >> ${outf}
+
+
+
+
+
+