diff options
author | Mike Frysinger <vapier@gentoo.org> | 2006-01-13 08:01:50 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2006-01-13 08:01:50 +0000 |
commit | 9896430b13769ae0e5771ada898441cb2bb773d3 (patch) | |
tree | 1622cd5b835260b30f9e5fcb4e722816ba5d5463 | |
parent | 604ce1587b0928571666d95dede97988ceab16ab (diff) |
script to generate tarballs
-rw-r--r-- | toolchain/elf2flt/elf2flt/.cvsignore | 1 | ||||
-rwxr-xr-x | toolchain/elf2flt/elf2flt/maketarball.sh | 12 |
2 files changed, 13 insertions, 0 deletions
diff --git a/toolchain/elf2flt/elf2flt/.cvsignore b/toolchain/elf2flt/elf2flt/.cvsignore index 7cf4be52f..18cff9ae1 100644 --- a/toolchain/elf2flt/elf2flt/.cvsignore +++ b/toolchain/elf2flt/elf2flt/.cvsignore @@ -1,2 +1,3 @@ .cvsignore .svn +maketarball.sh diff --git a/toolchain/elf2flt/elf2flt/maketarball.sh b/toolchain/elf2flt/elf2flt/maketarball.sh new file mode 100755 index 000000000..10148608a --- /dev/null +++ b/toolchain/elf2flt/elf2flt/maketarball.sh @@ -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 |