Compare commits
2 Commits
2c1f6f5e7a
...
a36504aa31
Author | SHA1 | Date |
---|---|---|
Leah Rowe | a36504aa31 | |
Leah Rowe | cdce8ba70b |
1
build
1
build
|
@ -134,7 +134,6 @@ fetch_trees()
|
|||
[ ! -f "$x" ] || [ -L "$xp" ] || x_ rm -Rf "src/$xp/$xp"
|
||||
done
|
||||
rmgit .
|
||||
rm -Rf tmp .git src/u-boot/*/test/lib/strlcat.c || $err "$_xm !rm"
|
||||
}
|
||||
|
||||
fail()
|
||||
|
|
|
@ -197,8 +197,8 @@ nuke()
|
|||
pjsrcdir="${pjsrcdir#src/}"
|
||||
[ ! -f "config/$pjcfgdir/nuke.list" ] && return 0
|
||||
|
||||
while read -r blobfile; do
|
||||
rmf="$(realpath "src/$pjsrcdir/$blobfile" 2>/dev/null)" || \
|
||||
while read -r nukefile; do
|
||||
rmf="$(realpath "src/$pjsrcdir/$nukefile" 2>/dev/null)" || \
|
||||
continue
|
||||
[ -L "$rmf" ] && continue # we will delete the actual file
|
||||
[ "${rmf#"$PWD/src/$pjsrcdir"}" = "$rmf" ] && continue
|
||||
|
@ -206,12 +206,12 @@ nuke()
|
|||
rmf="${rmf#"$PWD/"}"
|
||||
[ -e "$rmf" ] || continue
|
||||
del="y"
|
||||
rm -Rf "$rmf" || $err "$pjcfgdir/blobs: can't rm \"$blobfile\""
|
||||
rm -Rf "$rmf" || $err "$nuke pjcfgdir: can't rm \"$nukefile\""
|
||||
printf "nuke %s: deleted \"%s\"\n" "$pjcfgdir" "$rmf"
|
||||
done < "config/$pjcfgdir/nuke.list"
|
||||
|
||||
[ "${del}" = "y" ] && return 0
|
||||
printf "nuke %s: no defined blobs exist in dir, src/%s\n" 1>&2 \
|
||||
printf "nuke %s: no defined files exist in dir, src/%s\n" 1>&2 \
|
||||
"$pjcfgdir" "$pjsrcdir"
|
||||
printf "(this is not an error)\n" 1>&2
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue