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
dfc2d359
Commit
dfc2d359
authored
Sep 05, 1997
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Better error reporting.
parent
868d7081
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
src/PGINDENT
src/PGINDENT
+8
-3
No files found.
src/PGINDENT
View file @
dfc2d359
#!/bin/sh
trap
"rm -f /tmp/
$$
"
0 1 2 3 15
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
...
...
@@ -16,9 +16,14 @@ for FILE
do
cat
$FILE
|
sed
's;/\* *---;/*---X_X;g'
|
detab
-t4
-qc
|
detab
-t4
-qc
>
/tmp/
$$
a
indent
-bad
-bap
-bbb
-bc
-bl
-d0
-cdb
-nce
-cli1
-di16
-nfc1
\
-lp
-nip
-nbc
-psl
-di1
-i4
-l75
-st
|
-lp
-nip
-nbc
-psl
-di1
-i4
-l75
>
/tmp/
$$
2>&1
if
[
"
$?
"
-ne
0
-o
-s
/tmp/
$$
]
then
echo
"
$FILE
"
cat
/tmp/
$$
fi
cat
/tmp/
$$
a |
detab
-t8
-qc
|
entab
-t4
-qc
|
sed
's;/\*---X_X;/* ---;g'
>
/tmp/
$$
&&
cat
/tmp/
$$
>
$FILE
...
...
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