Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
postgres-lambda-diff
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob Huber
postgres-lambda-diff
Commits
fde5ce4f
Commit
fde5ce4f
authored
14 years ago
by
Alvaro Herrera
Browse files
Options
Downloads
Patches
Plain Diff
Prevent doc/src/sgml subdirs from being created, instead of deleting
them after the fact. This is a more elegant fix for bug #5595.
parent
0a8ed2cd
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
config/prep_buildtree
+5
-10
5 additions, 10 deletions
config/prep_buildtree
with
5 additions
and
10 deletions
config/prep_buildtree
+
5
−
10
View file @
fde5ce4f
...
...
@@ -22,7 +22,11 @@ sourcetree=`cd $1 && pwd`
buildtree
=
`
cd
${
2
:-
'.'
}
&&
pwd
`
for
item
in
`
find
"
$sourcetree
"
-type
d
\(
\(
-name
CVS
-prune
\)
-o
\(
-name
.git
-prune
\)
-o
-print
\)
`
;
do
# We must not auto-create the subdirectories holding built documentation.
# If we did, it would interfere with installation of prebuilt docs from
# the source tree, if a VPATH build is done from a distribution tarball.
# See bug #5595.
for
item
in
`
find
"
$sourcetree
"
-type
d
\(
\(
-name
CVS
-prune
\)
-o
\(
-name
.git
-prune
\)
-o
\(
-path
"
$sourcetree
/doc/src/sgml/*"
-prune
\)
-o
-print
\)
`
;
do
subdir
=
`
expr
"
$item
"
:
"
$sourcetree
\(
.*
\)
"
`
if
test
!
-d
"
$buildtree
/
$subdir
"
;
then
mkdir
-p
"
$buildtree
/
$subdir
"
||
exit
1
...
...
@@ -38,13 +42,4 @@ for item in `find "$sourcetree" -name Makefile -print -o -name GNUmakefile -prin
fi
done
# We must not auto-create the subdirectories holding built documentation.
# If we did, it would interfere with installation of prebuilt docs from
# the source tree, if a VPATH build is done from a distribution tarball.
# See bug #5595.
rmdir
"
$buildtree
/doc/src/sgml/html"
2>/dev/null
rmdir
"
$buildtree
/doc/src/sgml/man1"
2>/dev/null
rmdir
"
$buildtree
/doc/src/sgml/man3"
2>/dev/null
rmdir
"
$buildtree
/doc/src/sgml/man7"
2>/dev/null
exit
0
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment