chiark / gitweb /
nailing-cargo: skip dependencies with path already specified
[nailing-cargo.git] / 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 *= *\"[^"]*\"//;