Author: tlinnet
Date: Sat Nov 28 23:09:36 2015
New Revision: 28127

URL: http://svn.gna.org/viewcvs/relax?rev=28127&view=rev
Log:
Adding checking statements to intstall script.

Modified:
    trunk/devel_scripts/deploy_google_computing_ubuntu.sh

Modified: trunk/devel_scripts/deploy_google_computing_ubuntu.sh
URL: 
http://svn.gna.org/viewcvs/relax/trunk/devel_scripts/deploy_google_computing_ubuntu.sh?rev=28127&r1=28126&r2=28127&view=diff
==============================================================================
--- trunk/devel_scripts/deploy_google_computing_ubuntu.sh       (original)
+++ trunk/devel_scripts/deploy_google_computing_ubuntu.sh       Sat Nov 28 
23:09:36 2015
@@ -72,20 +72,29 @@
 # Get latest compiled version of relax
 function getlatest {
   cd $HOME
-  curl http://download.gna.org/relax/relax-$VREL.GNU-Linux.x86_64.tar.bz2 -o 
relax-$VREL.GNU-Linux.x86_64.tar.bz2
-  tar xvjf relax-$VREL.GNU-Linux.x86_64.tar.bz2
-  rm relax-$VREL.GNU-Linux.x86_64.tar.bz2
-  ln -s $HOME/relax-$VREL/relax $HOME/bin/relax_$VREL
+  if [ ! -d "$HOME/relax-$VREL" ]; then
+    curl http://download.gna.org/relax/relax-$VREL.GNU-Linux.x86_64.tar.bz2 -o 
relax-$VREL.GNU-Linux.x86_64.tar.bz2
+    tar xvjf relax-$VREL.GNU-Linux.x86_64.tar.bz2
+    rm relax-$VREL.GNU-Linux.x86_64.tar.bz2
+  fi
+  if [ ! \( -e "$HOME/bin/relax_$VREL" \) ]; then
+    ln -s $HOME/relax-$VREL/relax $HOME/bin/relax_$VREL
+  fi
   cd $HOME
 }
 
 # Get the trunk of relax with subversion
 function gettrunk {
   cd $HOME
-  svn co svn://svn.gna.org/svn/relax/trunk relax_trunk
+  if [ ! -d "$HOME/relax_trunk" ]; then
+    svn co svn://svn.gna.org/svn/relax/trunk relax_trunk
+  fi
   cd $HOME/relax_trunk
+  svn up
   scons
-  ln -s $HOME/relax_trunk/relax $HOME/bin/relax_trunk
+  if [ ! \( -e "$HOME/bin/relax_trunk" \) ]; then
+    ln -s $HOME/relax_trunk/relax $HOME/bin/relax_trunk
+  fi
   cd $HOME
 }
 
@@ -102,8 +111,8 @@
   which relax_$VREL
   relax_$VREL -i
 
-  which relax_svn
-  relax_svn -i
+  which relax_trunk
+  relax_trunk -i
 }
 
 # Combine functions


_______________________________________________
relax (http://www.nmr-relax.com)

This is the relax-commits mailing list
relax-commits@gna.org

To unsubscribe from this list, get a password
reminder, or change your subscription options,
visit the list information page at
https://mail.gna.org/listinfo/relax-commits

Reply via email to