]> granicus.if.org Git - postgis/commitdiff
Revert committ of astyle and commit the intended textstyle.sty
authorRegina Obe <lr@pcorp.us>
Wed, 26 Apr 2017 03:39:41 +0000 (03:39 +0000)
committerRegina Obe <lr@pcorp.us>
Wed, 26 Apr 2017 03:39:41 +0000 (03:39 +0000)
References #3726 for PostGIS 2.4 trunk

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

astyle [deleted file]
doc/texstyle.sty [new file with mode: 0644]

diff --git a/astyle b/astyle
deleted file mode 100644 (file)
index eefb366..0000000
--- a/astyle
+++ /dev/null
@@ -1,27 +0,0 @@
-#!/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
diff --git a/doc/texstyle.sty b/doc/texstyle.sty
new file mode 100644 (file)
index 0000000..58689bb
--- /dev/null
@@ -0,0 +1,14 @@
+%%
+%% This style is derived from the manual
+%% http://dblatex.sourceforge.net/doc/manual/sec-custom-latex.html
+%%
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{texstyle}[2017/04/25 PostGIS DocBook Style]
+
+%% Just use the original package and pass the options
+\RequirePackageWithOptions{docbook}
+
+%% Make regular quotes within programlisting tags (#3726)
+\usepackage{listings}
+\lstset{upquote=true}
+