mirror of
https://github.com/OpenNebula/one.git
synced 2024-12-23 17:33:56 +03:00
9a974dc451
git-svn-id: http://svn.opennebula.org/trunk@27 3034c82b-c49b-4eb3-8279-a7acafdc01c0
64 lines
1.5 KiB
Bash
Executable File
64 lines
1.5 KiB
Bash
Executable File
#!/bin/sh
|
|
|
|
SRC_DIR=$PWD
|
|
DST_DIR=$1
|
|
|
|
echo $SRC_DIR
|
|
echo $DST_DIR
|
|
|
|
inst_ln() {
|
|
ln -s $SRC_DIR/$1 $DST_DIR/$2
|
|
}
|
|
|
|
inst_cp() {
|
|
cp $SRC_DIR/$1 $DST_DIR/$2
|
|
}
|
|
|
|
if [ -z "$SRC_DIR" -o -z "$DST_DIR" ]; then
|
|
echo Must supply a destination directory
|
|
exit -1
|
|
fi
|
|
|
|
DIRS="/bin /etc /etc/mad /etc/default /libexec /lib/ruby /var /share/examples /lib/im_probes"
|
|
|
|
for d in $DIRS; do
|
|
mkdir -p $DST_DIR$d
|
|
done
|
|
|
|
inst_ln src/nebula/oned bin
|
|
inst_ln src/scheduler/mm_sched bin
|
|
inst_ln src/client/ruby/onevm bin
|
|
inst_ln src/client/ruby/onehost bin
|
|
|
|
inst_cp share/etc/oned.conf etc
|
|
inst_ln share/etc/mad/defaultrc etc/mad
|
|
inst_ln share/etc/mad/im_sshrc etc/mad
|
|
inst_ln share/etc/mad/vmm_xenrc etc/mad
|
|
inst_ln share/etc/default/vmm_xen.conf etc/default
|
|
|
|
inst_ln share/scripts/madcommon.sh libexec
|
|
|
|
inst_ln src/vmm_mad/xen/one_vmm_xen.rb bin
|
|
inst_ln src/vmm_mad/xen/one_vmm_xen bin
|
|
|
|
inst_ln src/im_mad/xen/one_im_ssh.rb bin
|
|
inst_ln src/im_mad/xen/one_im_ssh bin
|
|
|
|
inst_cp src/im_mad/xen/one_im_ssh.conf etc/default
|
|
inst_ln src/vmm_mad/xen/one_mad.rb lib/ruby
|
|
inst_ln src/im_mad/xen/one_ssh.rb lib/ruby
|
|
inst_ln src/client/ruby/one.rb lib/ruby
|
|
inst_ln src/client/ruby/client_utilities.rb lib/ruby
|
|
inst_ln src/client/ruby/command_parse.rb lib/ruby
|
|
|
|
inst_ln src/im_mad/xen/architecture.sh lib/im_probes
|
|
inst_ln src/im_mad/xen/cpu.sh lib/im_probes
|
|
inst_ln src/im_mad/xen/name.sh lib/im_probes
|
|
inst_ln src/im_mad/xen/xen.rb lib/im_probes
|
|
|
|
inst_cp share/scripts/one bin
|
|
|
|
inst_cp share/examples/vm.template share/examples
|
|
|
|
|