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
Oren Tirosh
OpenLDAP
Commits
4ce1deab
Commit
4ce1deab
authored
18 years ago
by
Kurt Zeilenga
Browse files
Options
Downloads
Patches
Plain Diff
update shtool to 2.0.5
parent
9a82a567
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
build/shtool
+38
-13
38 additions, 13 deletions
build/shtool
with
38 additions
and
13 deletions
build/shtool
+
38
−
13
View file @
4ce1deab
#!/bin/sh
##
## GNU shtool -- The GNU Portable Shell Tool
## Copyright (c) 1994-200
5
Ralf S. Engelschall <rse@engelschall.com>
## Copyright (c) 1994-200
6
Ralf S. Engelschall <rse@engelschall.com>
##
## See http://www.gnu.org/software/shtool/ for more information.
## See ftp://ftp.gnu.org/gnu/shtool/ for latest version.
##
## Version: 2.0.
2
(
15-Jun
-200
5
)
## Version: 2.0.
5
(
07-Feb
-200
6
)
## Contents: 6/19 available modules
##
...
...
@@ -61,17 +61,42 @@
## path Deal with program paths
##
# maximum Bourne-Shell compatibility
if
[
".
$ZSH_VERSION
"
!=
.
]
&&
(
emulate sh
)
>
/dev/null 2>&1
;
then
# reconfigure zsh(1)
emulate sh
NULLCMD
=
:
alias
-g
'${1+"$@"}'
=
'"$@"'
elif
[
".
$BASH_VERSION
"
!=
.
]
&&
(
set
-o
posix
)
>
/dev/null 2>&1
;
then
# reconfigure bash(1)
set
-o
posix
fi
# maximum independence of NLS nuisances
for
var
in
\
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION
\
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER
\
LC_TELEPHONE LC_TIME
do
if
(
set
+x
;
test
-z
"
`
(
eval
$var
=
C
;
export
$var
)
2>&1
`
"
)
;
then
eval
$var
=
C
;
export
$var
else
unset
$var
fi
done
# initial command line handling
if
[
$#
-eq
0
]
;
then
echo
"
$0
:Error: invalid command line"
1>&2
echo
"
$0
:Hint: run
\`
$0
-h' for usage"
1>&2
exit
1
fi
if
[
".
$1
"
=
".-h"
]
||
[
".
$1
"
=
".--help"
]
;
then
echo
"This is GNU shtool, version 2.0.
2
(
15-Jun
-200
5
)"
echo
"
Copyright (c) 1994-200
5
Ralf S. Engelschall <rse@engelschall.com>
"
echo
"
Report bugs to <bug-shtool@gnu.org>
"
echo
"This is GNU shtool, version 2.0.
5
(
07-Feb
-200
6
)"
echo
'
Copyright (c) 1994-200
6
Ralf S. Engelschall <rse@engelschall.com>
'
echo
'
Report bugs to <bug-shtool@gnu.org>
'
echo
''
echo
"
Usage: shtool [<options>] [<cmd-name> [<cmd-options>] [<cmd-args>]]
"
echo
'
Usage: shtool [<options>] [<cmd-name> [<cmd-options>] [<cmd-args>]]
'
echo
''
echo
'Available global <options>:'
echo
' -v, --version display shtool version information'
...
...
@@ -136,7 +161,7 @@ if [ ".$1" = ".-h" ] || [ ".$1" = ".--help" ]; then
exit
0
fi
if
[
".
$1
"
=
".-v"
]
||
[
".
$1
"
=
".--version"
]
;
then
echo
"GNU shtool 2.0.
2
(
15-Jun
-200
5
)"
echo
"GNU shtool 2.0.
5
(
07-Feb
-200
6
)"
exit
0
fi
if
[
".
$1
"
=
".-r"
]
||
[
".
$1
"
=
".--recreate"
]
;
then
...
...
@@ -455,7 +480,7 @@ case $tool in
echo
)
##
## echo -- Print string with optional construct expansion
## Copyright (c) 1998-200
5
Ralf S. Engelschall <rse@engelschall.com>
## Copyright (c) 1998-200
6
Ralf S. Engelschall <rse@engelschall.com>
##
text
=
"
$*
"
...
...
@@ -753,7 +778,7 @@ echo )
move
)
##
## move -- Move files with simultaneous substitution
## Copyright (c) 1999-200
5
Ralf S. Engelschall <rse@engelschall.com>
## Copyright (c) 1999-200
6
Ralf S. Engelschall <rse@engelschall.com>
##
src
=
"
$1
"
...
...
@@ -845,7 +870,7 @@ move )
install
)
##
## install -- Install a program, script or datafile
## Copyright (c) 1997-200
5
Ralf S. Engelschall <rse@engelschall.com>
## Copyright (c) 1997-200
6
Ralf S. Engelschall <rse@engelschall.com>
##
# special case: "shtool install -d <dir> [...]" internally
...
...
@@ -1008,7 +1033,7 @@ install )
mkdir
)
##
## mkdir -- Make one or more directories
## Copyright (c) 1996-200
5
Ralf S. Engelschall <rse@engelschall.com>
## Copyright (c) 1996-200
6
Ralf S. Engelschall <rse@engelschall.com>
##
errstatus
=
0
...
...
@@ -1096,7 +1121,7 @@ mkdir )
mkln
)
##
## mkln -- Make link with calculation of relative paths
## Copyright (c) 1998-200
5
Ralf S. Engelschall <rse@engelschall.com>
## Copyright (c) 1998-200
6
Ralf S. Engelschall <rse@engelschall.com>
##
# determine source(s) and destination
...
...
@@ -1247,7 +1272,7 @@ mkln )
subst
)
##
## subst -- Apply sed(1) substitution operations
## Copyright (c) 2001-200
5
Ralf S. Engelschall <rse@engelschall.com>
## Copyright (c) 2001-200
6
Ralf S. Engelschall <rse@engelschall.com>
##
# remember optional list of file(s)
...
...
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