[nscl] Switch to NSCL's generic inclusion shell script.

This commit is contained in:
hackademix 2021-02-19 22:33:07 +01:00
parent 9e871c064d
commit 5f59f65494
2 changed files with 4 additions and 11 deletions

View File

@ -74,16 +74,9 @@ fi
rm -rf "$BUILD" "$XPI"
cp -pR "$SRC" "$BUILD"
# prune unused nscl stuff
rm -rf "$BUILD/nscl"
pushd "$SRC"
for f in $(grep 'nscl/[^"]*\.js' "manifest.json" */*.js | sed -re"s/^nscl.*//" -e "s/.*(nscl[^'\"]*\.js).*/\\1/" -e "/^ *$/d" | sort | uniq); do
nscl_curdir="$BUILD/$(dirname $f)"
mkdir -p "$nscl_curdir"
cp -p "$f" "$nscl_curdir"
echo "Including $f."
done
popd
# include nscl dependencies
"$NSCL/include.sh" "$BUILD"
if node "$NSCL/TLD/update.js" "$BUILD/nscl/common/tld.js"; then
echo 'Updated TLDs.'

@ -1 +1 @@
Subproject commit 48d590749688928dda8e27e7e1e4e388057f4836
Subproject commit f3ccee5c6c8e491104c7ff145d8480aa527ef960