OSDN Git Service

Add man page, modify package scripts for new path bin and commit changes missed on...
[neighbornote/NeighborNote.git] / nevernote.sh
index 34dc2de..8a8573a 100755 (executable)
@@ -7,11 +7,9 @@ eval $1
 # below to your specific installation.    #
 # The ones below are examples only.       #
 ###########################################
-NEVERNOTE=/usr/share/nevernote
-JAMBI_LOCATION=/usr/share/nevernote/lib
-JAMBI_VERSION=4.5.2_01
-JAMBI_PLATFORM=linux32-gcc
-JAVA_LIB_DIR=/usr/share/lib
+
+NEVERNOTE=$(cd `dirname $0` && pwd)
+# NEVERNOTE=/usr/share/nevernote
 
 ########################################
 # Memory settings.  These can be tuned #
@@ -28,7 +26,7 @@ JAVA_LIB_DIR=/usr/share/lib
 # Initial heap size
 NN_XMS=256M
 # Maximum heap size
-NN_XMX=512M
+NN_XMX=1024M
 
 ## The young generation
 # the young generation will occupy 1/2 of total heap
@@ -63,6 +61,14 @@ NN_GC_OPT=-Xincgc
 #NN_NAME="sandbox"  
 
 
+#Do any parameter overrides
+while [ -n "$*" ]
+do
+   eval $1
+   shift
+done
+
+
 ###################################################################
 ###################################################################
 ## You probably don't need to change anything below this line.   ##
@@ -74,17 +80,36 @@ NN_GC_OPT=-Xincgc
 # Setup environment #
 #####################
 NN_CLASSPATH=$NEVERNOTE/nevernote.jar
+
+NN_CLASSPATH=$NN_CLASSPATH:$NEVERNOTE/lib/PDFRenderer.jar
+NN_CLASSPATH=$NN_CLASSPATH:$NEVERNOTE/lib/apache-mime4j-0.6.jar
+NN_CLASSPATH=$NN_CLASSPATH:$NEVERNOTE/lib/commons-codec-1.3.jar
+NN_CLASSPATH=$NN_CLASSPATH:$NEVERNOTE/lib/commons-compress-1.1.jar
+NN_CLASSPATH=$NN_CLASSPATH:$NEVERNOTE/lib/commons-lang-2.4.jar
+NN_CLASSPATH=$NN_CLASSPATH:$NEVERNOTE/lib/commons-logging-1.1.1.jar
 NN_CLASSPATH=$NN_CLASSPATH:$NEVERNOTE/lib/evernote.jar
-NN_CLASSPATH=$NN_CLASSPATH:$NEVERNOTE/lib/h2-1.2.136.jar
+NN_CLASSPATH=$NN_CLASSPATH:$NEVERNOTE/lib/h2-1.2.147.jar
+NN_CLASSPATH=$NN_CLASSPATH:$NEVERNOTE/lib/httpclient-4.0.3.jar
+NN_CLASSPATH=$NN_CLASSPATH:$NEVERNOTE/lib/httpcore-4.0.1.jar
+NN_CLASSPATH=$NN_CLASSPATH:$NEVERNOTE/lib/httpmime-4.0.3.jar
+NN_CLASSPATH=$NN_CLASSPATH:$NEVERNOTE/lib/jaxen-1.1.3.jar
+NN_CLASSPATH=$NN_CLASSPATH:$NEVERNOTE/lib/jazzy.jar
+NN_CLASSPATH=$NN_CLASSPATH:$NEVERNOTE/lib/jtidy-r938.jar
 NN_CLASSPATH=$NN_CLASSPATH:$NEVERNOTE/lib/libthrift.jar
 NN_CLASSPATH=$NN_CLASSPATH:$NEVERNOTE/lib/log4j-1.2.14.jar
-NN_CLASSPATH=$NN_CLASSPATH:$NEVERNOTE/lib/PDFRenderer.jar
-NN_CLASSPATH=$NN_CLASSPATH:$NEVERNOTE/lib/commons-lang-2.4.jar
-NN_CLASSPATH=$NN_CLASSPATH:$NEVERNOTE/lib/jtidy-r938.jar 
-NN_CLASSPATH=$NN_CLASSPATH:$JAMBI_LOCATION/qtjambi-$JAMBI_VERSION.jar
-NN_CLASSPATH=$NN_CLASSPATH:$JAMBI_LOCATION/qtjambi-util-$JAMBI_VERSION.jar
-NN_CLASSPATH=$NN_CLASSPATH:$JAMBI_LOCATION/qtjambi-$JAMBI_PLATFORM-$JAMBI_VERSION.jar
+NN_CLASSPATH=$NN_CLASSPATH:$NEVERNOTE/lib/pdfbox-app-1.3.1.jar
+NN_CLASSPATH=$NN_CLASSPATH:$NEVERNOTE/lib/poi-3.7-20101029.jar
+NN_CLASSPATH=$NN_CLASSPATH:$NEVERNOTE/lib/poi-ooxml-3.7.jar
+NN_CLASSPATH=$NN_CLASSPATH:$NEVERNOTE/lib/poi-ooxml-schemas-3.7-20101029.jar
+NN_CLASSPATH=$NN_CLASSPATH:$NEVERNOTE/lib/poi-scratchpad-3.7-20101029.jar
+NN_CLASSPATH=$NN_CLASSPATH:$NEVERNOTE/lib/tika.jar
+NN_CLASSPATH=$NN_CLASSPATH:$NEVERNOTE/lib/xmlbeans-2.3.0.jar
+NN_CLASSPATH=$NN_CLASSPATH:$NEVERNOTE/lib/xsdlib-20060615.jar
 
+NN_CLASSPATH=$NN_CLASSPATH:$NEVERNOTE/lib/qtjambi-linux32-4.5.2_01.jar
+NN_CLASSPATH=$NN_CLASSPATH:$NEVERNOTE/lib/qtjambi-linux32-gcc-4.5.2_01.jar
+NN_CLASSPATH=$NN_CLASSPATH:$NEVERNOTE/lib/qtjambi-linux64-4.5.2_01.jar
+NN_CLASSPATH=$NN_CLASSPATH:$NEVERNOTE/lib/qtjambi-linux64-gcc-4.5.2_01.jar
 
 ###################
 # Run the program #