mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-08 21:16:39 +09: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:
1 parent
41d907b8d8
commit
e4e112cfc1
1 file changed
+12
-1
+12
-1
@@ -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() {
|
||||
|
||||
Reference in new issue
Block a user