RetroShare/build_scripts/Ubuntu_src/make_tgz.sh

23 lines
468 B
Bash
Raw Normal View History

#!/bin/sh
rm BaseRetroShareDirs.tgz
mv retroshare-0.5/src/data retroshare-0.5/
rm -rf retroshare-0.5/libssh-0.5.2
rm -rf retroshare-0.5/src/*
mv retroshare-0.5/data retroshare-0.5/src/
find retroshare-0.5 -name "*~" -exec \rm {} \;
find retroshare-0.5 -name ".svn" -exec \rm -rf {} \;
tar zcvf BaseRetroShareDirs.tgz retroshare-0.5/
if ! test -f BaseRetroShareDirs.tgz; then
echo BaseRetroShareDirs.tgz could not be created
exit;
fi
rm -rf retroshare-0.5/