Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
X
xz
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
OpenVMS
tools
xz
Commits
e00a728879b3
Commit
e00a728879b3
authored
16 years ago
by
Lasse Collin
Browse files
Options
Downloads
Patches
Plain Diff
Create correct symlinks even when
--program-{prefix,suffix,transform} is passed to configure.
parent
2e366ffde746
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/scripts/Makefile.am
+46
-34
46 additions, 34 deletions
src/scripts/Makefile.am
src/xz/Makefile.am
+13
-8
13 additions, 8 deletions
src/xz/Makefile.am
src/xzdec/Makefile.am
+6
-3
6 additions, 3 deletions
src/xzdec/Makefile.am
with
65 additions
and
45 deletions
src/scripts/Makefile.am
+
46
−
34
View file @
e00a7288
...
...
@@ -10,20 +10,24 @@
install-exec-hook
:
cd
$(
DESTDIR
)$(
bindir
)
&&
\
rm
-f
xzcmp xzegrep xzfgrep xzless
\
lzdiff lzgrep lzmore
\
lzcmp lzegrep lzfgrep lzless
&&
\
$(
LN_S
)
xzdiff xzcmp
&&
\
$(
LN_S
)
xzgrep xzegrep
&&
\
$(
LN_S
)
xzgrep xzfgrep
&&
\
$(
LN_S
)
xzmore xzless
&&
\
$(
LN_S
)
xzdiff lzdiff
&&
\
$(
LN_S
)
xzgrep lzgrep
&&
\
$(
LN_S
)
xzmore lzmore
&&
\
$(
LN_S
)
xzdiff lzcmp
&&
\
$(
LN_S
)
xzgrep lzegrep
&&
\
$(
LN_S
)
xzgrep lzfgrep
&&
\
$(
LN_S
)
xzmore lzless
target
=
`
echo
xzdiff |
$(
SED
)
'
$(
transform
)
'
`
&&
\
for
name
in
xzcmp lzdiff lzcmp
;
do
\
link
=
`
echo
$$
name |
$(
SED
)
'
$(
transform
)
'
`
&&
\
rm
-f
$$
link
&&
\
$(
LN_S
)
$$
target
$$
link
;
\
done
&&
\
target
=
`
echo
xzgrep |
$(
SED
)
'
$(
transform
)
'
`
&&
\
for
name
in
xzegrep xzfgrep lzgrep lzegrep lzfgrep
;
do
\
link
=
`
echo
$$
name |
$(
SED
)
'
$(
transform
)
'
`
&&
\
rm
-f
$$
link
&&
\
$(
LN_S
)
$$
target
$$
link
;
\
done
&&
\
target
=
`
echo
xzmore |
$(
SED
)
'
$(
transform
)
'
`
&&
\
for
name
in
xzless lzmore lzless
;
do
\
link
=
`
echo
$$
name |
$(
SED
)
'
$(
transform
)
'
`
&&
\
rm
-f
$$
link
&&
\
$(
LN_S
)
$$
target
$$
link
;
\
done
install-data-hook
:
cd
$(
DESTDIR
)$(
mandir
)
/man1
&&
\
...
...
@@ -27,20 +31,24 @@
install-data-hook
:
cd
$(
DESTDIR
)$(
mandir
)
/man1
&&
\
rm
-f
xzcmp.1 xzegrep.1 xzfgrep.1 xzless.1
\
lzdiff.1 lzgrep.1 lzmore.1
\
lzcmp.1 lzegrep.1 lzfgrep.1 lzless.1
&&
\
$(
LN_S
)
xzdiff.1 xzcmp.1
&&
\
$(
LN_S
)
xzgrep.1 xzegrep.1
&&
\
$(
LN_S
)
xzgrep.1 xzfgrep.1
&&
\
$(
LN_S
)
xzmore.1 xzless.1
&&
\
$(
LN_S
)
xzdiff.1 lzdiff.1
&&
\
$(
LN_S
)
xzgrep.1 lzgrep.1
&&
\
$(
LN_S
)
xzmore.1 lzmore.1
&&
\
$(
LN_S
)
xzdiff.1 lzcmp.1
&&
\
$(
LN_S
)
xzgrep.1 lzegrep.1
&&
\
$(
LN_S
)
xzgrep.1 lzfgrep.1
&&
\
$(
LN_S
)
xzmore.1 lzless.1
target
=
`
echo
xzdiff |
$(
SED
)
'
$(
transform
)
'
`
&&
\
for
name
in
xzcmp lzdiff lzcmp
;
do
\
link
=
`
echo
$$
name |
$(
SED
)
'
$(
transform
)
'
`
&&
\
rm
-f
$$
link.1
&&
\
$(
LN_S
)
$$
target.1
$$
link.1
;
\
done
&&
\
target
=
`
echo
xzgrep |
$(
SED
)
'
$(
transform
)
'
`
&&
\
for
name
in
xzegrep xzfgrep lzgrep lzegrep lzfgrep
;
do
\
link
=
`
echo
$$
name |
$(
SED
)
'
$(
transform
)
'
`
&&
\
rm
-f
$$
link.1
&&
\
$(
LN_S
)
$$
target.1
$$
link.1
;
\
done
&&
\
target
=
`
echo
xzmore |
$(
SED
)
'
$(
transform
)
'
`
&&
\
for
name
in
xzless lzmore lzless
;
do
\
link
=
`
echo
$$
name |
$(
SED
)
'
$(
transform
)
'
`
&&
\
rm
-f
$$
link.1
&&
\
$(
LN_S
)
$$
target.1
$$
link.1
;
\
done
uninstall-hook
:
cd
$(
DESTDIR
)$(
bindir
)
&&
\
...
...
@@ -44,7 +52,9 @@
uninstall-hook
:
cd
$(
DESTDIR
)$(
bindir
)
&&
\
rm
-f
xzcmp xzegrep xzfgrep xzless
\
lzdiff lzgrep lzmore
\
lzcmp lzegrep lzfgrep lzless
for
name
in
xzcmp lzdiff lzcmp xzgrep xzegrep xzfgrep
\
lzgrep lzegrep lzfgrep xzless lzmore lzless
;
do
\
link
=
`
echo
$$
name |
$(
SED
)
'
$(
transform
)
'
`
&&
\
rm
-f
$$
link
;
\
done
cd
$(
DESTDIR
)$(
mandir
)
/man1
&&
\
...
...
@@ -50,4 +60,6 @@
cd
$(
DESTDIR
)$(
mandir
)
/man1
&&
\
rm
-f
xzcmp.1 xzegrep.1 xzfgrep.1 xzless.1
\
lzdiff.1 lzgrep.1 lzmore.1
\
lzcmp.1 lzegrep.1 lzfgrep.1 lzless.1
for
name
in
xzcmp lzdiff lzcmp xzgrep xzegrep xzfgrep
\
lzgrep lzegrep lzfgrep xzless lzmore lzless
;
do
\
link
=
`
echo
$$
name |
$(
SED
)
'
$(
transform
)
'
`
&&
\
rm
-f
$$
link.1
;
\
done
This diff is collapsed.
Click to expand it.
src/xz/Makefile.am
+
13
−
8
View file @
e00a7288
...
...
@@ -49,5 +49,5 @@
xz_LDADD
+=
$(
LTLIBINTL
)
## Create symlinks for unxz and xzcat for convenice
n
. Create symlinks also
## Create symlinks for unxz and xzcat for conveni
en
ce. Create symlinks also
## for lzma, unlzma, and lzcat for compatibility with LZMA Utils 4.32.x.
...
...
@@ -53,3 +53,5 @@
## for lzma, unlzma, and lzcat for compatibility with LZMA Utils 4.32.x.
xzlinks
=
unxz xzcat lzma unlzma lzcat
install-exec-hook
:
cd
$(
DESTDIR
)$(
bindir
)
&&
\
...
...
@@ -54,11 +56,11 @@
install-exec-hook
:
cd
$(
DESTDIR
)$(
bindir
)
&&
\
rm
-f
unxz xzcat lzma unlzma lzcat
&&
\
$(
LN_S
)
xz unxz
&&
\
$(
LN_S
)
xz xzcat
&&
\
$(
LN_S
)
xz lzma
&&
\
$(
LN_S
)
xz unlzma
&&
\
$(
LN_S
)
xz lzcat
target
=
`
echo
xz |
$(
SED
)
'
$(
transform
)
'
`
&&
\
for
name
in
$(
xzlinks
);
do
\
link
=
`
echo
$$
name |
$(
SED
)
'
$(
transform
)
'
`
&&
\
rm
-f
$$
link
&&
\
$(
LN_S
)
$$
target
$$
link
;
\
done
uninstall-hook
:
cd
$(
DESTDIR
)$(
bindir
)
&&
\
...
...
@@ -62,4 +64,7 @@
uninstall-hook
:
cd
$(
DESTDIR
)$(
bindir
)
&&
\
rm
-f
unxz xzcat lzma unlzma lzcat
for
name
in
$(
xzlinks
);
do
\
link
=
`
echo
$$
name |
$(
SED
)
'
$(
transform
)
'
`
&&
\
rm
-f
$$
link
;
\
done
This diff is collapsed.
Click to expand it.
src/xzdec/Makefile.am
+
6
−
3
View file @
e00a7288
...
...
@@ -32,8 +32,10 @@
install-data-hook
:
cd
$(
DESTDIR
)$(
mandir
)
/man1
&&
\
rm
-f
lzmadec.1
&&
\
$(
LN_S
)
xzdec.1 lzmadec.1
target
=
`
echo
xzdec |
$(
SED
)
'
$(
transform
)
'
`
&&
\
link
=
`
echo
lzmadec |
$(
SED
)
'
$(
transform
)
'
`
&&
\
rm
-f
$$
link.1
&&
\
$(
LN_S
)
$$
target.1
$$
link.1
uninstall-hook
:
cd
$(
DESTDIR
)$(
mandir
)
/man1
&&
\
...
...
@@ -37,4 +39,5 @@
uninstall-hook
:
cd
$(
DESTDIR
)$(
mandir
)
/man1
&&
\
rm
-f
lzmadec.1
link
=
`
echo
lzmadec |
$(
SED
)
'
$(
transform
)
'
`
&&
\
rm
-f
$$
link.1
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