Skip to content
Snippets Groups Projects
Commit a90f12fd authored by Bruce Momjian's avatar Bruce Momjian
Browse files

Modifications for indenting.

parent 1ccd4232
No related branches found
No related tags found
No related merge requests found
...@@ -29,7 +29,7 @@ do ...@@ -29,7 +29,7 @@ do
\2;g' | # workaround for indent bug \2;g' | # workaround for indent bug
detab -t4 -qc | detab -t4 -qc |
sed 's;^DATA(.*$;/*&*/;' >/tmp/$$a # protect backslashes in DATA() sed 's;^DATA(.*$;/*&*/;' >/tmp/$$a # protect backslashes in DATA()
indent -bad -bap -bbb -bc -bl -d0 -cdb -nce -nfc1 -di16 -i4 -l75 \ indent -bad -bap -bbb -bc -bl -d0 -cdb -cli1 -nce -nfc1 -di12 -i4 -l75 \
-lp -nip -npro /tmp/$$a >/tmp/$$ 2>&1 -lp -nip -npro /tmp/$$a >/tmp/$$ 2>&1
if [ "$?" -ne 0 -o -s /tmp/$$ ] if [ "$?" -ne 0 -o -s /tmp/$$ ]
then echo "$FILE" then echo "$FILE"
...@@ -37,8 +37,12 @@ do ...@@ -37,8 +37,12 @@ do
fi fi
cat /tmp/$$a | cat /tmp/$$a |
sed 's;^/\*\(DATA(.*\)\*/$;\1;' | sed 's;^/\*\(DATA(.*\)\*/$;\1;' |
sed 's;/\*---X_X;/* ---;g' |
sed 's;^static[ ][ ]*;static ;g' | # workaround indent bug
detab -t8 -qc | detab -t8 -qc |
entab -t4 -qc | entab -t4 -qc >/tmp/$$ && cat /tmp/$$ >$FILE
sed 's;/\*---X_X;/* ---;g' >/tmp/$$ && cat /tmp/$$ >$FILE
done done
# The 'for' loop makes these backup files useless
# so delete them
rm -f *a.BAK
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment