- Also fix misc issues with mingw-w64-qt5-base-static - Also provide static libs for mingw-w64-qt5-declarative and mingw-w64-qt5-tools (other modules are still on TODO list) - First approach to allow usage of static version via CMake - Use native OpenGL by default because this version seems less buggy and ANGLE is hard to maintain; this is also the default choice in MSYS2-MINGW-packages and MXE
25 lines
692 B
Bash
Executable File
25 lines
692 B
Bash
Executable File
#!/usr/bin/bash
|
|
set -e # abort on first error
|
|
master="$1"
|
|
|
|
if [[ ! $master ]]; then
|
|
# no default here to prevent unintented use
|
|
echo "Error: no master specified"
|
|
exit -1
|
|
elif [ $# -gt 1 ]; then
|
|
echo "Error: too many arguments specified"
|
|
echo "Usage: $0 master_dir"
|
|
exit -2
|
|
elif [[ ! -d $master ]]; then
|
|
echo "Error: specified master $master does not exist"
|
|
exit -3
|
|
fi
|
|
|
|
for dir in *; do
|
|
if [[ $dir != $master ]] && [[ -d $dir ]]; then
|
|
rm "$dir/"* # clean first (files might have been remove in master)
|
|
cp "$master/"* "$dir"
|
|
sed -e '/pkgname=mingw-w64-qt5-base/{c\pkgname=mingw-w64-qt5-base'${dir#mingw-w64} -e ';d}' "$master/PKGBUILD" > "$dir/PKGBUILD"
|
|
fi
|
|
done
|