Skip to content

Commit

Permalink
Ensure astyle.sh appears in build tree too, and fix it
Browse files Browse the repository at this point in the history
  • Loading branch information
strk committed May 22, 2019
1 parent 919112e commit 01243b0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ AM_MAINTAINER_MODE
AC_CONFIG_HEADERS([include/config.h])
AC_PROG_CC

AC_CONFIG_LINKS([tools/astyle.sh:tools/astyle.sh])

dnl -- JTS_PORT: the version of JTS this release is bound to
dnl JTS_PORT=1.13.0
JTS_PORT=`cat $VERTXT | awk -F= '/^JTS_PORT/ {print $2}'`
Expand Down
6 changes: 3 additions & 3 deletions tools/astyle.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/sh

cd `dirname $0`
astyle/astyle \
DIR=`dirname $0`
${DIR}/astyle/astyle \
--style=stroustrup \
--unpad-paren \
--pad-header \
Expand All @@ -10,4 +10,4 @@ astyle/astyle \
--align-pointer=type \
--max-code-length=120 \
--lineend=linux \
@$
$@

0 comments on commit 01243b0

Please sign in to comment.