summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfuzzyray <fuzzyray@gentoo.org>2009-05-20 14:27:01 +0000
committerfuzzyray <fuzzyray@gentoo.org>2009-05-20 14:27:01 +0000
commit545d7f4a65d03431b901e22891259a773d4c88eb (patch)
tree59d53b490c006a67d10929550fe331b670fe8aa6
parent5c647b701761d538c83356594088c62e0a14964c (diff)
downloadgentoolkit-545d7f4a65d03431b901e22891259a773d4c88eb.tar.gz
Create a VERSION file to replace /etc/gentoolkit-version
svn path=/trunk/gentoolkit/; revision=642
-rw-r--r--MANIFEST.in2
-rw-r--r--Makefile8
-rw-r--r--VERSION1
-rwxr-xr-xsetup.py6
4 files changed, 11 insertions, 6 deletions
diff --git a/MANIFEST.in b/MANIFEST.in
index f68c33d..9bb143e 100644
--- a/MANIFEST.in
+++ b/MANIFEST.in
@@ -1,3 +1,3 @@
-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 *
diff --git a/Makefile b/Makefile
index 462bc56..27dd699 100644
--- a/Makefile
+++ b/Makefile
@@ -4,6 +4,10 @@
#
# $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)
@@ -15,7 +19,7 @@ dist: dist-gentoolkit
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
diff --git a/VERSION b/VERSION
new file mode 100644
index 0000000..3c2df07
--- /dev/null
+++ b/VERSION
@@ -0,0 +1 @@
+9999
diff --git a/setup.py b/setup.py
index 062475f..446b3c7 100755
--- a/setup.py
+++ b/setup.py
@@ -2,11 +2,11 @@
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='',
@@ -14,7 +14,7 @@ setup(
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',