diff options
author | 2005-06-16 23:53:07 +0000 | |
---|---|---|
committer | 2005-06-16 23:53:07 +0000 | |
commit | 002cc8718a0fa0c4c7be86fa79be2a31294eb70f (patch) | |
tree | 01b3bdd13f4e44f28d94acef219c1e119206018b /make-tarball.sh | |
parent | allow env CFLAGS to override (diff) | |
download | portage-utils-002cc8718a0fa0c4c7be86fa79be2a31294eb70f.tar.gz portage-utils-002cc8718a0fa0c4c7be86fa79be2a31294eb70f.tar.bz2 portage-utils-002cc8718a0fa0c4c7be86fa79be2a31294eb70f.zip |
dont create a tarball with temp files in it
Diffstat (limited to 'make-tarball.sh')
-rwxr-xr-x | make-tarball.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/make-tarball.sh b/make-tarball.sh index 5a76e5b..2d657c2 100755 --- a/make-tarball.sh +++ b/make-tarball.sh @@ -5,11 +5,19 @@ if [[ $# -ne 1 ]] ; then exit 1 fi +old_files=$(find . -name '.#*') +if [[ -n ${old_files} ]] ; then + echo "Remove these temp files before making a package:" + echo "${old_files}" + exit 1 +fi + ver="$1" bn="$(basename $(pwd))-${ver}" [[ -d "${bn}" ]] && rm -r "${bn}" mkdir "${bn}" || exit 1 cp -r Makefile README *.[ch] man libq "${bn}/" || exit 1 +ls q?*.c | sed -e 's:\.c$::' > "${bn}"/applet-list rm -rf "${bn}"/{man,libq}/CVS tar -jcvvf "${bn}".tar.bz2 ${bn} || exit 1 rm -r "${bn}" || exit 1 |