- sed -e 's/^C/0/;s/^F/1/;s/^V/2/' Bridge.def | while read -r line; do \
- if [[ $$line == '' ]]; then \
- continue; \
- fi; \
- set $$line; \
- if [[ $$1 =~ [#fl] ]]; then \
- continue; \
- fi; \
- echo "$$2 = ($$1, \"$$3\");"; \
- done >$@
+ { \
+ echo '({'; \
+ sed -e 's/^C/0/;s/^F/1/;s/^V/2/' Bridge.def | while read -r line; do \
+ if [[ $$line == '' ]]; then \
+ continue; \
+ fi; \
+ set $$line; \
+ if [[ $$1 =~ [#fl:] ]]; then \
+ continue; \
+ fi; \
+ echo "$$2 = ($$1, \"$${3//\"/\\\"}\");"; \
+ done; \
+ echo '},{'; \
+ grep ^: Bridge.def | sed -e 's/^: \([^ ]*\) \(.*\)/"\1" = "\2";/'; \
+ echo '})'; \
+ } >$@