From c9e2cdf177f7c7710274022409d67a51e6e20871 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Thu, 1 Jan 1970 00:00:00 +0000 Subject: [PATCH] Include version number of package --- .hgignore | 1 + configure.ac | 1 + virt-df/.depend | 8 ++++---- virt-df/Makefile.in | 2 +- virt-df/virt_df_version.ml.in | 22 ++++++++++++++++++++++ 5 files changed, 29 insertions(+), 5 deletions(-) create mode 100644 virt-df/virt_df_version.ml.in diff --git a/.hgignore b/.hgignore index 2d3d217..b83e889 100644 --- a/.hgignore +++ b/.hgignore @@ -31,6 +31,7 @@ wininstaller.nsis *.orig diskzip/diskzip_gettext.ml virt-df/virt_df_gettext.ml +virt-df/virt_df_version.ml po/*.mo po/*.po.bak lib/diskimage_lvm2_lexer.ml diff --git a/configure.ac b/configure.ac index 2b0f8bf..c54b0be 100644 --- a/configure.ac +++ b/configure.ac @@ -141,5 +141,6 @@ AC_CONFIG_FILES([Makefile lib/META po/Makefile virt-df/Makefile + virt-df/virt_df_version.ml ]) AC_OUTPUT diff --git a/virt-df/.depend b/virt-df/.depend index e16c2b2..2696d66 100644 --- a/virt-df/.depend +++ b/virt-df/.depend @@ -1,8 +1,8 @@ virt_df_csv.cmo: virt_df.cmi virt_df_csv.cmi virt_df_csv.cmx: virt_df.cmx virt_df_csv.cmi -virt_df_main.cmo: virt_df_gettext.cmo virt_df.cmi ../lib/int63.cmi \ - ../lib/diskimage.cmi -virt_df_main.cmx: virt_df_gettext.cmx virt_df.cmx ../lib/int63.cmx \ - ../lib/diskimage.cmx +virt_df_main.cmo: virt_df_version.cmo virt_df_gettext.cmo virt_df.cmi \ + ../lib/int63.cmi ../lib/diskimage.cmi +virt_df_main.cmx: virt_df_version.cmx virt_df_gettext.cmx virt_df.cmx \ + ../lib/int63.cmx ../lib/diskimage.cmx virt_df.cmo: virt_df_gettext.cmo virt_df.cmi virt_df.cmx: virt_df_gettext.cmx virt_df.cmi diff --git a/virt-df/Makefile.in b/virt-df/Makefile.in index 42033a4..e2c184e 100644 --- a/virt-df/Makefile.in +++ b/virt-df/Makefile.in @@ -43,7 +43,7 @@ OCAMLDOCFILES := $(wildcard *.mli) $(wildcard *.ml) # Build up the list of object files. # Library objects. -OBJS := virt_df_gettext.cmo virt_df.cmo +OBJS := virt_df_gettext.cmo virt_df_version.cmo virt_df.cmo # Plug-in objects. ifneq ($(pkg_csv),no) diff --git a/virt-df/virt_df_version.ml.in b/virt-df/virt_df_version.ml.in new file mode 100644 index 0000000..7f22939 --- /dev/null +++ b/virt-df/virt_df_version.ml.in @@ -0,0 +1,22 @@ +(* 'df' command for virtual domains. + @configure_input@ + + (C) Copyright 2008 Richard W.M. Jones, Red Hat Inc. + http://libvirt.org/ + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +*) + +let version = "@PACKAGE_VERSION@" -- 1.8.3.1