Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
OpenLDAP
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
Nadezhda Ivanova
OpenLDAP
Commits
2a537d14
Commit
2a537d14
authored
25 years ago
by
Kurt Zeilenga
Browse files
Options
Downloads
Patches
Plain Diff
More sh portability changes
parent
2a92589e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
build/man.mk
+1
-1
1 addition, 1 deletion
build/man.mk
build/mkdep
+8
-6
8 additions, 6 deletions
build/mkdep
build/srv.mk
+5
-5
5 additions, 5 deletions
build/srv.mk
with
14 additions
and
12 deletions
build/man.mk
+
1
−
1
View file @
2a537d14
...
...
@@ -33,7 +33,7 @@ install-common:
echo
"installing
$(
MANDIR
)
/
$$
page"
;
\
$(
RM
)
$(
MANDIR
)
/
$$
page
;
\
$(
INSTALL
)
$(
INSTALLFLAGS
)
-m
644
$$
page.
$(
TMP_SUFFIX
)
$(
MANDIR
)
/
$$
page
;
\
if
[
-f
"
$(
srcdir
)
/
$$
page.links"
]
;
then
\
if
test
-f
"
$(
srcdir
)
/
$$
page.links"
;
then
\
for
link
in
`
$(
CAT
)
$(
srcdir
)
/
$$
page.links
`
;
do
\
echo
"installing
$(
MANDIR
)
/
$$
link as link to
$$
page"
;
\
$(
LN_S
)
-f
$$
page
$(
MANDIR
)
/
$$
link
;
\
...
...
This diff is collapsed.
Click to expand it.
build/mkdep
+
8
−
6
View file @
2a537d14
...
...
@@ -29,11 +29,13 @@ set -e # exit immediately if any errors occur
MAKE
=
Makefile
# default makefile name is "Makefile"
NOSLASH
=
"no"
# by default, / dependencies are included
CC
=
${
CC_MKDEP
-
${
CC
-cc
}}
# default compiler is cc
:
${
CC_MKDEP_FLAGS
=
"-M"
}
# cc -M usually produces dependencies
SRCDIR
=
""
SED
=
cat
:
${
CC
=cc
}
:
${
CC_MKDEP
=
$CC
}
:
${
CC_MKDEP_FLAGS
=
"-M"
}
# cc -M usually produces dependencies
while
:
do case
"
$1
"
in
# the -s flag removes dependencies to files that begin with /
...
...
@@ -53,7 +55,7 @@ while :
# -c allows you to select a compiler to use (default is cc)
-c
)
[
-z
"
$CC_MKDEP
"
]
&&
CC
=
$2
test
-z
"
$CC_MKDEP
"
&&
CC
_MKDEP
=
$2
shift
;
shift
;;
# the -p flag produces "program: program.c" style dependencies
...
...
@@ -75,12 +77,12 @@ while :
esac
done
if
[
$#
=
0
]
;
then
if
test
$#
=
0
;
then
echo
'usage: mkdep [-p] [-s] [-c cc] [-f makefile] [-d srcdir] [flags] file ...'
exit
1
fi
if
[
!
-w
$MAKE
]
;
then
if
test
!
-w
$MAKE
;
then
echo
"mkdep: no writeable file
\"
$MAKE
\"
"
exit
1
fi
...
...
@@ -132,7 +134,7 @@ cat << _EOF_ >> $TMP
_EOF_
$CC
$CC_MKDEP_FLAGS
$files
|
\
$CC
_MKDEP
$CC_MKDEP_FLAGS
$files
|
\
sed
-e
's; \./; ;g'
|
\
$SED
>
$TMP
.sed
# dont pipe to awk. SGI awk wants a filename as argument.
...
...
This diff is collapsed.
Click to expand it.
build/srv.mk
+
5
−
5
View file @
2a537d14
...
...
@@ -7,7 +7,7 @@
##
all-common
:
FORCE
@
if
[
"
$(
BUILD_SRV
)
"
=
"yes"
]
;
then
\
@
if
test
"
$(
BUILD_SRV
)
"
=
"yes"
;
then
\
$(
MAKE
)
$(
MFLAGS
)
all-srv
;
\
else
\
echo
"run configure with
$(
BUILD_OPT
)
to build
$(
PROGRAMS
)
"
;
\
...
...
@@ -17,28 +17,28 @@ clean-common: clean-srv FORCE
veryclean-common
:
veryclean-srv FORCE
lint-common
:
FORCE
@
if
[
"
$(
BUILD_SRV
)
"
=
"yes"
]
;
then
\
@
if
test
"
$(
BUILD_SRV
)
"
=
"yes"
;
then
\
$(
MAKE
)
$(
MFLAGS
)
lint-srv
;
\
else
\
echo
"run configure with
$(
BUILD_OPT
)
to lint
$(
PROGRAMS
)
"
;
\
fi
5lint-common
:
FORCE
@
if
[
"
$(
BUILD_SRV
)
"
=
"yes"
]
;
then
\
@
if
test
"
$(
BUILD_SRV
)
"
=
"yes"
;
then
\
$(
MAKE
)
$(
MFLAGS
)
5lint-srv
;
\
else
\
echo
"run configure with
$(
BUILD_OPT
)
to 5lint
$(
PROGRAMS
)
"
;
\
fi
depend-common
:
FORCE
@
if
[
"
$(
BUILD_SRV
)
"
=
"yes"
]
;
then
\
@
if
test
"
$(
BUILD_SRV
)
"
=
"yes"
;
then
\
$(
MAKE
)
$(
MFLAGS
)
depend-srv
;
\
else
\
echo
"run configure with
$(
BUILD_OPT
)
to depend
$(
PROGRAMS
)
"
;
\
fi
install-common
:
FORCE
@
if
[
"
$(
BUILD_SRV
)
"
=
"yes"
]
;
then
\
@
if
test
"
$(
BUILD_SRV
)
"
=
"yes"
;
then
\
$(
MAKE
)
$(
MFLAGS
)
install-srv
;
\
else
\
echo
"run configure with
$(
BUILD_OPT
)
to install
$(
PROGRAMS
)
"
;
\
...
...
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