svn path=/trunk/gentoolkit/; revision=642
-include AUTHORS ChangeLog COPYING NEWS README README.Developer THANKS TODO
+include AUTHORS ChangeLog COPYING NEWS README README.Developer THANKS TODO VERSION
recursive-include data *
recursive-include man *
#
# $Header$
+ifeq ($(origin VERSION), undefined)
+ VERSION = 9999
+endif
+
all:
echo "YARMOUTH (vb.) To shout at foreigners in the belief that the louder you speak, the better they'll understand you."
echo $(VERSION)
dist-gentoolkit:
mkdir -p release
- sed -i "s/^VER =.*/VER = '$(VERSION)'/" setup.py
+ echo "$(VERSION)" > VERSION
python setup.py sdist --dist-dir release
- svn revert setup.py
+ svn revert VERSION
rm -f MANIFEST
from distutils.core import setup
-VER = '9.9.9.9'
+__version__ = open("VERSION").read().strip()
setup(
name='gentoolkit',
- version=VER,
+ version=__version__,
description='Set of tools that work with and enhance portage.',
author='',
author_email='',
maintainer_email='tools-portage@gentoo.org',
url='http://www.gentoo.org/proj/en/portage/tools/index.xml',
download_url='http://distfiles.gentoo.org/distfiles/gentoolkit-%s.tar.gz'\
- % VER,
+ % __version__,
package_dir={'': 'pym'},
packages=(
'gentoolkit',