Adding file duplicate checking

This commit is contained in:
Adsooi 2024-09-29 23:24:42 +02:00
parent 2865309b1b
commit bb729c7512
Signed by: Ad5001
GPG key ID: EF45F9C6AFE20160

View file

@ -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; }'