GWinWrap/python/src/debs/build.sh

40 lines
740 B
Bash
Raw Normal View History

2019-05-05 09:02:35 +00:00
#!/bin/bash
# Fixes ownershp
function main() {
sudo find . -type f -exec chmod 644 {} +
sudo find . -type d -exec chmod 755 {} +
# Set postrm permissions
for i in `find . -name postrm`; do
sudo chmod 755 "${i}"
done
2019-05-06 03:25:06 +00:00
# Set gwinwrap permissions
2019-05-05 09:43:31 +00:00
for i in `find . -name gwinwrap`; do
2019-05-05 09:02:35 +00:00
sudo chmod 755 "${i}"
done
# Set xwinwrap permissions
for i in `find . -name xwinwrap`; do
sudo chmod 755 "${i}"
done
sudo chown -R root:root ./*/
2019-05-14 02:56:16 +00:00
builder;
bash ./chownAll.sh
2019-05-05 09:02:35 +00:00
}
#builds debs
function builder() {
for i in `ls`; do
if [[ -d "${i}" ]]; then
dpkg --build "${i}"
else
echo "Not a dir."
fi
done
}
main;