Guest User

Untitled

a guest
Jun 18th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.95 KB | None | 0 0
  1. diff --git a/bin/exports.sh b/bin/exports.sh
  2. index d0ced6f..f23c43d 100644
  3. --- a/bin/exports.sh
  4. +++ b/bin/exports.sh
  5. @@ -37,13 +37,13 @@ if [ `uname` == "FreeBSD" ]; then
  6. export PATH="$JAVA_HOME/bin:$SCALA_HOME/bin:/usr/local/mysql/bin:$PATH"
  7. export MYSQL_CONNECTOR_JAR="/usr/local/share/java/classes/mysql-connector-java.jar"
  8. else
  9. - [ -e "/usr/lib/jvm/java-6-openjdk" ] && export JAVA_HOME="/usr/lib/jvm/java-6-openjdk"
  10. + [ -e "/usr/lib/jvm/java-1.6.0-openjdk" ] && export JAVA_HOME="/usr/lib/jvm/java-1.6.0-openjdk"
  11. [ -e "/usr/lib/jvm/java-6-sun" ] && export JAVA_HOME="/usr/lib/jvm/java-6-sun"
  12. export SCALA_HOME="/usr/share/java"
  13. - export SCALA_LIBRARY_JAR="/usr/share/java/scala-library.jar"
  14. + export SCALA_LIBRARY_JAR="/usr/share/java/scala27/scala-library.jar"
  15. export MYSQL_CONNECTOR_JAR="/usr/share/java/mysql-connector-java.jar"
  16. export JAVA="$JAVA_HOME/bin/java"
  17. - export SCALA="/usr/bin/scala"
  18. + export SCALA="/usr/bin/scala27"
  19. export PATH="$JAVA_HOME/bin:$PATH"
  20. fi
  21.  
  22. diff --git a/etherpad/bin/run-local.sh b/etherpad/bin/run-local.sh
  23. index be33fa5..8228d52 100755
  24. --- a/etherpad/bin/run-local.sh
  25. +++ b/etherpad/bin/run-local.sh
  26. @@ -16,6 +16,8 @@
  27.  
  28. mkdir -p data/appjet
  29.  
  30. +. /home/computercolin/src/pad/bin/exports.sh
  31. +
  32. # JVM heap memory limit (actually reserved during startup)
  33. MXRAM="1G"
  34. # maximum thread count for etherpad (should be roughly memory in MB / 4)
  35. diff --git a/infrastructure/ace/bin/make b/infrastructure/ace/bin/make
  36. index 98a48f4..0066d54 100755
  37. --- a/infrastructure/ace/bin/make
  38. +++ b/infrastructure/ace/bin/make
  39. @@ -1,7 +1,7 @@
  40. #!/bin/sh
  41. mkdir -p ../../etherpad/src/etherpad/collab/ace
  42. mkdir -p ../../etherpad/src/static/js
  43. -exec scala -classpath lib/yuicompressor-2.4-appjet.jar:lib/rhino-js-1.7r1.jar $0 $@
  44. +exec ${SCALA} -classpath lib/yuicompressor-2.4-appjet.jar:lib/rhino-js-1.7r1.jar $0 $@
  45. !#
  46.  
  47. import java.io._;
  48. diff --git a/infrastructure/bin/comp.sh b/infrastructure/bin/comp.sh
  49. index 5f65c2f..6f3ca69 100755
  50. --- a/infrastructure/bin/comp.sh
  51. +++ b/infrastructure/bin/comp.sh
  52. @@ -27,7 +27,7 @@ if [ "$1" == "clearcache" ]; then
  53. fi
  54.  
  55. if [ -z "$CC" ]; then
  56. - CC=fsc
  57. + CC=fsc27
  58. fi
  59. echo compiling with \'$CC\'...
  60.  
  61. @@ -183,7 +183,7 @@ echo "copying files..."
  62. cp net.appjet.ajstdlib/streaming-client.js build/net/appjet/ajstdlib/
  63. if [ $OBFUSC ] ; then
  64. echo obfuscating...
  65. - scala -classpath $CP:. net.appjet.bodylock.compressor \
  66. + ${SCALA} -classpath $CP:. net.appjet.bodylock.compressor \
  67. build/net/appjet/ajstdlib/streaming-client.js
  68. fi
  69.  
  70. @@ -191,7 +191,7 @@ cp net.appjet.ajstdlib/streaming-iframe.html build/net/appjet/ajstdlib/
  71. mkdir -p build/net/appjet/ajstdlib/modules
  72.  
  73. echo "building javascript classfiles..."
  74. -scala -classpath $CP net.appjet.bodylock.Compiler \
  75. +${SCALA} -classpath $CP net.appjet.bodylock.Compiler \
  76. -destination=build/net/appjet/ajstdlib/ \
  77. -cutPrefix=framework-src \
  78. `find framework-src -name '*.js'`
Add Comment
Please, Sign In to add comment