Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb48edd7

Browse files
author
Thomas G. Lockhart
committed
Make genbki.sh a configureable shell program to allow auto-detection
of the proper cpp program.
1 parentfe6d19f commitb48edd7

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

‎src/backend/catalog/genbki.shrenamed to‎src/backend/catalog/genbki.sh.in

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#
1111
#
1212
# IDENTIFICATION
13-
# $Header: /cvsroot/pgsql/src/backend/catalog/Attic/genbki.sh,v 1.13 1998/08/25 17:36:18 momjian Exp $
13+
# $Header: /cvsroot/pgsql/src/backend/catalog/Attic/genbki.sh.in,v 1.1 1998/10/14 16:05:01 thomas Exp $
1414
#
1515
# NOTES
1616
# non-essential whitespace is removed from the generated file.
@@ -23,20 +23,14 @@ trap "rm -f /tmp/genbki.tmp" 0 1 2 3 15
2323
# make sure it is empty
2424
>/tmp/genbki.tmp
2525

26-
PATH=$PATH:/lib:/usr/ccs/lib:/usr/ccs/lbin# to find cpp
27-
cpp /dev/null>/dev/null2>&1
28-
if ["$?"-ne 0 ]
29-
thenecho"Can't find cpp. Exiting."1>&2
30-
exit 1
31-
fi
32-
33-
BKIOPTS=''
3426
if [$?!= 0 ]
3527
then
3628
echo`basename$0`: Bad option
3729
exit 1
3830
fi
3931

32+
BKIOPTS=''
33+
4034
foroptin$*
4135
do
4236
case$optin
@@ -268,7 +262,7 @@ END {
268262
}
269263
}
270264
'| \
271-
cpp$BKIOPTS| \
265+
@CPP@ @CPPSTDIN@$BKIOPTS| \
272266
sed -e'/^[ ]*$/d' \
273267
-e's/[ ][ ]*/ /g'||exit 1
274268

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp