Ensure pycache files are removed on deb creation

This commit is contained in:
Joshua Boniface 2021-08-21 03:19:18 -04:00
parent 534c7cd7f0
commit 445dec1c38
2 changed files with 2 additions and 0 deletions

View File

@ -2,6 +2,7 @@
ver="$( head -1 debian/changelog | awk -F'[()-]' '{ print $2 }' )" ver="$( head -1 debian/changelog | awk -F'[()-]' '{ print $2 }' )"
git pull git pull
rm ../pvc_* rm ../pvc_*
find . -name "__pycache__" -exec rm -r {} \;
dh_make -p pvc_${ver} --createorig --single --yes dh_make -p pvc_${ver} --createorig --single --yes
dpkg-buildpackage -us -uc dpkg-buildpackage -us -uc
dh_clean dh_clean

View File

@ -23,6 +23,7 @@ pvc (${new_ver}) unstable; urgency=medium
-- Joshua Boniface <joshua@boniface.me> $( date -R ) -- Joshua Boniface <joshua@boniface.me> $( date -R )
EOF EOF
find . -name "__pycache__" -exec rm -r {} \;
# Build source tarball # Build source tarball
dh_make -p pvc_${new_ver} --createorig --single --yes dh_make -p pvc_${new_ver} --createorig --single --yes
# Build packages # Build packages