diff options
| author | MenTaLguY <mental@rydia.net> | 2006-01-16 02:36:01 +0000 |
|---|---|---|
| committer | mental <mental@users.sourceforge.net> | 2006-01-16 02:36:01 +0000 |
| commit | 179fa413b047bede6e32109e2ce82437c5fb8d34 (patch) | |
| tree | a5a6ac2c1708bd02288fbd8edb2ff500ff2e0916 /src/extension/script/wrap_swig_module.sh | |
| download | inkscape-179fa413b047bede6e32109e2ce82437c5fb8d34.tar.gz inkscape-179fa413b047bede6e32109e2ce82437c5fb8d34.zip | |
moving trunk for module inkscape
(bzr r1)
Diffstat (limited to 'src/extension/script/wrap_swig_module.sh')
| -rw-r--r-- | src/extension/script/wrap_swig_module.sh | 27 |
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} + + + + + + |
