#!/bin/bash
set -e
echo -e "\nINFO: compress root directories\n"
cd nakedroot/
tar cvzf nakedroot.tar.gz ./* --owner=0 --group=0
mv nakedroot.tar.gz ../
cd ../debianroot/
tar cvzf debianroot.tar.gz ./* --owner=0 --group=0
mv debianroot.tar.gz ../
cd ../
echo -e "\nINFO: building nakedroot.deb\n"
equivs-build nakedroot.equivs
rm debianroot.tar.gz nakedroot.tar.gz
exit 0
