chiark
/
gitweb
/
~mdw
/
runlisp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
5eddcef
)
mklinks.in: Don't make directories if the link name doesn't contain `/'.
author
Mark Wooding
<mdw@distorted.org.uk>
Sat, 14 May 2016 18:14:25 +0000
(19:14 +0100)
committer
Mark Wooding
<mdw@distorted.org.uk>
Sun, 29 May 2016 16:28:47 +0000
(17:28 +0100)
This breakage was introduced in
de8440ce
...; the previous version
carefully stuck `./' on the front of names before trimming off a final
`/*'.
mklinks.in
patch
|
blob
|
blame
|
history
diff --git
a/mklinks.in
b/mklinks.in
index 34358799ac0a825f0eda9466cefc5efb018a9a93..3548946110f20333d254d3ba15e7f7d3c57685c3 100755
(executable)
--- a/
mklinks.in
+++ b/
mklinks.in
@@
-76,9
+76,8
@@
cat "$@" | while read name; do
*=*) want=${name##*=}; name=${name%=*} ;;
*) want=${name##*/} ;;
esac
- dir=${name%/*}
if [ -r "$pkgdatadir/$want" ]; then
- mkdir -p "$dir"
+ case "$name" in */*) mkdir -p "${name%/*}" ;; esac
rm -f "$name"
ln -sf "$pkgdatadir/$want" "$name"
fi