chiark / gitweb /
nailing-cargo: Delete old shell code from end of file
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 3 May 2020 21:15:35 +0000 (22:15 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 3 May 2020 21:15:41 +0000 (22:15 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
nailing-cargo

index bff0495e599da3936428c6ac0f6ba1d8ffe3426e..db7b72a5419213e77f80efc8856da9ed50b7d316 100755 (executable)
@@ -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
-
-"$@"