1
0
mirror of https://github.com/OpenNebula/one.git synced 2024-12-23 17:33:56 +03:00

Changed install script to copy files by default.

Now there is also a "-l" flag to create links (for easy upgrading from svn repository)


git-svn-id: http://svn.opennebula.org/trunk@78 3034c82b-c49b-4eb3-8279-a7acafdc01c0
This commit is contained in:
Javier Fontán Muiños 2008-07-24 11:33:54 +00:00
parent 41d907b8d8
commit e4e112cfc1

View File

@ -1,5 +1,12 @@
#!/bin/sh
MAKE_LINKS="no"
if [ "$1" == "-l" ]; then
MAKE_LINKS="yes"
shift
fi
SRC_DIR=$PWD
DST_DIR=$1
@ -7,7 +14,11 @@ echo $SRC_DIR
echo $DST_DIR
inst_ln() {
ln -s $SRC_DIR/$1 $DST_DIR/$2
if [ "$MAKE_LINKS" == "yes" ]; then
ln -s $SRC_DIR/$1 $DST_DIR/$2
else
cp $SRC_DIR/$1 $DST_DIR/$2
fi
}
inst_cp() {