Adding file duplicate checking
This commit is contained in:
parent
2865309b1b
commit
bb729c7512
1 changed files with 10 additions and 1 deletions
11
build.sh
11
build.sh
|
@ -52,7 +52,16 @@ rm -rf output/python3-pyside6-addons_*_amd64/src/shiboken6*
|
||||||
rm -rf output/python3-pyside6-essentials_*_amd64/src/shiboken6*
|
rm -rf output/python3-pyside6-essentials_*_amd64/src/shiboken6*
|
||||||
rm -rf output/python3-shiboken6_*_amd64/src/PySide6
|
rm -rf output/python3-shiboken6_*_amd64/src/PySide6
|
||||||
|
|
||||||
function filter() { cat "$1" | awk "$2" > "$1"; }
|
# Checking for remaining conflicts.
|
||||||
|
cd output/python3-pyside6-essentials_*_amd_64 || exit
|
||||||
|
for file in $(find src); do
|
||||||
|
if [ -f ../python3-pyside6-addons_*_amd64/$file ]; then
|
||||||
|
echo "$file is dupplicated";
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
function filter() { cat "$1" | awk "$2" > "$1.mv"; mv "$1.mv" "$1"; }
|
||||||
|
|
||||||
# filter output/python3-shiboken6_*_amd64/debian/install '/^src\/shiboken6/ { print $0; }'
|
# filter output/python3-shiboken6_*_amd64/debian/install '/^src\/shiboken6/ { print $0; }'
|
||||||
# filter output/python3-pyside6-essentials_*_amd64/debian/install '/^src\/PySide6/ { print $0; }'
|
# filter output/python3-pyside6-essentials_*_amd64/debian/install '/^src\/PySide6/ { print $0; }'
|
||||||
|
|
Loading…
Reference in a new issue