From: idfx Date: Sun, 16 Sep 2001 14:28:41 +0000 (+0000) Subject: build.sh-dist instead of build.sh X-Git-Tag: prexmlproducerconfig~483 X-Git-Url: http://erislabs.org.uk/gitweb/?a=commitdiff_plain;h=57f0a98600101c3eb8652aaa7e1643fc7e17297b;p=mir.git build.sh-dist instead of build.sh --- diff --git a/build.sh b/build.sh deleted file mode 100755 index bf65dc05..00000000 --- a/build.sh +++ /dev/null @@ -1,30 +0,0 @@ -#!/bin/sh -# build.sh -- the build-script for Mir - -# Identify the custom class path components we need -JAVA_HOME=/usr/local/jdk1.2.2 - -# Add all JAR files to CLASSPATH -LOCALCLASSPATH=`echo /usr/share/java/*.jar | tr ' ' ':'` - -LIB_HOME=lib -TOMCAT_HOME=/usr/share/tomcat - -CP=$LIB_HOME/servlet.jar -CP=$LIB_HOME/ant.jar:$LIB_HOME/xerces.jar -CP=$CP:$LOCALCLASSPATH -CP=$CP:$LIB_HOME/servlet-2.2.jar -CP=$CP:$LIB_HOME/gnu-regexp-1.0.8.jar -CP=$CP:$LIB_HOME/freemarker.jar:$LIB_HOME/freemarker-utility.jar -CP=$CP:$LIB_HOME/mm.mysql -CP=$CP:$LIB_HOME/dbconbroker.jar -CP=$CP:$LIB_HOME/cos.jar -CP=$CP:$LIB_HOME/saxon.jar -CP=$CP:$LIB_HOME/jai_codec.jar -CP=$CP:$LIB_HOME/jai_core.jar -CP=$CP:$JAVA_HOME/lib/tools.jar -CP=$CP:$JAVA_HOME/lib/rt.jar - -# Execute ANT to perform the requested build target -$JAVA_HOME/bin/java -classpath $CP:$CLASSPATH org.apache.tools.ant.Main \ - -Dtomcat.home=$TOMCAT_HOME "$@" diff --git a/build.sh-dist b/build.sh-dist new file mode 100755 index 00000000..d6f9fb84 --- /dev/null +++ b/build.sh-dist @@ -0,0 +1,30 @@ +#!/bin/sh +# build.sh -- the build-script for Mir + +# Identify the custom class path components we need +JAVA_HOME=/usr/lib/j2sdk1.3 + +# Add all JAR files to CLASSPATH +LOCALCLASSPATH=`echo /usr/share/java/*.jar | tr ' ' ':'` + +LIB_HOME=lib +TOMCAT_HOME=/usr/share/tomcat + +CP=$LIB_HOME/servlet.jar +CP=$LIB_HOME/ant.jar:$LIB_HOME/xerces.jar +CP=$CP:$LOCALCLASSPATH +CP=$CP:$TOMCAT_HOME/lib/tomcat.jar +CP=$CP:$LIB_HOME/gnu-regexp-1.0.8.jar +CP=$CP:$LIB_HOME/freemarker.jar:$LIB_HOME/freemarker-utility.jar +CP=$CP:$LIB_HOME/mm.mysql +CP=$CP:$LIB_HOME/dbconbroker.jar +CP=$CP:$LIB_HOME/cos.jar +CP=$CP:$LIB_HOME/saxon.jar +CP=$CP:$LIB_HOME/jai_codec.jar +CP=$CP:$LIB_HOME/jai_core.jar +CP=$CP:$JAVA_HOME/lib/tools.jar +CP=$CP:$JAVA_HOME/lib/rt.jar + +# Execute ANT to perform the requested build target +$JAVA_HOME/bin/java -classpath $CP:$CLASSPATH org.apache.tools.ant.Main \ + -Dtomcat.home=$TOMCAT_HOME "$@" diff --git a/doc/INSTALL.mir b/doc/INSTALL.mir index fd6a7b77..9906139f 100755 --- a/doc/INSTALL.mir +++ b/doc/INSTALL.mir @@ -29,30 +29,28 @@ CVS CHECKOUT: now customize config.properties for your needs. -3. configure the build.sh file with java_home +3. configure the build.sh file with java_home + cp build.sh-dist build.sh + chmod 755 build.sh -4. Link in the webapps directory of tomcat to the install directory (the directory is called Mir). +4. copy the mir/template-dist-directory to mir/template -5. copy the mir/template-dist-directory to mir/template - +5. compile + sh build.sh -6. compile - sh build.sh +6. Link in the webapps directory of tomcat to the install directory (the directory is called Mir). 7. create a new database - the database name should be the same as in config.properties as user postgres: - createdb dbname 8. create base table - psql -Upostgres dbname < dbscripts/create_pg.sql cat dbscript/help*.sql | psql -Upostgres dbname @@ -72,4 +70,4 @@ and the openposting-servlet via http://host/OpenMir -standard login is redaktion/indymedia +standard login is redaktion/indymedia \ No newline at end of file