#!/bin/sh # # Copyright (C) 2006, Adam C�ile (Le_Vert) # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA REPOS="${1}" REV="${2}" NAME="`basename ${1}`" LOG="`/usr/bin/svnlook log -r ${REV} ${REPOS}`" AUTHOR="`/usr/bin/svnlook author -r $REV ${REPOS}`" TRAC_ENV="/data/trac/nicotine+/" SVN_URL="http://www.nicotine-plus.org/svn" SVN_TAGS_BASE="/tags/" SVN_TAGS_APPEND="${NAME}" TARBALL_DIR="/data/repos/${NAME}/files/tarballs/" /usr/bin/python /data/trac/scripts/trac-post-commit-hook \ -p "${TRAC_ENV}" \ -r "${REV}" -u "${AUTHOR}" \ -m "${LOG}" \ -e "()" /usr/bin/python /data/trac/scripts/create-release-tarball \ "${LOG}" \ "${NAME}" \ "${SVN_URL}" \ "${SVN_TAGS_BASE}" \ "${SVN_TAGS_APPEND}" \ "${TARBALL_DIR}" /usr/share/subversion/hook-scripts/commit-email.pl --from svn-commit-bot@nicotine-plus.org "$REPOS" "$REV" nicotine-plus-svn@lists.sourceforge.net