clang
unvendor
This commit is contained in:
parent
9a4b261179
commit
404aa8ebbb
139 changed files with 8091 additions and 1178 deletions
20
06/helpers/inject
Executable file
20
06/helpers/inject
Executable file
|
@ -0,0 +1,20 @@
|
|||
#!/usr/bin/env bash
|
||||
set -uex
|
||||
|
||||
DESTDIR=$1
|
||||
shift
|
||||
|
||||
for arg; do
|
||||
if [[ "$arg" =~ .*\.pkg ]]; then
|
||||
# That one's for package dependencies
|
||||
tar -xf "$arg" -Izstd -C "$DESTDIR"
|
||||
else
|
||||
# That one's for copying over downloads and sources
|
||||
if [[ ! -e "./$DESTDIR/$arg" || "$arg" -nt "./$DESTDIR/$arg" ]]
|
||||
then
|
||||
echo "Copying $arg into $DESTDIR..."
|
||||
mkdir -p "$DESTDIR/$(dirname "$arg")"
|
||||
cp -a --reflink=auto "$arg" "$DESTDIR/$arg"
|
||||
fi
|
||||
fi
|
||||
done
|
Loading…
Add table
Add a link
Reference in a new issue