Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-common
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
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
Timo Koch
dune-common
Commits
94452d9f
Commit
94452d9f
authored
16 years ago
by
Christian Engwer
Browse files
Options
Downloads
Patches
Plain Diff
better test for duneweb
[[Imported from SVN: r5163]]
parent
ae61f8a8
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
m4/dune.m4
+21
-15
21 additions, 15 deletions
m4/dune.m4
with
21 additions
and
15 deletions
m4/dune.m4
+
21
−
15
View file @
94452d9f
...
...
@@ -351,22 +351,28 @@ AC_DEFUN([DUNE_WEB],
AC_ARG_WITH
(
duneweb,
AC_HELP_STRING
([
--with-duneweb
=
PATH],[Only needed
for
website-generation, path to checked out version of dune-web]
))
if
test
x
$with_duneweb
!=
x
;
then
# parameter is set. Check it
AC_MSG_CHECKING
([
whether passed Dune-Web directory appears correct]
)
WEBTESTFILE
=
"
$with_duneweb
/layout/default.wml"
if
test
-d
"
$with_duneweb
"
&&
test
-e
"
$WEBTESTFILE
"
;
then
AC_MSG_RESULT
([
ok]
)
# normalize path
with_duneweb
=
`
(
cd
$with_duneweb
&&
pwd
)
`
;
else
if
test
-d
"
$with_duneweb
"
;
then
AC_MSG_ERROR
([
$WEBTESTFILE
not found
in
Dune-web
dir
$with_duneweb
!])
else
AC_MSG_ERROR
([
Dune-Web directory
$with_duneweb
not found!]
)
fi
if
test
x
$with_duneweb
!=
x
;
then
if
test
x
$with_duneweb
!=
xno
;
then
# parameter is set. Check it
AC_MSG_CHECKING
([
whether passed Dune-Web
(
$with_duneweb
)
directory appears correct]
)
WEBTESTFILE
=
"
$with_duneweb
/layout/default.wml"
if
test
-d
"
$with_duneweb
"
&&
test
-e
"
$WEBTESTFILE
"
;
then
AC_MSG_RESULT
([
ok]
)
# normalize path
with_duneweb
=
`
(
cd
$with_duneweb
&&
pwd
)
`
;
else
if
test
-d
"
$with_duneweb
"
;
then
AC_MSG_ERROR
([
$WEBTESTFILE
not found
in
Dune-web
dir
$with_duneweb
!])
else
AC_MSG_ERROR
([
Dune-Web directory
$with_duneweb
not found!]
)
fi
with_duneweb
=
no
fi
fi
DUNE_ADD_SUMMARY_ENTRY
([
dune web],[
$with_duneweb
])
else
with_duneweb
=
no
fi
AC_SUBST
(
DUNEWEBDIR,
$with_duneweb
)
AM_CONDITIONAL
(
DUNEWEB,
test
x
$with_duneweb
!=
xno
)
])
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