Re-added deb build pipe

This commit is contained in:
2022-01-24 00:11:21 -06:00
parent 17dcb0322d
commit 22a53f9927
23 changed files with 1588 additions and 0 deletions

39
src/debs/build.sh Normal file
View File

@@ -0,0 +1,39 @@
#!/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
# Set gwinwrap permissions
for i in `find . -name gwinwrap`; do
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 ./*/
builder;
bash ./chownAll.sh
}
#builds debs
function builder() {
for i in `ls`; do
if [[ -d "${i}" ]]; then
dpkg --build "${i}"
else
echo "Not a dir."
fi
done
}
main;