chiark / gitweb /
nailing-cargo: skip dependencies with path already specified
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 13 Mar 2020 16:41:59 +0000 (16:41 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 13 Mar 2020 16:41:59 +0000 (16:41 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
nailing-cargo

index 1cc613866718ad050b88b14c8ed3bd31fa26d54b..0d274dd1bc87fb5186a6fda004b7e330fc220274 100755 (executable)
@@ -55,6 +55,7 @@ while read <&204 what where; do
        if [ "x$what" = 'x#' ]; then continue; fi
        qwhere="${where//\//\\/}"
        sed+='
+               /{.*path *=/ b
                s/^'$what' *= *\(\".*\"\) *$/'$what' = { version = \1 }/;
                s#^'$what' *= *{#'$what' = { path = "'"${PWD%/*}"'/'"${qwhere}"'", #;
                /^'$what' *=/ s/version *= *\"[^"]*\"//;