Include version number of package
authorRichard W.M. Jones <rjones@redhat.com>
Tue, 10 Jun 2008 09:33:02 +0000 (10:33 +0100)
committerRichard W.M. Jones <rjones@redhat.com>
Tue, 10 Jun 2008 09:33:02 +0000 (10:33 +0100)
.hgignore
configure.ac
virt-df/.depend
virt-df/Makefile.in
virt-df/virt_df_version.ml.in [new file with mode: 0644]

index 2d3d217..b83e889 100644 (file)
--- 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
index 2b0f8bf..c54b0be 100644 (file)
@@ -141,5 +141,6 @@ AC_CONFIG_FILES([Makefile
        lib/META
        po/Makefile
        virt-df/Makefile
+       virt-df/virt_df_version.ml
        ])
 AC_OUTPUT
index e16c2b2..2696d66 100644 (file)
@@ -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 
index 42033a4..e2c184e 100644 (file)
@@ -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 (file)
index 0000000..7f22939
--- /dev/null
@@ -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@"