]> granicus.if.org Git - postgis/commitdiff
PDF manual from dblatex renders fancy quotes for programlisting
authorRegina Obe <lr@pcorp.us>
Tue, 25 Apr 2017 07:02:38 +0000 (07:02 +0000)
committerRegina Obe <lr@pcorp.us>
Tue, 25 Apr 2017 07:02:38 +0000 (07:02 +0000)
Change to use regular quotes
patch from Mike Toews
Closes #3726 for PostGIS 2.4 (trunk)

git-svn-id: http://svn.osgeo.org/postgis/trunk@15366 b70326c6-7e19-0410-871a-916f4a2858ee

astyle [new file with mode: 0644]
doc/Makefile.in

diff --git a/astyle b/astyle
new file mode 100644 (file)
index 0000000..eefb366
--- /dev/null
+++ b/astyle
@@ -0,0 +1,27 @@
+#!/bin/bash\r
+\r
+# Run astyle on the code base ready for release\r
+\r
+# If astyle doesn't exist, exit the script and do nothing\r
+which astyle > /dev/null\r
+RET=$?\r
+if [ $RET -ne 0 ]; then\r
+       echo "Could not find astyle - aborting."\r
+       exit\r
+fi\r
+\r
+\r
+RET=`astyle --version 2>&1`\r
+if [ "$RET" != "Artistic Style Version 1.23" ]; then\r
+       echo "Only 1.23 astyle version is 'allowed'"\r
+       exit\r
+fi\r
+\r
+# Find all "pure" C files in the codebase\r
+#   - not .in.c used for .sql generation\r
+#   - not lex.yy.c or wktparse.tab.c as these are generated files\r
+CFILES=`find . -name '*.c' -not \( -name '*_parse.c' -o -name '*_lex.c' \)`\r
+\r
+# Run the standard format on the files, and do not\r
+# leave .orig files around for altered files.\r
+astyle --style=ansi --indent=tab --suffix=none $CFILES\r
index 2b765dbda1ade5a2685d1a0b9c5ccb4697536c51..cc095fa382f23c45c5a957096e4f03045bb9e696 100644 (file)
@@ -276,6 +276,7 @@ postgis-${POSTGIS_MAJOR_VERSION}.${POSTGIS_MINOR_VERSION}.${POSTGIS_MICRO_VERSIO
                   -P figure.warning="${PWD}/html/images/warning" \
                   -P figure.caution="${PWD}/html/images/caution" \
                   -P latex.output.revhistory=0 \
+                  -s texstyle \
                   -o postgis-${POSTGIS_MAJOR_VERSION}.${POSTGIS_MINOR_VERSION}.${POSTGIS_MICRO_VERSION}$(DOCSUFFIX).pdf $<; \
        fi