From 852a0552c12a23feeebec4bd6f64a16903f19797 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sun, 3 May 2020 22:15:35 +0100 Subject: [PATCH] nailing-cargo: Delete old shell code from end of file Signed-off-by: Ian Jackson --- nailing-cargo | 88 --------------------------------------------------- 1 file changed, 88 deletions(-) diff --git a/nailing-cargo b/nailing-cargo index bff0495..db7b72a 100755 --- a/nailing-cargo +++ b/nailing-cargo @@ -300,91 +300,3 @@ uninstall(); $want_uninstall = 1; exit $estatus; - - -use Data::Dumper; -print STDERR Dumper(\%packagemap, \%manifests); - -__DATA__ - -lock=${PWD%/*}/.nail.lock -if [ "x$NAILING_CARGO" != "x$lock" ]; then - NAILING_CARGO=$lock \ - exec with-lock-ex -w "$lock" "$self" "$@" -fi - -exec 203<../Cargo.nail -f=Cargo.toml - -sed=' -/^ *\[\(build-\)\?dependencies\]/,/^ \[/{ -' - -if test -e ../Cargo.nail-env; then - . ../Cargo.nail-env -fi - -exec 204<../Cargo.nail -while read <&204 what where; do - if [ "x$what" = x- ]; then continue; fi - 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 *= *\"[^"]*\"//; - /^'$what' *=/ s/, *\([,}]\)/\1/; - ' -done -sed+='} -' - -exec 204<../Cargo.nail -while read <&204 what where; do - if [ "x$what" = 'x#' ]; then continue; fi - wf=../$where/$f - rm -f $wf.nailing~ - sed <$wf >$wf.nailing~ "$sed" -done - -exec 204<../Cargo.nail -while read <&204 what where; do - if [ "x$what" = 'x#' ]; then continue; fi - wf=../$where/$f - if ! test -e $wf.unnailed~; then - ln $wf $wf.unnailed~ - fi -done - -trap ' - set +e - while read <&203 what where; do - if [ "x$what" = "x#" ]; then continue; fi - wf=../$where/$f - if test -e $wf.unnailed~; then - rm -f $wf.nailed~ - ln $wf $wf.nailed~ - mv -f $wf.unnailed~ $wf - fi - done - echo >&2 'Unnailed' -' EXIT - -exec 204<../Cargo.nail -printf >&2 'Nailing' -while read <&204 what where; do - if [ "x$what" = 'x#' ]; then continue; fi - wf=../$where/$f - printf >&2 ' %s' "$what" - if cmp -s $wf.nailed~ $wf.nailing~; then - mv -f $wf.nailed~ $wf - rm -f $wf.nailing - else - mv -f $wf.nailing~ $wf - rm -f $wf.nailed - fi -done -echo >&2 - -"$@" -- 2.30.2