Imported Debian patch 4.8.10-2

This commit is contained in:
Timo Aaltonen
2020-11-23 20:48:56 +02:00
committed by Mario Fetka
parent 8bc559c5a1
commit 358acdd85f
917 changed files with 1185414 additions and 1069733 deletions

29
install/ui/util/make-jquery.sh Executable file
View File

@@ -0,0 +1,29 @@
#!/bin/bash -eu
if [ $# -ne 1 ]; then
echo 'The script requires exactly one argument (a jQuery version):'
echo
echo ' $ ./make-jquery.sh 3.4.1'
echo
exit 1
fi
WD=$(realpath $(dirname "${BASH_SOURCE[0]}"))
JQUERY_VERSION=$1
# Clone jQuery and apply patches
JQUERY_CLONE=$(mktemp -d)
git clone -b ${JQUERY_VERSION} --depth 1 https://github.com/jquery/jquery.git $JQUERY_CLONE
pushd $JQUERY_CLONE
git am ${WD}/jquery-patches/${JQUERY_VERSION}/*
# Build jQuery
npm install
npm run-script build
# Replace the project version of jQuery with the built one
cp -fv dist/jquery.min.js ${WD}/../src/libs/jquery.js
# Clean up
popd
rm -rf $JQUERY_CLONE