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
87698ffa
Commit
87698ffa
authored
Jun 19, 2009
by
Peter Eisentraut
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Extend man page installation hackery so that the man page section is also
fixed up in the .so links.
parent
c79b4505
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
doc/Makefile
doc/Makefile
+7
-5
No files found.
doc/Makefile
View file @
87698ffa
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
#
#
# Copyright (c) 1994, Regents of the University of California
# Copyright (c) 1994, Regents of the University of California
#
#
# $PostgreSQL: pgsql/doc/Makefile,v 1.3
3 2009/06/18 15:10:35
petere Exp $
# $PostgreSQL: pgsql/doc/Makefile,v 1.3
4 2009/06/19 19:15:13
petere Exp $
#
#
#----------------------------------------------------------------------------
#----------------------------------------------------------------------------
...
@@ -43,6 +43,10 @@ sqlmansect = 7
...
@@ -43,6 +43,10 @@ sqlmansect = 7
endif
endif
sqlmansectnum
=
$(
shell
expr
X
'
$(sqlmansect)
'
: X
'\([0-9]\)'
)
sqlmansectnum
=
$(
shell
expr
X
'
$(sqlmansect)
'
: X
'\([0-9]\)'
)
fix_sqlmansectnum
=
sed
-e
'/^\.TH/s/"7"/"
$(sqlmansect)
"/'
\
-e
's/\\fR(7)/\\fR(
$(sqlmansectnum)
)/g'
\
-e
'1s/^\.so man7/.so man
$(sqlmansectnum)
/g;1s/^\(\.so.*\)\.7$$/\1.
$(sqlmansect)
/g'
all
:
man1/.timestamp man$(sqlmansectnum)/.timestamp
all
:
man1/.timestamp man$(sqlmansectnum)/.timestamp
man1/.timestamp
:
man7/.timestamp
man1/.timestamp
:
man7/.timestamp
...
@@ -53,7 +57,7 @@ man7/.timestamp: man.tar.gz
...
@@ -53,7 +57,7 @@ man7/.timestamp: man.tar.gz
ifneq
($(sqlmansectnum),7)
ifneq
($(sqlmansectnum),7)
for
file
in
man1/
*
.1
;
do
\
for
file
in
man1/
*
.1
;
do
\
mv
$$
file
$$
file.bak
&&
\
mv
$$
file
$$
file.bak
&&
\
sed
-e
's/\\fR(7)/\\fR(
$(sqlmansectnum)
)/g'
$$
file.bak
>
$$
file
&&
\
$(fix_sqlmansectnum)
$$
file.bak
>
$$
file
&&
\
rm
-f
$$
file.bak
||
exit
;
\
rm
-f
$$
file.bak
||
exit
;
\
done
done
endif
endif
...
@@ -63,9 +67,7 @@ ifneq ($(sqlmansectnum),7)
...
@@ -63,9 +67,7 @@ ifneq ($(sqlmansectnum),7)
man$(sqlmansectnum)/.timestamp
:
man7/.timestamp
man$(sqlmansectnum)/.timestamp
:
man7/.timestamp
$(mkinstalldirs)
man
$(sqlmansectnum)
$(mkinstalldirs)
man
$(sqlmansectnum)
for
file
in
man7/
*
.7
;
do
\
for
file
in
man7/
*
.7
;
do
\
sed
-e
'/^\.TH/s/"7"/"
$(sqlmansect)
"/'
\
$(fix_sqlmansectnum)
$$
file
>
man
$(sqlmansectnum)
/
`
basename
$$
file |
sed
's/.7$$/.
$(sqlmansect)
/'
`
||
exit
;
\
-e
's/\\fR(7)/\\fR(
$(sqlmansectnum)
)/g'
\
$$
file
>
man
$(sqlmansectnum)
/
`
basename
$$
file |
sed
's/.7$$/.
$(sqlmansect)
/'
`
||
exit
;
\
done
done
@
echo
timestamp
>
$@
@
echo
timestamp
>
$@
endif
endif
...
...
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