v2v: Remove virt-v2v.

It has moved to a new repository:
https://github.com/libguestfs/virt-v2v
This commit is contained in:
Richard W.M. Jones
2019-11-12 11:40:02 +00:00
parent ededdce3c1
commit 85c99edec1
819 changed files with 18 additions and 33105 deletions

View File

@@ -20,15 +20,13 @@ include $(top_srcdir)/subdir-rules.mk
scripts = \
guestfish \
guestmount \
libguestfs-test-tool \
virt-alignment-scan \
virt-rescue \
virt-v2v \
virt-v2v-copy-to-local
virt-rescue
# Some of the scripts are simply symbolic links.
symlinks = \
guestunmount \
libguestfs-test-tool \
virt-builder \
virt-cat \
virt-copy-in \
@@ -63,9 +61,9 @@ CLEANFILES += \
# Any tool that has --short-options and --long-options only is handled
# by this common script.
libguestfs-test-tool virt-win-reg:
virt-win-reg:
rm -f $@
$(LN_S) virt-v2v-copy-to-local $@
$(LN_S) libguestfs-test-tool $@
# Any tool that has --short-options and --long-options and a few
# common options like -d is handled by this common script. However

View File

@@ -1,4 +1,4 @@
# virt-v2v-copy-to-local bash completion script -*- shell-script -*-
# libguestfs-test-tool bash completion script -*- shell-script -*-
# Copyright (C) 2014-2019 Red Hat Inc.
#
# This program is free software; you can redistribute it and/or modify
@@ -40,12 +40,6 @@ _guestfs_options_only ()
esac
}
_virt_v2v_copy_to_local ()
{
_guestfs_options_only "virt-v2v-copy-to-local"
} &&
complete -o default -F _virt_v2v_copy_to_local virt-v2v-copy-to-local
_virt_win_reg ()
{
_guestfs_options_only "virt-win-reg"

View File

@@ -1,59 +0,0 @@
# virt-v2v bash completion script -*- shell-script -*-
# Copyright (C) 2014 Red Hat Inc.
#
# 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
_virt_v2v ()
{
local cur prev words cword split
local shortopts longopts items
_init_completion -s || return
case "$prev" in
-i)
items="$(virt-v2v --machine-readable | awk -F':' '/input:/ {print $2;}')"
COMPREPLY=( $( compgen -W "$items" -- "$cur") )
return ;;
-o)
items="$(virt-v2v --machine-readable | awk -F':' '/output:/ {print $2;}')"
COMPREPLY=( $( compgen -W "$items" -- "$cur") )
return ;;
-oa)
COMPREPLY=( $( compgen -W "sparse preallocated" -- "$cur") )
return ;;
--vmtype)
COMPREPLY=( $( compgen -W "server desktop" -- "$cur") )
return ;;
esac
case "$cur" in
--*)
# --options
longopts="$(virt-v2v --long-options)"
COMPREPLY=( $(compgen -W "$longopts" -- "$cur") )
return ;;
-*)
# -o and --options
shortopts="$(virt-v2v --short-options)"
longopts="$(virt-v2v --long-options)"
COMPREPLY=( $(compgen -W "$shortopts $longopts" -- "$cur") )
return ;;
*)
COMPREPLY=( $(compgen "$cur") )
return ;;
esac
} &&
complete -o default -F _virt_v2v virt-v2v