Update copy-firmware for WHENCE.ubuntu

This commit is contained in:
chen zhang 2022-08-24 09:33:14 +08:00
parent 08553dfa2e
commit 0a0210d897
1 changed files with 2 additions and 2 deletions

View File

@ -31,14 +31,14 @@ while test $# -gt 0; do
esac esac
done done
grep '^File:' WHENCE | sed -e's/^File: *//g' -e's/"//g' | while read f; do grep -h '^File:' WHENCE WHENCE.ubuntu | sed -e's/^File: *//g' -e's/"//g' | while read f; do
test -f "$f" || continue test -f "$f" || continue
$verbose "copying file $f" $verbose "copying file $f"
mkdir -p $destdir/$(dirname "$f") mkdir -p $destdir/$(dirname "$f")
cp -d "$f" $destdir/"$f" cp -d "$f" $destdir/"$f"
done done
grep -E '^Link:' WHENCE | sed -e's/^Link: *//g' -e's/-> //g' | while read f d; do grep -h -E '^Link:' WHENCE WHENCE.ubuntu | sed -e's/^Link: *//g' -e's/-> //g' | while read f d; do
if test -L "$f"; then if test -L "$f"; then
test -f "$destdir/$f" && continue test -f "$destdir/$f" && continue
$verbose "copying link $f" $verbose "copying link $f"