ia64/xen-unstable

changeset 19510:accf139b2eb9

tools/misc: Remove some obsolete scripts.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Mon Apr 06 21:12:33 2009 +0100 (2009-04-06)
parents ff9fdd6fce1e
children 19919f01f2c5 71077a0fd289
files tools/misc/Makefile tools/misc/fakei386xen tools/misc/netfix tools/misc/xen-clone.README
line diff
     1.1 --- a/tools/misc/Makefile	Mon Apr 06 20:56:02 2009 +0100
     1.2 +++ b/tools/misc/Makefile	Mon Apr 06 21:12:33 2009 +0100
     1.3 @@ -22,7 +22,7 @@ INSTALL_BIN-y := xencons
     1.4  INSTALL_BIN-$(CONFIG_X86) += xen-detect
     1.5  INSTALL_BIN := $(INSTALL_BIN-y)
     1.6  
     1.7 -INSTALL_SBIN-y := netfix xm xen-bugtool xen-python-path xend xenperf xsview xenpm
     1.8 +INSTALL_SBIN-y := xm xen-bugtool xen-python-path xend xenperf xsview xenpm
     1.9  INSTALL_SBIN := $(INSTALL_SBIN-y)
    1.10  
    1.11  DEFAULT_PYTHON_PATH := $(shell $(XEN_ROOT)/tools/python/get-path)
     2.1 --- a/tools/misc/fakei386xen	Mon Apr 06 20:56:02 2009 +0100
     2.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.3 @@ -1,32 +0,0 @@
     2.4 -#!/bin/bash
     2.5 -
     2.6 -cln () {
     2.7 -while [ $# -gt 0 ]; do
     2.8 -  (
     2.9 -    test -f "$1" || { echo "$1: No such file or directory" 1>&2; exit 1; }
    2.10 -    { cp $1 cln$$ && rm $1 && mv cln$$ $1; } || { rm -f cln$$; exit 1; }
    2.11 -  )
    2.12 -  shift
    2.13 -done
    2.14 -}
    2.15 -
    2.16 -
    2.17 -for i in `find include/asm-xen arch/xen -type l | xargs ls -l | egrep '../(asm-)?i386/' | awk '{print $9}'`
    2.18 -do
    2.19 -  echo $i
    2.20 -  cln $i
    2.21 -done
    2.22 -
    2.23 -mv include/asm-i386 include/asm-Xi386
    2.24 -mv include/asm-xen include/asm-i386
    2.25 -ln -s asm-i386 include/asm-xen
    2.26 -rm include/asm
    2.27 -ln -s asm-i386 include/asm
    2.28 -mv arch/i386 arch/Xi386
    2.29 -mv arch/xen arch/i386
    2.30 -ln -s i386 arch/xen
    2.31 -
    2.32 -mv Makefile XMakefile
    2.33 -#sed -e 's/^EXTRAVERSION =.*/EXTRAVERSION = -xen/' <XMakefile >Makefile
    2.34 -echo ARCH=i386 >Makefile ; cat XMakefile >>Makefile
    2.35 -
     3.1 --- a/tools/misc/netfix	Mon Apr 06 20:56:02 2009 +0100
     3.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.3 @@ -1,69 +0,0 @@
     3.4 -#!/usr/bin/env python
     3.5 -#  -*- mode: python; -*-
     3.6 -#============================================================================
     3.7 -# Copyright (C) 2004 Mike Wray <mike.wray@hp.com>
     3.8 -#============================================================================
     3.9 -# Move the IP address from eth0 onto the Xen bridge (xenbr0).
    3.10 -# Only works if the bridge control utils (brctl) have been installed.
    3.11 -#============================================================================
    3.12 -
    3.13 -from getopt import getopt
    3.14 -
    3.15 -# add fallback path for non-native python path installs if needed
    3.16 -sys.path.append('/usr/lib/python')
    3.17 -sys.path.append('/usr/lib64/python')
    3.18 -from xen.util.Brctl import *
    3.19 -
    3.20 -short_options = 'hvqni:b:c'
    3.21 -long_options  = ['help', 'verbose', 'quiet',
    3.22 -                 'interface=', 'bridge=', 'create']
    3.23 -
    3.24 -defaults['interface'] = 'eth0'
    3.25 -defaults['bridge'] = 'xenbr0'
    3.26 -
    3.27 -def usage():
    3.28 -    print """Usage:
    3.29 -    %s [options]
    3.30 -
    3.31 -    Reconfigure routing so that <bridge> has the IP address from
    3.32 -    <interface>. This lets IP carry on working when <interface>
    3.33 -    is attached to <bridge> for virtual networking.
    3.34 -    Uses brctl to add <interface> to <bridge>,
    3.35 -    so this can be run before any domains have been created.
    3.36 -    """ % sys.argv[0]
    3.37 -    print """
    3.38 -    -i, --interface <interface>    interface, default %(interface)s.
    3.39 -    -b, --bridge <bridge>          bridge, default %(bridge)s.
    3.40 -    -c, --create                   create the bridge.
    3.41 -    -v, --verbose                  Print commands.
    3.42 -    -q, --quiet                    Don't print commands.
    3.43 -    -n, --dry-run                  Don't execute commands.
    3.44 -    -h, --help                     Print this help.
    3.45 -    """ % defaults
    3.46 -    sys.exit(1)
    3.47 -
    3.48 -
    3.49 -def main():
    3.50 -    lopts = set_opts(Opts(defaults))
    3.51 -    lopts.dryrun = 0
    3.52 -    (options, args) = getopt(sys.argv[1:], short_options, long_options)
    3.53 -    if args: usage()
    3.54 -    for k, v in options:
    3.55 -        if k in ['-h', '--help']:
    3.56 -            usage()
    3.57 -        elif k in ['-c', '--create']:
    3.58 -            lopts.create = 1
    3.59 -        elif k in ['-i', '--interface']:
    3.60 -            lopts.interface = v
    3.61 -        elif k in ['-b', '--bridge']:
    3.62 -            lopts.bridge = v
    3.63 -        elif k in ['-q', '--quiet']:
    3.64 -            lopts.verbose = 0
    3.65 -        elif k in ['-v', '--verbose']:
    3.66 -            lopts.verbose = 1
    3.67 -        elif k in ['-n', '--dry-run']:
    3.68 -            lopts.dryrun = 1
    3.69 -    reconfigure(lopts.interface, lopts.bridge)
    3.70 -
    3.71 -if __name__ == '__main__':
    3.72 -    main()
     4.1 --- a/tools/misc/xen-clone.README	Mon Apr 06 20:56:02 2009 +0100
     4.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.3 @@ -1,23 +0,0 @@
     4.4 -
     4.5 -xen-clone
     4.6 -
     4.7 -usage: xen-clone <bk_repository> <dest_dir> <orig_linux_dir>
     4.8 -
     4.9 -This script can be used to 'bk clone' and build a xen and xenolinux image 
    4.10 -from the master BK repository, either from a local copy, or from the
    4.11 -public repository bk://xen.bkbits.net/xeno.bk
    4.12 -
    4.13 -In many circumstances, it can be invoked without any arguments and
    4.14 -just `does the right thing'.
    4.15 -
    4.16 -The default dest_dir is 'xeno-clone', relative to the current directory.
    4.17 -
    4.18 -To build xenolinux, the script needs a pristine copy of the equivalent 
    4.19 -linux tree. The script looks in a couple of places on the local filesystem, 
    4.20 -then tries a download from from ftp://ftp.kernel.org/pub/linux/kernel/v2.4/
    4.21 -
    4.22 -The script also tries a number of optional UCCL site-specific operations
    4.23 -that configure the test machine booting infrastructure to boot the 
    4.24 -resultant image.
    4.25 -
    4.26 -