Skip to content

Commit

Permalink
Add file /etc/iptv-analyzer/version
Browse files Browse the repository at this point in the history
This file provide an easy accessable version information
for the IPTV-Analyzer package.  The plan is to use this
for detecting the current running version, when upgrading.

Signed-off-by: Jesper Dangaard Brouer <hawk@comx.dk>
  • Loading branch information
Jesper Dangaard Brouer committed May 20, 2011
1 parent d6cff9b commit 3eea576
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 0 deletions.
3 changes: 3 additions & 0 deletions collector/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Makefile.old
blib/
pm_to_blib
2 changes: 2 additions & 0 deletions collector/MANIFEST
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
bin/iptv-collector
etc/collector.conf.sample
etc/log4perl.conf.sample
etc/version
etc/version.in
input/proc_rule_test001.input
input/README
lib/IPTV/Analyzer/Log4perlTrapper.pm
Expand Down
5 changes: 5 additions & 0 deletions collector/Makefile.PL
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,16 @@ install::
$(NOECHO) test -d $(INST_ETC) || $(MKPATH) $(INST_ETC)
$(CP) etc/log4perl.conf.sample $(INST_ETC)/
$(CP) etc/collector.conf.sample $(INST_ETC)/
$(CP) etc/version $(INST_ETC)/
# Trick to regenerate Version.pm if configure got updated
lib/IPTV/Analyzer/Version.pm: lib/IPTV/Analyzer/Version.pm.in ../config.status
cd .. && ./config.status collector/$@
# Trick to regenerate etc/version if configure got updated
etc/version: etv/version.in ../config.status
cd .. && ./config.status collector/$@
# Also check if config.status need to be updated
../config.status: ../configure
cd .. && ./config.status --recheck
Expand Down
1 change: 1 addition & 0 deletions collector/etc/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
version
9 changes: 9 additions & 0 deletions collector/etc/version.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#
# This file is autogenerated by configure
# @configure_input@
#
# This file provide an easy accessable version information
# for the IPTV-Analyzer package. The plan is to use this
# for detecting the current running version, when upgrading.
#
version=@PACKAGE_VERSION@
1 change: 1 addition & 0 deletions collector/lib/IPTV/Analyzer/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Version.pm
1 change: 1 addition & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,7 @@ AC_CONFIG_FILES([
Makefile
iptables-module/Makefile
collector/lib/IPTV/Analyzer/Version.pm
collector/etc/version
])

#
Expand Down

0 comments on commit 3eea576

Please sign in to comment.