Make mkrelease.sh clean up the temporary $SOURCE_DIR when finished.
authorZac Medico <zmedico@gentoo.org>
Sun, 29 Aug 2010 18:11:26 +0000 (11:11 -0700)
committerZac Medico <zmedico@gentoo.org>
Sun, 29 Aug 2010 18:11:26 +0000 (11:11 -0700)
mkrelease.sh

index f9ecd46693f774a049d01e88e1dd4283d246a4dd..221d8a8b96bf206eb579a36abae0adde692485a8 100755 (executable)
@@ -69,6 +69,8 @@ cp -a "${SOURCE_DIR}/"{bin,cnf,doc,man,pym} "${RELEASE_DIR}/" || die "directory
 cp "${SOURCE_DIR}/"{DEVELOPING,LICENSE,NEWS,RELEASE-NOTES,TEST-NOTES} \
        "${RELEASE_DIR}/" || die "file copy failed"
 
+rm -rf "$SOURCE_DIR" || die "directory cleanup failed"
+
 echo ">>> Creating Changelog"
 git_log_opts=""
 [ -n "$CHANGELOG_REVISION" ] && git_log_opts+=" $CHANGELOG_REVISION^.."