Commit d1eadcbc authored by Sébastien Luttringer's avatar Sébastien Luttringer
Browse files

Use autoconf version as installsystems version

parent fe8ad539
Loading
Loading
Loading
Loading
+22 −4
Original line number Diff line number Diff line
@@ -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
+2 −0
Original line number Diff line number Diff line
@@ -35,4 +35,6 @@ AC_ARG_WITH([zshcompdir],
)
AC_SUBST([zshcompdir], [$with_zshcompdir])

AC_PROG_SED

AC_OUTPUT
+1 −1
Original line number Diff line number Diff line
@@ -21,7 +21,7 @@ InstallSystems module
'''

canonical_name="installsystems"
version = "9"
version = "@VERSION@"
verbosity = 1 # 0: quiet, 1: normal, 2: debug

__all__ = []