Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
d54ae2af
Commit
d54ae2af
authored
Jun 15, 2002
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add C++ indent tool.
parent
2e580240
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
0 deletions
+35
-0
src/tools/pgindent/README
src/tools/pgindent/README
+8
-0
src/tools/pgindent/pgcppindent
src/tools/pgindent/pgcppindent
+27
-0
No files found.
src/tools/pgindent/README
View file @
d54ae2af
...
...
@@ -37,3 +37,11 @@ following options:
find . \( -name '*.java' -o -name '*.java.in' \) -print |
xargs -n100 pgjindent
---------------------------------------------------------------------------
For cpp, we use astyle, http://astyle.sourceforge.net/, with the
following options:
find src/interfaces/libpq++ -name '*.[ch]' -print |
xargs -n100 pgcppindent
src/tools/pgindent/pgcppindent
0 → 100755
View file @
d54ae2af
#!/bin/sh
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
=
ansi
-b
-p
-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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment