Adding revision customisation.
This commit is contained in:
parent
361c105959
commit
810a89bff5
1 changed files with 4 additions and 1 deletions
5
build.sh
5
build.sh
|
@ -1,6 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
DISTRIBUTION=${DISTRIBUTION:-jammy}
|
||||
REVISION=${REVISION:-1}
|
||||
|
||||
rm -rf output
|
||||
|
||||
|
@ -16,10 +17,12 @@ for i in output/*; do
|
|||
cp copyright "$i/debian" # Add copyrights
|
||||
perl -i -p0e 's/python3 \(<< 3.(\d)+\),//gm' "$i/debian/control" # Remove upper limit from control.
|
||||
sed -i "s/stable;/$DISTRIBUTION;/g" "$i/debian/changelog" # Change distribution.
|
||||
sed -i "s/1~w2d0/$REVISION/g" "$i/debian/changelog" # Change suffix
|
||||
mv "$i" "${i/1~w2d0/$REVISION}"
|
||||
done
|
||||
|
||||
# Moving the shaders library over to essentials since it's required by Qt5Compat
|
||||
# mv output/python3-pyside6-addons_*_amd64/src/PySide6/Qt/lib/libQt6ShaderTools.so.6 output/python3-pyside6-essentials_*_amd64/src/PySide6/Qt/lib/
|
||||
mv output/python3-pyside6-addons_*_amd64/src/PySide6/Qt/lib/libQt6ShaderTools.so.6 output/python3-pyside6-essentials_*_amd64/src/PySide6/Qt/lib/
|
||||
|
||||
# Remove conflicting files between Essentials and Addons
|
||||
rm output/python3-pyside6-addons_*_amd64/src/PySide6/__init__.py
|
||||
|
|
Loading…
Reference in a new issue