script to generate tarballs

This commit is contained in:
Mike Frysinger 2006-01-13 08:01:50 +00:00
parent 604ce1587b
commit 9896430b13
2 changed files with 13 additions and 0 deletions

View File

@ -1,2 +1,3 @@
.cvsignore
.svn
maketarball.sh

View File

@ -0,0 +1,12 @@
#!/bin/bash
cvs_stamp=$(cut -d/ -f4 CVS/Entries | sort | tail -n 1)
stamp=$(date +%Y%m%d --date="${cvs_stamp}")
p="elf2flt-${stamp}"
rm -f elf2flt-*.tar.bz2
mkdir ../${p}
cp -r * ../${p}/ || exit 1
tar jcf ${p}.tar.bz2 --exclude .svn -C .. ${p}
rm -r ../${p} || exit 1
du -b ${p}.tar.bz2