Martchus
c9819b9c7c
* Adapt hacks to new config system * Use distinct mkspec mingw-w64-g++ rather than patching the existing win32-g++ * Testing QML and ANGLE is on TODO list because it hasn't been tested since quite a time
28 lines
760 B
Bash
Executable File
28 lines
760 B
Bash
Executable File
#!/usr/bin/bash
|
|
|
|
# Syncs the different variants of mingw-w64-qt5-base
|
|
|
|
set -e # abort on first error
|
|
master="${1:-mingw-w64}"
|
|
|
|
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
|