mirror of https://github.com/postgres/postgres
list. Remove pgjindent.REL8_3_STABLE
parent
3f7f9f594b
commit
7b009a2a9d
File diff suppressed because it is too large
Load Diff
@ -1,29 +0,0 @@ |
||||
#!/bin/sh |
||||
|
||||
# $PostgreSQL: pgsql/src/tools/pgindent/pgjindent,v 1.3 2006/03/11 04:38:42 momjian Exp $ |
||||
|
||||
trap "rm -f /tmp/$$ /tmp/$$a" 0 1 2 3 15 |
||||
entab </dev/null >/dev/null |
||||
if [ "$?" -ne 0 ] |
||||
then echo "Go to the src/tools/entab directory and do a 'make' and 'make install'." >&2 |
||||
echo "This will put the 'entab' command in your path." >&2 |
||||
echo "Then run $0 again." |
||||
exit 1 |
||||
fi |
||||
astyle --version </dev/null >/dev/null 2>&1 |
||||
if [ "$?" -eq 0 ] |
||||
then echo "You do not appear to have 'astyle' installed on your system." >&2 |
||||
exit 1 |
||||
fi |
||||
|
||||
for FILE |
||||
do |
||||
astyle --style=java -b -p -j -S < "$FILE" >/tmp/$$ 2>/tmp/$$a |
||||
if [ "$?" -ne 0 -o -s /tmp/$$a ] |
||||
then echo "$FILE" |
||||
cat /tmp/$$a |
||||
fi |
||||
cat /tmp/$$ | |
||||
entab -t4 -qc | |
||||
cat >/tmp/$$a && cat /tmp/$$a >"$FILE" |
||||
done |
Loading…
Reference in new issue