script to generate tarballs
authorMike Frysinger <vapier@gentoo.org>
Fri, 13 Jan 2006 08:01:50 +0000 (08:01 -0000)
committerMike Frysinger <vapier@gentoo.org>
Fri, 13 Jan 2006 08:01:50 +0000 (08:01 -0000)
toolchain/elf2flt/elf2flt/.cvsignore
toolchain/elf2flt/elf2flt/maketarball.sh [new file with mode: 0755]

index 7cf4be52f61655164f5cce8f1657976c22f84dd8..18cff9ae116b70799aab24f48f5372e191b221f2 100644 (file)
@@ -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 (executable)
index 0000000..1014860
--- /dev/null
@@ -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