chiark
/
gitweb
/
~ianmdlvl
/
nailing-cargo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c464bdf
)
Make path = be absolute
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Thu, 12 Mar 2020 00:49:26 +0000
(
00:49
+0000)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Thu, 12 Mar 2020 00:49:26 +0000
(
00:49
+0000)
This makes it work for crates in subdirectories
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
nailing-cargo
patch
|
blob
|
history
diff --git
a/nailing-cargo
b/nailing-cargo
index fd1fea0cf125818bb79c8b6d635a1a992c47a3e3..1cc613866718ad050b88b14c8ed3bd31fa26d54b 100755
(executable)
--- a/
nailing-cargo
+++ b/
nailing-cargo
@@
-56,7
+56,7
@@
while read <&204 what where; do
qwhere="${where//\//\\/}"
sed+='
s/^'$what' *= *\(\".*\"\) *$/'$what' = { version = \1 }/;
- s
/^'$what' *= *{/'$what' = { path = "..\/'"${qwhere}"'", /
;
+ s
#^'$what' *= *{#'$what' = { path = "'"${PWD%/*}"'/'"${qwhere}"'", #
;
/^'$what' *=/ s/version *= *\"[^"]*\"//;
/^'$what' *=/ s/, *\([,}]\)/\1/;
'