Commit d1eadcbc authored by Seblu's avatar Seblu

Use autoconf version as installsystems version

parent fe8ad539
......@@ -25,13 +25,31 @@ EXTRA_DIST = COPYRIGHT LICENSE \
dist_doc_DATA = README COPYRIGHT LICENSE AUTHORS DEPENDENCIES
# main binary
dist_bin_SCRIPTS = bin/is
dist_bin_SCRIPTS = bin/is installsystems/__init__.py
# python library
installsystemsdir=$(pythondir)/installsystems
installsystems_PYTHON = installsystems/*.py
CLEANFILES = $(bin_SCRIPTS)
installsystems_PYTHON = \
installsystems/__init__.py \
installsystems/config.py \
installsystems/database.py \
installsystems/exception.py \
installsystems/image.py \
installsystems/printer.py \
installsystems/repository.py \
installsystems/tarball.py \
installsystems/template.py \
installsystems/tools.py
do_substitution = $(SED) -e 's,[@]pythondir[@],$(pythondir),g' \
-e 's,[@]PACKAGE[@],$(PACKAGE),g' \
-e 's,[@]VERSION[@],$(VERSION),g'
installsystems/__init__.py: installsystems/__init__.py.in
$(do_substitution) < $(srcdir)/$< > $@
CLEANFILES = $(bin_SCRIPTS) installsystems/__init__.py
install-exec-hook:
ln -fs is $(DESTDIR)$(bindir)/installsystems
......
......@@ -35,4 +35,6 @@ AC_ARG_WITH([zshcompdir],
)
AC_SUBST([zshcompdir], [$with_zshcompdir])
AC_PROG_SED
AC_OUTPUT
......@@ -21,7 +21,7 @@ InstallSystems module
'''
canonical_name="installsystems"
version = "9"
version = "@VERSION@"
verbosity = 1 # 0: quiet, 1: normal, 2: debug
__all__ = []
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment