$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
-
-"$@"