From ee589021ded551aecb33f7f9b4c058be8de5d238 Mon Sep 17 00:00:00 2001 From: alvaro <alvaro@graves.cl> Date: Sun, 21 Apr 2013 16:32:17 -0700 Subject: [PATCH] adding option to automatize linking of existing components during installation --- install.sh | 11 +++++++++-- utils/install | 4 ++++ 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index 7ed43878..18948c5b 100755 --- a/install.sh +++ b/install.sh @@ -32,6 +32,7 @@ _basens= _sparqlendpoint= _chown= _chmod= +_component= options=$@ @@ -179,8 +180,14 @@ cat $root_htaccess >> $parent_htaccess echo "RewriteRule ^(.+)\$ $home/index.php?q=\$1 [L]" >> $parent_htaccess echo "</IfModule>" >> $parent_htaccess mkdir -p cache -cp -r doc/examples/originalComponents components -mkdir -p components/uris + +if [ ! -z "$_components" ]; then + cp -r doc/examples/originalComponents components + mkdir -p components/uris +else + ln -s "$_components" +done + bold=`tput bold` normal=`tput sgr0` wwwUser=`ps aux|egrep "apache|httpd|www" |egrep -v "grep|root"|awk '{print $1}'|uniq|tail -1` diff --git a/utils/install b/utils/install index 1928a7b3..882f683b 100644 --- a/utils/install +++ b/utils/install @@ -24,6 +24,7 @@ _basens= _sparqlendpoint= _chown= _chmod= +_components= options=$@ @@ -55,6 +56,9 @@ for argument in $options chmod=*) val=${argument#*=}; opt=${argument%=$val}; _chmod="chmod=${val}" ;; + components=*) val=${argument#*=}; + opt=${argument%=$val}; + _components="components=${val}" ;; esac done -- GitLab