Blame SOURCES/0006-Rename-source-directory-and-files.patch

056839
From 649fc52c6728bb8b1788a5ae74d4002781a88fce Mon Sep 17 00:00:00 2001
263533
From: "Richard W.M. Jones" <rjones@redhat.com>
263533
Date: Mon, 31 Oct 2016 12:01:40 +0000
056839
Subject: [PATCH 06/23] Rename source directory and files.
263533
263533
This renames the source directory from virt-top to src/ and removes
263533
the unnecessary virt_top_* prefix from many source files.
263533
263533
This is entirely refactoring and makes no functional change.
263533
263533
Also this fixes the MANIFEST file and removes old Transifex
263533
configuration, fixing commit defe5bdd4a32e0206a786d279e0f9cfc238e5e17.
263533
---
263533
 .gitignore                                    | 72 ++++++++-----------
263533
 .tx/config                                    |  8 ---
263533
 ChangeLog                                     | 30 ++++++++
263533
 MANIFEST                                      | 41 +++++++----
263533
 Makefile.in                                   | 15 ++--
263533
 README                                        |  2 +-
263533
 configure.ac                                  | 29 ++++----
263533
 src/.depend                                   | 20 ++++++
263533
 {virt-top => src}/Makefile.in                 | 18 ++---
263533
 {virt-top => src}/README                      | 22 +++---
263533
 virt-top/virt_top_main.ml => src/main.ml      |  4 +-
263533
 .../opt_calendar1.ml                          |  4 +-
263533
 .../opt_calendar2.ml                          |  4 +-
263533
 virt-top/virt_top_csv.ml => src/opt_csv.ml    |  6 +-
263533
 virt-top/virt_top_xml.ml => src/opt_xml.ml    |  4 +-
263533
 virt-top/virt_top.ml => src/top.ml            |  8 +--
263533
 virt-top/virt_top.mli => src/top.mli          |  0
263533
 virt-top/virt_top_utils.ml => src/utils.ml    |  2 +-
263533
 virt-top/virt_top_utils.mli => src/utils.mli  |  0
263533
 .../version.ml.in                             |  0
263533
 {virt-top => src}/virt-top.pod                |  0
263533
 virt-top/.depend                              | 20 ------
263533
 22 files changed, 163 insertions(+), 146 deletions(-)
263533
 delete mode 100644 .tx/config
263533
 create mode 100644 src/.depend
263533
 rename {virt-top => src}/Makefile.in (91%)
263533
 rename {virt-top => src}/README (77%)
263533
 rename virt-top/virt_top_main.ml => src/main.ml (98%)
263533
 rename virt-top/virt_top_calendar1.ml => src/opt_calendar1.ml (97%)
263533
 rename virt-top/virt_top_calendar2.ml => src/opt_calendar2.ml (97%)
263533
 rename virt-top/virt_top_csv.ml => src/opt_csv.ml (94%)
263533
 rename virt-top/virt_top_xml.ml => src/opt_xml.ml (97%)
263533
 rename virt-top/virt_top.ml => src/top.ml (99%)
263533
 rename virt-top/virt_top.mli => src/top.mli (100%)
263533
 rename virt-top/virt_top_utils.ml => src/utils.ml (99%)
263533
 rename virt-top/virt_top_utils.mli => src/utils.mli (100%)
263533
 rename virt-top/virt_top_version.ml.in => src/version.ml.in (100%)
263533
 rename {virt-top => src}/virt-top.pod (100%)
263533
 delete mode 100644 virt-top/.depend
263533
263533
diff --git a/.gitignore b/.gitignore
263533
index d08e9e2..e3f77e7 100644
263533
--- a/.gitignore
263533
+++ b/.gitignore
263533
@@ -1,50 +1,36 @@
263533
-aclocal.m4
263533
-META
263533
-ocaml-libvirt-*.tar.gz
263533
-ocaml-libvirt-*.exe
263533
-html
263533
-configure
263533
-config.log
263533
-config.status
263533
-config.h
263533
-config.cache
263533
-Makefile
263533
-Make.rules
263533
-*/Makefile
263533
-autom4te.cache
263533
-core
263533
-core.*
263533
+*.a
263533
+*.cma
263533
 *.cmi
263533
 *.cmo
263533
 *.cmx
263533
-*.cma
263533
 *.cmxa
263533
-*.o
263533
-*.so
263533
-*.a
263533
-*.opt
263533
 *.dll
263533
 *.exe
263533
-*~
263533
-libvirt/libvirt_version.ml
263533
-examples/list_domains
263533
-examples/node_info
263533
-mlvirsh/mlvirsh
263533
-virt-ctrl/virt-ctrl
263533
-virt-top/virt-top
263533
-virt-df/virt-df
263533
-wininstaller.nsis
263533
+*.o
263533
+*.opt
263533
 *.orig
263533
-mlvirsh/mlvirsh_gettext.ml
263533
-virt-ctrl/virt_ctrl_gettext.ml
263533
-virt-df/virt_df_gettext.ml
263533
-virt-top/virt_top_gettext.ml
263533
-virt-top/virt_top_version.ml
263533
-po/*.mo
263533
-po/*.po.bak
263533
-virt-df/virt_df_lvm2_lexer.ml
263533
-virt-df/virt_df_lvm2_parser.ml
263533
-virt-df/virt_df_lvm2_parser.mli
263533
-virt-top-*.tar.gz
263533
-virt-top/virt-top.1
263533
-virt-top/virt-top.txt
263533
\ No newline at end of file
263533
+*.so
263533
+*~
263533
+
263533
+META
263533
+Makefile
263533
+aclocal.m4
263533
+config.cache
263533
+config.h
263533
+config.log
263533
+config.status
263533
+configure
263533
+core
263533
+core.*
263533
+html
263533
+
263533
+/Make.rules
263533
+/autom4te.cache
263533
+/po/*.mo
263533
+/po/*.po.bak
263533
+/src/opt_gettext.ml
263533
+/src/version.ml
263533
+/src/virt-top
263533
+/src/virt-top.1
263533
+/src/virt-top.txt
263533
+/virt-top-*.tar.gz
263533
diff --git a/.tx/config b/.tx/config
263533
deleted file mode 100644
263533
index 3e17770..0000000
263533
--- a/.tx/config
263533
+++ /dev/null
263533
@@ -1,8 +0,0 @@
263533
-[main]
263533
-host = https://www.transifex.net
263533
-
263533
-[virttop.virttoppot]
263533
-file_filter = po/<lang>.po
263533
-source_file = po/virt-top.pot
263533
-source_lang = en
263533
-
263533
diff --git a/ChangeLog b/ChangeLog
263533
index 8daca45..1b3999a 100644
263533
--- a/ChangeLog
263533
+++ b/ChangeLog
263533
@@ -1,3 +1,33 @@
263533
+2016-10-31  Richard W.M. Jones  <rjones@redhat.com>
263533
+
263533
+	Rename source directory and files.
263533
+	This renames the source directory from virt-top to src/ and removes
263533
+	the unnecessary virt_top_* prefix from many source files.
263533
+
263533
+	This is entirely refactoring and makes no functional change.
263533
+
263533
+	Also this fixes the MANIFEST file and removes old Transifex
263533
+	configuration, fixing commit defe5bdd4a32e0206a786d279e0f9cfc238e5e17.
263533
+
263533
+2016-01-04  Richard W.M. Jones  <rjones@redhat.com>
263533
+
263533
+	build: Add -g flag to ocamlopt.
263533
+	Modern ocamlopt supports the -g flag fine (very old versions did not).
263533
+
263533
+2015-02-21  Richard W.M. Jones  <rjones@redhat.com>
263533
+
263533
+	Update translations from Zanata.
263533
+
263533
+	Move upstream translations from Tranifex to Zanata.
263533
+	This is at the request of the Fedora localization team.
263533
+	For further information see:
263533
+
263533
+	https://www.redhat.com/archives/libguestfs/2015-February/msg00168.html
263533
+
263533
+2014-08-02  Richard W.M. Jones  <rjones@redhat.com>
263533
+
263533
+	Disable warning about immutable strings (for OCaml 4.02).
263533
+
263533
 2012-10-12  Richard W.M. Jones  <rjones@redhat.com>
263533
 
263533
 	Version 1.0.8.
263533
diff --git a/MANIFEST b/MANIFEST
263533
index c5958d7..2cf377f 100644
263533
--- a/MANIFEST
263533
+++ b/MANIFEST
263533
@@ -14,12 +14,17 @@ Make.rules.in
263533
 MANIFEST
263533
 m4/ocaml.m4
263533
 po/as.po
263533
+po/ca.po
263533
 po/de.po
263533
 po/es.po
263533
+po/eu.po
263533
 po/fr.po
263533
 po/gu.po
263533
+po/hu.po
263533
+po/id.po
263533
 po/it.po
263533
 po/ja.po
263533
+po/ka.po
263533
 po/kn.po
263533
 po/LINGUAS
263533
 po/Makefile.in
263533
@@ -27,30 +32,36 @@ po/ml.po
263533
 po/mr.po
263533
 po/nl.po
263533
 po/or.po
263533
+po/pa.po
263533
 po/pl.po
263533
 po/pt_BR.po
263533
 po/pt.po
263533
 po/POTFILES
263533
 po/ru.po
263533
+po/sr.po
263533
+po/sv.po
263533
 po/te.po
263533
+po/tg.po
263533
+po/tr.po
263533
 po/uk.po
263533
 po/virt-top.pot
263533
+po/zanata-pull.sh
263533
+po/zanata.xml
263533
 po/zh_CN.po
263533
 po/zh_TW.po
263533
 README
263533
 TODO
263533
-.tx/config
263533
-virt-top/.depend
263533
-virt-top/Makefile.in
263533
-virt-top/README
263533
-virt-top/virt-top.pod
263533
-virt-top/virt_top.ml
263533
-virt-top/virt_top.mli
263533
-virt-top/virt_top_calendar1.ml
263533
-virt-top/virt_top_calendar2.ml
263533
-virt-top/virt_top_csv.ml
263533
-virt-top/virt_top_main.ml
263533
-virt-top/virt_top_utils.ml
263533
-virt-top/virt_top_utils.mli
263533
-virt-top/virt_top_version.ml.in
263533
-virt-top/virt_top_xml.ml
263533
+src/.depend
263533
+src/Makefile.in
263533
+src/README
263533
+src/main.ml
263533
+src/opt_calendar1.ml
263533
+src/opt_calendar2.ml
263533
+src/opt_csv.ml
263533
+src/opt_xml.ml
263533
+src/top.ml
263533
+src/top.mli
263533
+src/utils.ml
263533
+src/utils.mli
263533
+src/version.ml.in
263533
+src/virt-top.pod
263533
diff --git a/Makefile.in b/Makefile.in
263533
index b310e58..d0aec17 100644
263533
--- a/Makefile.in
263533
+++ b/Makefile.in
263533
@@ -22,25 +22,22 @@ INSTALL		= @INSTALL@
263533
 
263533
 MAKENSIS	= @MAKENSIS@
263533
 
263533
-SUBDIRS		= virt-top
263533
+SUBDIRS		= src
263533
 
263533
 all opt depend install:
263533
-	for d in $(SUBDIRS); do \
263533
-	  $(MAKE) -C $$d $@; \
263533
-	  if [ $$? -ne 0 ]; then exit 1; fi; \
263533
-	done
263533
+	$(MAKE) -C src $@
263533
 
263533
 clean:
263533
 	for d in . $(SUBDIRS); do \
263533
 	  (cd $$d; rm -f *.cmi *.cmo *.cmx *.cma *.cmxa *.o *.a *.so *.opt *~ *.dll *.exe core); \
263533
 	done
263533
-	rm -f virt-top/virt-top
263533
+	rm -f src/virt-top
263533
 
263533
 distclean: clean
263533
 	rm -f config.h config.log config.status configure
263533
 	rm -rf autom4te.cache
263533
 	rm -f Makefile
263533
-	rm -f virt-top/Makefile
263533
+	rm -f src/Makefile
263533
 
263533
 # Distribution.
263533
 
263533
@@ -51,8 +48,8 @@ dist: ChangeLog
263533
 	tar -cf - -T MANIFEST | tar -C $(PACKAGE)-$(VERSION) -xf -
263533
 	$(INSTALL) -m 0755 configure $(PACKAGE)-$(VERSION)/
263533
 	$(INSTALL) -m 0644 aclocal.m4 $(PACKAGE)-$(VERSION)/
263533
-	$(INSTALL) -m 0644 virt-top/virt-top.1 $(PACKAGE)-$(VERSION)/virt-top/
263533
-	$(INSTALL) -m 0644 virt-top/virt-top.txt $(PACKAGE)-$(VERSION)/virt-top/
263533
+	$(INSTALL) -m 0644 src/virt-top.1 $(PACKAGE)-$(VERSION)/src/
263533
+	$(INSTALL) -m 0644 src/virt-top.txt $(PACKAGE)-$(VERSION)/src/
263533
 	tar zcf $(PACKAGE)-$(VERSION).tar.gz $(PACKAGE)-$(VERSION)
263533
 	rm -rf $(PACKAGE)-$(VERSION)
263533
 	ls -l $(PACKAGE)-$(VERSION).tar.gz
263533
diff --git a/README b/README
263533
index 5a8bc87..d97fa62 100644
263533
--- a/README
263533
+++ b/README
263533
@@ -1,7 +1,7 @@
263533
 virt-top
263533
 ----------------------------------------------------------------------
263533
 
263533
-Copyright (C) 2007-2012 Richard W.M. Jones, Red Hat Inc.
263533
+Copyright (C) 2007-2016 Richard W.M. Jones, Red Hat Inc.
263533
 http://et.redhat.com/~rjones/virt-top/
263533
 http://libvirt.org/ocaml/
263533
 http://libvirt.org/
263533
diff --git a/configure.ac b/configure.ac
263533
index 0d41cda..ad65465 100644
263533
--- a/configure.ac
263533
+++ b/configure.ac
263533
@@ -84,26 +84,24 @@ AC_CHECK_PROG(MSGFMT,msgfmt,msgfmt)
263533
 
263533
 dnl Write gettext modules for the programs.
263533
 dnl http://www.le-gall.net/sylvain+violaine/documentation/ocaml-gettext/html/reference-manual/ch03s04.html
263533
-for d in virt-top; do
263533
-    f=`echo $d | tr - _`_gettext.ml
263533
-    AC_MSG_NOTICE([creating $d/$f])
263533
-    rm -f $d/$f
263533
-    echo "(* This file is generated automatically by ./configure. *)" > $d/$f
263533
-    if test "x$OCAML_PKG_gettext" != "xno"; then
263533
-        # Gettext module is available, so use it.
263533
-        cat <<EOT >>$d/$f
263533
+AC_MSG_NOTICE([creating src/opt_gettext.ml])
263533
+rm -f src/opt_gettext.ml
263533
+echo "(* This file is generated automatically by ./configure. *)" > src/opt_gettext.ml
263533
+if test "x$OCAML_PKG_gettext" != "xno"; then
263533
+    # Gettext module is available, so use it.
263533
+    cat <<EOT >>src/opt_gettext.ml
263533
 module Gettext = Gettext.Program (
263533
   struct
263533
-    let textdomain = "$d"
263533
+    let textdomain = "virt-top"
263533
     let codeset = None
263533
     let dir = None
263533
     let dependencies = [[]]
263533
   end
263533
 ) (GettextStub.Native)
263533
 EOT
263533
-    else
263533
-        # No gettext module is available, so fake the translation functions.
263533
-        cat <<EOT >>$d/$f
263533
+else
263533
+    # No gettext module is available, so fake the translation functions.
263533
+    cat <<EOT >>src/opt_gettext.ml
263533
 module Gettext = struct
263533
   external s_ : string -> string = "%identity"
263533
   external f_ : ('a -> 'b, 'c, 'd) format -> ('a -> 'b, 'c, 'd) format
263533
@@ -115,8 +113,7 @@ module Gettext = struct
263533
     = fun s p n -> if n = 1 then s else p
263533
 end
263533
 EOT
263533
-    fi
263533
-done
263533
+fi
263533
 
263533
 dnl Summary.
263533
 echo "------------------------------------------------------------"
263533
@@ -128,7 +125,7 @@ AC_CONFIG_HEADERS([config.h])
263533
 AC_CONFIG_FILES([Makefile
263533
 	Make.rules
263533
 	po/Makefile
263533
-	virt-top/Makefile
263533
-	virt-top/virt_top_version.ml
263533
+	src/Makefile
263533
+	src/version.ml
263533
 	])
263533
 AC_OUTPUT
263533
diff --git a/src/.depend b/src/.depend
263533
new file mode 100644
263533
index 0000000..5325c54
263533
--- /dev/null
263533
+++ b/src/.depend
263533
@@ -0,0 +1,20 @@
263533
+main.cmo: top.cmi opt_gettext.cmo
263533
+main.cmx: top.cmx opt_gettext.cmx
263533
+opt_calendar1.cmo: top.cmi opt_gettext.cmo
263533
+opt_calendar1.cmx: top.cmx opt_gettext.cmx
263533
+opt_calendar2.cmo: top.cmi opt_gettext.cmo
263533
+opt_calendar2.cmx: top.cmx opt_gettext.cmx
263533
+opt_csv.cmo: top.cmi opt_gettext.cmo
263533
+opt_csv.cmx: top.cmx opt_gettext.cmx
263533
+opt_gettext.cmo:
263533
+opt_gettext.cmx:
263533
+opt_xml.cmo: top.cmi opt_gettext.cmo
263533
+opt_xml.cmx: top.cmx opt_gettext.cmx
263533
+top.cmi:
263533
+top.cmo: version.cmo utils.cmi opt_gettext.cmo top.cmi
263533
+top.cmx: version.cmx utils.cmx opt_gettext.cmx top.cmi
263533
+utils.cmi:
263533
+utils.cmo: opt_gettext.cmo utils.cmi
263533
+utils.cmx: opt_gettext.cmx utils.cmi
263533
+version.cmo:
263533
+version.cmx:
263533
diff --git a/virt-top/Makefile.in b/src/Makefile.in
263533
similarity index 91%
263533
rename from virt-top/Makefile.in
263533
rename to src/Makefile.in
263533
index e149b26..d29f2e8 100755
263533
--- a/virt-top/Makefile.in
263533
+++ b/src/Makefile.in
263533
@@ -39,28 +39,28 @@ OCAMLCPACKAGES  += -package gettext-stub
263533
 endif
263533
 
263533
 OBJS		:= \
263533
-		   virt_top_version.cmo \
263533
-		   virt_top_gettext.cmo \
263533
-		   virt_top_utils.cmo \
263533
-		   virt_top.cmo
263533
+		   version.cmo \
263533
+		   opt_gettext.cmo \
263533
+		   utils.cmo \
263533
+		   top.cmo
263533
 ifneq ($(OCAML_PKG_xml_light),no)
263533
-OBJS		+= virt_top_xml.cmo
263533
+OBJS		+= opt_xml.cmo
263533
 OCAMLCPACKAGES	+= -package xml-light
263533
 endif
263533
 ifneq ($(OCAML_PKG_csv),no)
263533
-OBJS		+= virt_top_csv.cmo
263533
+OBJS		+= opt_csv.cmo
263533
 OCAMLCPACKAGES	+= -package csv
263533
 endif
263533
 ifneq ($(OCAML_PKG_calendar),no)
263533
 ifeq ($(is_calendar2),no)
263533
-OBJS		+= virt_top_calendar1.cmo
263533
+OBJS		+= opt_calendar1.cmo
263533
 OCAMLCPACKAGES	+= -package calendar
263533
 else
263533
-OBJS		+= virt_top_calendar2.cmo
263533
+OBJS		+= opt_calendar2.cmo
263533
 OCAMLCPACKAGES	+= -package calendar
263533
 endif
263533
 endif
263533
-OBJS		+= virt_top_main.cmo
263533
+OBJS		+= main.cmo
263533
 
263533
 XOBJS		:= $(OBJS:.cmo=.cmx)
263533
 
263533
diff --git a/virt-top/README b/src/README
263533
similarity index 77%
263533
rename from virt-top/README
263533
rename to src/README
263533
index b594f95..47382a5 100755
263533
--- a/virt-top/README
263533
+++ b/src/README
263533
@@ -1,11 +1,11 @@
263533
 The code is structured into these files:
263533
 
263533
-  virt_top_utils.mli / virt_top_utils.ml
263533
+  utils.mli, utils.ml
263533
 
263533
     String functions and other small utility functions.  This is
263533
     included directly into virt_top.ml.
263533
 
263533
-  virt_top.mli / virt_top.ml
263533
+  top.mli, top.ml
263533
 
263533
     This is the virt-top program.
263533
 
263533
@@ -22,7 +22,11 @@ The code is structured into these files:
263533
     The function 'main_loop' runs the main loop and has sub-functions
263533
     to deal with keypresses, help screens and so on.
263533
 
263533
-  virt_top_xml.ml
263533
+  opt_gettext.ml
263533
+    A generated file which adds gettext support if ocaml-gettext
263533
+    was found at configure time, or else stubs it out.
263533
+
263533
+  opt_xml.ml
263533
 
263533
     Any code which needs the optional xml-light library goes
263533
     in here.  Mainly for parsing domain XML descriptions to get
263533
@@ -31,21 +35,21 @@ The code is structured into these files:
263533
     The reason for having it in a separate file is so that we
263533
     don't depend on xml-light.
263533
 
263533
-  virt_top_csv.ml
263533
+  opt_csv.ml
263533
 
263533
     Any code which needs the optional ocaml-csv library goes
263533
     in here.  This implements the --csv command line option.
263533
 
263533
-  virt_top_calendar.ml
263533
+  opt_calendar1.ml, opt_calendar2.ml
263533
 
263533
     Any code which needs the optional ocaml-calendar library
263533
-    goes in here.  This implements the --end-time command line
263533
-    option.
263533
+    (v1 or v2) goes in here.  This implements the --end-time
263533
+    command line option.
263533
 
263533
-  virt_top_main.ml
263533
+  main.ml
263533
 
263533
     This is just a small bit of code to glue the modules together
263533
-    Virt_top + Virt_top_xml? + Virt_top_csv? + Virt_top_calendar?
263533
+    Top + Opt_xml? + Opt_csv? + Opt_calendar{1,2}?
263533
 
263533
 The man-page is generated from the single file:
263533
 
263533
diff --git a/virt-top/virt_top_main.ml b/src/main.ml
263533
similarity index 98%
263533
rename from virt-top/virt_top_main.ml
263533
rename to src/main.ml
263533
index e8c4425..34d13c8 100644
263533
--- a/virt-top/virt_top_main.ml
263533
+++ b/src/main.ml
263533
@@ -21,8 +21,8 @@
263533
 
263533
 open Curses
263533
 
263533
-open Virt_top_gettext.Gettext
263533
-open Virt_top
263533
+open Opt_gettext.Gettext
263533
+open Top
263533
 
263533
 (* Note: make sure we catch any exceptions and clean up the display.
263533
  *
263533
diff --git a/virt-top/virt_top_calendar1.ml b/src/opt_calendar1.ml
263533
similarity index 97%
263533
rename from virt-top/virt_top_calendar1.ml
263533
rename to src/opt_calendar1.ml
263533
index 534465c..2c459fe 100755
263533
--- a/virt-top/virt_top_calendar1.ml
263533
+++ b/src/opt_calendar1.ml
263533
@@ -22,9 +22,9 @@
263533
 open Printf
263533
 open ExtString
263533
 
263533
-open Virt_top_gettext.Gettext ;;
263533
+open Opt_gettext.Gettext ;;
263533
 
263533
-Virt_top.parse_date_time :=
263533
+Top.parse_date_time :=
263533
 fun time ->
263533
   let cal : Calendar.t =
263533
     if String.starts_with time "+" then ( (* +something *)
263533
diff --git a/virt-top/virt_top_calendar2.ml b/src/opt_calendar2.ml
263533
similarity index 97%
263533
rename from virt-top/virt_top_calendar2.ml
263533
rename to src/opt_calendar2.ml
263533
index cc82eec..fd93704 100755
263533
--- a/virt-top/virt_top_calendar2.ml
263533
+++ b/src/opt_calendar2.ml
263533
@@ -24,9 +24,9 @@ open CalendarLib
263533
 open Printf
263533
 open ExtString
263533
 
263533
-open Virt_top_gettext.Gettext ;;
263533
+open Opt_gettext.Gettext ;;
263533
 
263533
-Virt_top.parse_date_time :=
263533
+Top.parse_date_time :=
263533
 fun time ->
263533
   let cal : Calendar.t =
263533
     if String.starts_with time "+" then ( (* +something *)
263533
diff --git a/virt-top/virt_top_csv.ml b/src/opt_csv.ml
263533
similarity index 94%
263533
rename from virt-top/virt_top_csv.ml
263533
rename to src/opt_csv.ml
263533
index e048856..6c3b2be 100644
263533
--- a/virt-top/virt_top_csv.ml
263533
+++ b/src/opt_csv.ml
263533
@@ -19,16 +19,16 @@
263533
    This file contains all code which requires CSV support.
263533
 *)
263533
 
263533
-open Virt_top_gettext.Gettext
263533
+open Opt_gettext.Gettext
263533
 
263533
 (* Output channel, or None if CSV output not enabled. *)
263533
 let chan = ref None ;;
263533
 
263533
-Virt_top.csv_start :=
263533
+Top.csv_start :=
263533
   fun filename ->
263533
     chan := Some (open_out filename) ;;
263533
 
263533
-Virt_top.csv_write :=
263533
+Top.csv_write :=
263533
   fun row ->
263533
     match !chan with
263533
     | None -> ()			(* CSV output not enabled. *)
263533
diff --git a/virt-top/virt_top_xml.ml b/src/opt_xml.ml
263533
similarity index 97%
263533
rename from virt-top/virt_top_xml.ml
263533
rename to src/opt_xml.ml
263533
index ab291d3..bb83780 100644
263533
--- a/virt-top/virt_top_xml.ml
263533
+++ b/src/opt_xml.ml
263533
@@ -21,13 +21,13 @@
263533
 
263533
 open ExtList
263533
 
263533
-open Virt_top_gettext.Gettext
263533
+open Opt_gettext.Gettext
263533
 
263533
 module C = Libvirt.Connect
263533
 module D = Libvirt.Domain
263533
 module N = Libvirt.Network ;;
263533
 
263533
-Virt_top.parse_device_xml :=
263533
+Top.parse_device_xml :=
263533
 fun id dom ->
263533
   try
263533
     let xml = D.get_xml_desc dom in
263533
diff --git a/virt-top/virt_top.ml b/src/top.ml
263533
similarity index 99%
263533
rename from virt-top/virt_top.ml
263533
rename to src/top.ml
263533
index 0aae24e..38658c6 100644
263533
--- a/virt-top/virt_top.ml
263533
+++ b/src/top.ml
263533
@@ -21,8 +21,8 @@ open Printf
263533
 open ExtList
263533
 open Curses
263533
 
263533
-open Virt_top_gettext.Gettext
263533
-open Virt_top_utils
263533
+open Opt_gettext.Gettext
263533
+open Utils
263533
 
263533
 module C = Libvirt.Connect
263533
 module D = Libvirt.Domain
263533
@@ -159,7 +159,7 @@ let start_up () =
263533
   and set_end_time time = end_time := Some ((!parse_date_time) time)
263533
   and display_version () =
263533
     printf "virt-top %s ocaml-libvirt %s\n"
263533
-      Virt_top_version.version Libvirt_version.version;
263533
+      Version.version Libvirt_version.version;
263533
     exit 0
263533
   in
263533
   let argspec = Arg.align [
263533
@@ -1723,7 +1723,7 @@ and show_help (_, _, _, _, _, _, hostname,
263533
   (* Banner at the top of the screen. *)
263533
   let banner =
263533
     sprintf (f_"virt-top %s ocaml-libvirt %s libvirt %d.%d.%d by Red Hat")
263533
-      Virt_top_version.version
263533
+      Version.version
263533
       Libvirt_version.version
263533
       libvirt_major libvirt_minor libvirt_release in
263533
   let banner = pad cols banner in
263533
diff --git a/virt-top/virt_top.mli b/src/top.mli
263533
similarity index 100%
263533
rename from virt-top/virt_top.mli
263533
rename to src/top.mli
263533
diff --git a/virt-top/virt_top_utils.ml b/src/utils.ml
263533
similarity index 99%
263533
rename from virt-top/virt_top_utils.ml
263533
rename to src/utils.ml
263533
index c5dc97d..3dc637d 100644
263533
--- a/virt-top/virt_top_utils.ml
263533
+++ b/src/utils.ml
263533
@@ -21,7 +21,7 @@
263533
 
263533
 open Printf
263533
 
263533
-open Virt_top_gettext.Gettext
263533
+open Opt_gettext.Gettext
263533
 
263533
 module C = Libvirt.Connect
263533
 module D = Libvirt.Domain
263533
diff --git a/virt-top/virt_top_utils.mli b/src/utils.mli
263533
similarity index 100%
263533
rename from virt-top/virt_top_utils.mli
263533
rename to src/utils.mli
263533
diff --git a/virt-top/virt_top_version.ml.in b/src/version.ml.in
263533
similarity index 100%
263533
rename from virt-top/virt_top_version.ml.in
263533
rename to src/version.ml.in
263533
diff --git a/virt-top/virt-top.pod b/src/virt-top.pod
263533
similarity index 100%
263533
rename from virt-top/virt-top.pod
263533
rename to src/virt-top.pod
263533
diff --git a/virt-top/.depend b/virt-top/.depend
263533
deleted file mode 100644
263533
index 46099b7..0000000
263533
--- a/virt-top/.depend
263533
+++ /dev/null
263533
@@ -1,20 +0,0 @@
263533
-virt_top_calendar1.cmo: virt_top_gettext.cmo virt_top.cmi
263533
-virt_top_calendar1.cmx: virt_top_gettext.cmx virt_top.cmx
263533
-virt_top_calendar2.cmo: virt_top_gettext.cmo virt_top.cmi
263533
-virt_top_calendar2.cmx: virt_top_gettext.cmx virt_top.cmx
263533
-virt_top.cmi:
263533
-virt_top.cmo: virt_top_version.cmo virt_top_utils.cmi virt_top_gettext.cmo virt_top.cmi
263533
-virt_top.cmx: virt_top_version.cmx virt_top_utils.cmx virt_top_gettext.cmx virt_top.cmi
263533
-virt_top_csv.cmo: virt_top_gettext.cmo virt_top.cmi
263533
-virt_top_csv.cmx: virt_top_gettext.cmx virt_top.cmx
263533
-virt_top_gettext.cmo:
263533
-virt_top_gettext.cmx:
263533
-virt_top_main.cmo: virt_top_gettext.cmo virt_top.cmi
263533
-virt_top_main.cmx: virt_top_gettext.cmx virt_top.cmx
263533
-virt_top_utils.cmi:
263533
-virt_top_utils.cmo: virt_top_gettext.cmo virt_top_utils.cmi
263533
-virt_top_utils.cmx: virt_top_gettext.cmx virt_top_utils.cmi
263533
-virt_top_version.cmo:
263533
-virt_top_version.cmx:
263533
-virt_top_xml.cmo: virt_top_gettext.cmo virt_top.cmi
263533
-virt_top_xml.cmx: virt_top_gettext.cmx virt_top.cmx
263533
-- 
056839
2.31.1
263533