mirror of
https://github.com/cmur2/python-bme680.git
synced 2024-11-01 02:56:15 +01:00
31 lines
667 B
Bash
31 lines
667 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
gettools="no"
|
||
|
setup="yes"
|
||
|
cleanup="yes"
|
||
|
pkgfiles=( "build" "changes" "deb" "dsc" "tar.xz" )
|
||
|
|
||
|
|
||
|
if [ $gettools == "yes" ]; then
|
||
|
sudo apt-get update && sudo apt-get install build-essential debhelper devscripts dh-make dh-python dput gnupg
|
||
|
sudo apt-get install python-all python-setuptools python3-all python3-setuptools
|
||
|
fi
|
||
|
|
||
|
if [ $setup == "yes" ]; then
|
||
|
rm -R ../library/build ../library/debian &> /dev/null
|
||
|
cp -R ./debian/ ../library/
|
||
|
fi
|
||
|
|
||
|
cd ../library && debuild -aarmhf
|
||
|
|
||
|
for file in ${pkgfiles[@]}; do
|
||
|
mv ../*.$file ../packaging
|
||
|
done
|
||
|
|
||
|
if [ $cleanup == "yes" ]; then
|
||
|
debuild clean
|
||
|
rm -R ./build ./debian &> /dev/null
|
||
|
fi
|
||
|
|
||
|
exit 0
|