diff options
Diffstat (limited to 'bin/gen_changelog')
| -rwxr-xr-x | bin/gen_changelog | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/bin/gen_changelog b/bin/gen_changelog deleted file mode 100755 index 91ef158..0000000 --- a/bin/gen_changelog +++ /dev/null @@ -1,37 +0,0 @@ -#!/bin/bash - -# This file is part of targetcli. -# Copyright (c) 2011 by RisingTide Systems LLC -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU Affero General Public License as -# published by the Free Software Foundation, version 3 (AGPLv3). -# -# 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 Affero General Public License for more details. -# -# You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see <http://www.gnu.org/licenses/>. - -NAME=$(git config --get user.name) -EMAIL=$(git config --get user.email) -DATE=$(date +'%a, %d %b %Y %H:%M:%S %z') - -SRCPKG=$(cat debian/control | grep ^Source | awk '{print $2}') -VERSION=$(basename $(git describe --tags | tr - .)) - -sed -i "s/__version__ = .*/__version__ = '${VERSION}'/g" ${SRCPKG}/__init__.py - -echo "${SRCPKG} (${VERSION}) unstable; urgency=low" > debian/changelog -echo >> debian/changelog -echo " * Generated package." >> debian/changelog -echo >> debian/changelog -echo " -- ${NAME} <${EMAIL}> ${DATE}" >> debian/changelog - -RH_SPEC="redhat/targetcli.spec" -cp redhat/targetcli.spec.tmpl $RH_SPEC -sed -i "s/Version:\( *\).*/Version:\1${VERSION}/g" $RH_SPEC -echo "* $(date +'%a %b %d %Y') ${NAME} <${EMAIL}> - ${VERSION}" >> $RH_SPEC -echo "- Generated package." >> $RH_SPEC |
