diff options
author | 2005-06-04 20:38:51 +0000 | |
---|---|---|
committer | 2005-06-04 20:38:51 +0000 | |
commit | 68f6e6e388b5a7e768385f9fa05765e5ca42074e (patch) | |
tree | 3a2842309964409c811e94297c65aa45c72f6742 /make-tarball.sh | |
parent | - add initial manpage for q (diff) | |
download | portage-utils-68f6e6e388b5a7e768385f9fa05765e5ca42074e.tar.gz portage-utils-68f6e6e388b5a7e768385f9fa05765e5ca42074e.tar.bz2 portage-utils-68f6e6e388b5a7e768385f9fa05765e5ca42074e.zip |
add placeholders
Diffstat (limited to 'make-tarball.sh')
-rwxr-xr-x | make-tarball.sh | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/make-tarball.sh b/make-tarball.sh new file mode 100755 index 0000000..c01f2c0 --- /dev/null +++ b/make-tarball.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +if [[ $# -ne 1 ]] ; then + echo "Usage: $0 <ver>" 1>&2 + exit 1 +fi + +ver="$1" +bn="$(basename $(pwd))-${ver}" +[[ -d "${bn}" ]] && rm -r "${bn}" +mkdir "${bn}" || exit 1 +cp -r Makefile README *.[ch] man "${bn}/" || exit 1 +rm -rf "${bn}"/man/CVS +tar -jcf "${bn}".tar.bz2 ${bn} || exit 1 +rm -r "${bn}" || exit 1 +du -b "${bn}".tar.bz2 |