1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-09-28 21:19:10 +00:00

Fix quoting in text2c.sh

it failed when the build dir contained spaces
This commit is contained in:
Pavel Labath 2011-09-19 16:52:03 +02:00
parent 6480df48f3
commit 7c87003bde

View File

@ -35,6 +35,6 @@
outupper="`basename "$2" | tr '[a-z-.]' '[A-Z__]'`"
(
printf "const char %s[] = \n" $3
sed -e 's/["\]/\\&/g' -e 's/^/\t"/' -e 's/$/\\n"/' -e '$s/$/;/' $1
) > $2
printf "const char %s[] = \n" "$3"
sed -e 's/["\]/\\&/g' -e 's/^/\t"/' -e 's/$/\\n"/' -e '$s/$/;/' "$1"
) > "$2"