Revision 762 org.gvsig.scripting/trunk/org.gvsig.scripting/org.gvsig.scripting.app/org.gvsig.scripting.app.mainplugin/src/main/resources-plugin/autorun.sh

View differences:

autorun.sh
38 38

  
39 39
xmkdir -p "$GVSIG_HOME_FOLDER/plugins/$PLUGIN_NAME/scripts"
40 40
cd "$GVSIG_HOME_FOLDER/plugins/$PLUGIN_NAME/scripts"
41
sc_autoruns=$(find . -name autorun.sh)
42
cd "$GVSIG_INSTALL_FOLDER"
43
for sc_autorun in $sc_autoruns
44
do
45
  sc_autorun="$GVSIG_HOME_FOLDER/plugins/$PLUGIN_NAME/scripts/$sc_autorun"
46
  if [ -r "$sc_autorun" ] ; then
47
    logger_info "Running scripting autorun from $sc_autorun"
48
    . "$sc_autorun"
49
    cd "$GVSIG_INSTALL_FOLDER"
50
  fi
51
done
41

  
42
#
43
# El find casca en win10 64 bits. Parece que hay algun problema con los
44
# pipes y el find y el ls.
45
if [ "${OS}" != "win" ] ; then
46
  sc_autoruns=$(find . -name autorun.sh)
47
  cd "$GVSIG_INSTALL_FOLDER"
48
  for sc_autorun in $sc_autoruns
49
  do
50
    sc_autorun="$GVSIG_HOME_FOLDER/plugins/$PLUGIN_NAME/scripts/$sc_autorun"
51
    if [ -r "$sc_autorun" ] ; then
52
      logger_info "Running scripting autorun from $sc_autorun"
53
      . "$sc_autorun"
54
      cd "$GVSIG_INSTALL_FOLDER"
55
    fi
56
  done
57
fi

Also available in: Unified diff