Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 19 lines (17 sloc) 395 Bytes
#! /bin/sh
package="backdoor"
version="-1.0-2"
rm -rf ./tmp
cp -a "$package".debpackage ./tmp
if [ -d ./tmp ]; then
echo "./tmp dir exists so continue \n"
cd ./tmp
echo "remove .git files \n"
find . | grep .git | xargs rm -rf
cd ..
fakeroot dpkg-deb --build tmp
mv ./tmp.deb "$package""$version".deb
rm -rf ./tmp
else
echo " ./tmp directory does not exist so skip make \n"
fi