4 # CARGO='../fucking-cargo/fucking-cargo cargo' make && make check CARGO='../fucking-cargo/fucking-cargo cargo'
6 lock=${PWD%/*}/.fuck.lock
7 if [ "x$FUCKING_CARGO" != "x$lock" ]; then
9 exec with-lock-ex -w "$lock" "$0" "$@"
16 /^ *\[dependencies\]/,/^ \[/{
20 while read <&4 what where; do
21 if [ "x$what" = x- ]; then continue; fi
22 qwhere="${where//\//\\/}"
23 sed+=' s/^'$what' *=.*/'$what' = { path = "..\/'"${qwhere}"'" }/;
30 while read <&4 what where; do
33 sed <$wf >$wf.fucking~ "$sed"
37 while read <&4 what where; do
39 if ! test -e $wf.unfucked~; then
46 while read <&3 what where; do
48 if test -e $wf.unfucked~; then
51 mv -f $wf.unfucked~ $wf
59 while read <&4 what where; do
61 printf >&2 ' %s' "$what"
62 if cmp -s $wf.fucked~ $wf.fucking~; then
66 mv -f $wf.fucking~ $wf