[pkg-java] r3058 - in trunk: . simplyhtml simplyhtml/debian simplyhtml/debian/patches

Eric Lavarde ewl-guest at alioth.debian.org
Mon Mar 12 09:49:48 CET 2007


Author: ewl-guest
Date: 2007-03-12 08:49:48 +0000 (Mon, 12 Mar 2007)
New Revision: 3058

Added:
   trunk/simplyhtml/
   trunk/simplyhtml/debian/
   trunk/simplyhtml/debian/README.Debian
   trunk/simplyhtml/debian/changelog
   trunk/simplyhtml/debian/compat
   trunk/simplyhtml/debian/control
   trunk/simplyhtml/debian/copyright
   trunk/simplyhtml/debian/dirs
   trunk/simplyhtml/debian/docs
   trunk/simplyhtml/debian/export_shtml.sh
   trunk/simplyhtml/debian/install
   trunk/simplyhtml/debian/links
   trunk/simplyhtml/debian/patches/
   trunk/simplyhtml/debian/patches/10_build_xml.patch
   trunk/simplyhtml/debian/patches/20_build_xml_javadoc.patch
   trunk/simplyhtml/debian/patches/30_manifest.patch
   trunk/simplyhtml/debian/rules
   trunk/simplyhtml/debian/simplyhtml-doc.doc-base
   trunk/simplyhtml/debian/simplyhtml-doc.docs
   trunk/simplyhtml/debian/simplyhtml.manpages
   trunk/simplyhtml/debian/simplyhtml.sgml
   trunk/simplyhtml/debian/simplyhtml.sh
Log:
Initial upload.


Added: trunk/simplyhtml/debian/README.Debian
===================================================================
--- trunk/simplyhtml/debian/README.Debian	2007-03-11 09:01:19 UTC (rev 3057)
+++ trunk/simplyhtml/debian/README.Debian	2007-03-12 08:49:48 UTC (rev 3058)
@@ -0,0 +1,9 @@
+simplyhtml for Debian
+---------------------
+
+SimplyHTML will only compile and work if you download JavaHelp from
+http://java.sun.com/products/javahelp/ or http://javahelp.dev.java.net/
+and copy jhall.jar to /usr/local/share/java.
+This will stay like this until someone has packaged JavaHelp.
+
+-- Eric Lavarde <deb at zorglub.s.bawue.de>, Wed, 15 Nov 2006 20:30:14 +0100

Added: trunk/simplyhtml/debian/changelog
===================================================================
--- trunk/simplyhtml/debian/changelog	2007-03-11 09:01:19 UTC (rev 3057)
+++ trunk/simplyhtml/debian/changelog	2007-03-12 08:49:48 UTC (rev 3058)
@@ -0,0 +1,5 @@
+simplyhtml (0.12.2~beta1-1) experimental; urgency=low
+
+  * Initial Release.
+
+ -- Eric Lavarde <deb at zorglub.s.bawue.de>  Sun, 12 Nov 2006 14:05:55 +0100

Added: trunk/simplyhtml/debian/compat
===================================================================
--- trunk/simplyhtml/debian/compat	2007-03-11 09:01:19 UTC (rev 3057)
+++ trunk/simplyhtml/debian/compat	2007-03-12 08:49:48 UTC (rev 3058)
@@ -0,0 +1 @@
+4

Added: trunk/simplyhtml/debian/control
===================================================================
--- trunk/simplyhtml/debian/control	2007-03-11 09:01:19 UTC (rev 3057)
+++ trunk/simplyhtml/debian/control	2007-03-12 08:49:48 UTC (rev 3058)
@@ -0,0 +1,30 @@
+Source: simplyhtml
+Priority: optional
+Maintainer: Debian Java Maintainers <pkg-java-maintainers at lists.alioth.debian.org>
+Uploaders: Eric Lavarde <deb at zorglub.s.bawue.de>
+Build-Depends: debhelper (>= 4.1.0), cdbs (>= 0.4.8)
+Build-Depends-Indep: sun-j2sdk1.4 | blackdown-j2sdk1.4 | j2sdk1.4 | sun-java5-jdk, libgnu-regexp-java, ant, gjdoc
+Standards-Version: 3.7.2.2
+Section: contrib/web
+
+Package: simplyhtml
+Architecture: all
+Depends: sun-java5-jre | sun-j2re1.4 | blackdown-j2re1.4 | j2re1.4, libgnu-regexp-java
+Suggests: java-virtual-machine, simplyhtml-doc
+Description: Java word processor based on HTML and CSS
+ SimplyHTML is an application built for working with text documents.
+ Text documents are stored in HTML and CSS format, but the application is
+ meant as a word processor rather than a code editor or web site builder.
+ .
+ SimplyHTML can be used standalone as well like a library/plugin.
+ .
+ Homepages are http://www.lightdev.com/page/3.htm and now
+ http://sourceforge.net/projects/simplyhtml
+
+Package: simplyhtml-doc
+Architecture: all
+Suggests: simplythml
+Recommends: mozilla | www-browser
+Section: contrib/doc
+Description: API documentation for simplyhtml
+ The javadoc for SimplyHTML, a Java word processor based on HTML and CSS.

Added: trunk/simplyhtml/debian/copyright
===================================================================
--- trunk/simplyhtml/debian/copyright	2007-03-11 09:01:19 UTC (rev 3057)
+++ trunk/simplyhtml/debian/copyright	2007-03-12 08:49:48 UTC (rev 3058)
@@ -0,0 +1,58 @@
+This package was debianized by Eric Lavarde <deb at zorglub.s.bawue.de> on Sun, 12 Nov 2006 14:28:56 +0100.
+
+It was downloaded from http://sourceforge.net/projects/simplyhtml (CVS)
+
+Copyright Holder: Ulrich Hilger <info at lightdev.com> and Dimitri Polivaev <dpolivaev at users.sourceforge.net>
+
+License:
+
+    This package is free software; you can redistribute it and/or
+    modify it under the terms of the GNU General Public
+    License as published by the Free Software Foundation; either
+    version 2 of the License, or (at your option) any later version.
+
+    This package is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+    Lesser General Public License for more details.
+
+    You should have received a copy of the GNU General Public
+    License along with this package; if not, write to the Free Software
+    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
+
+On Debian systems, the complete text of the GNU General
+Public License can be found in `/usr/share/common-licenses/GPL'.
+
+The files ElementTreePanel.java and ExampleFileFilter.java are
+Copyright (c) 2004 Sun Microsystems, Inc., with the following license:
+
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ * 
+ * -Redistribution of source code must retain the above copyright notice, this
+ *  list of conditions and the following disclaimer.
+ * 
+ * -Redistribution in binary form must reproduce the above copyright notice, 
+ *  this list of conditions and the following disclaimer in the documentation
+ *  and/or other materials provided with the distribution.
+ * 
+ * Neither the name of Sun Microsystems, Inc. or the names of contributors may 
+ * be used to endorse or promote products derived from this software without 
+ * specific prior written permission.
+ * 
+ * This software is provided "AS IS," without a warranty of any kind. ALL 
+ * EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, INCLUDING
+ * ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE
+ * OR NON-INFRINGEMENT, ARE HEREBY EXCLUDED. SUN MIDROSYSTEMS, INC. ("SUN")
+ * AND ITS LICENSORS SHALL NOT BE LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE
+ * AS A RESULT OF USING, MODIFYING OR DISTRIBUTING THIS SOFTWARE OR ITS
+ * DERIVATIVES. IN NO EVENT WILL SUN OR ITS LICENSORS BE LIABLE FOR ANY LOST 
+ * REVENUE, PROFIT OR DATA, OR FOR DIRECT, INDIRECT, SPECIAL, CONSEQUENTIAL, 
+ * INCIDENTAL OR PUNITIVE DAMAGES, HOWEVER CAUSED AND REGARDLESS OF THE THEORY 
+ * OF LIABILITY, ARISING OUT OF THE USE OF OR INABILITY TO USE THIS SOFTWARE, 
+ * EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
+ * 
+ * You acknowledge that this software is not designed, licensed or intended
+ * for use in the design, construction, operation or maintenance of any
+ * nuclear facility.
+

Added: trunk/simplyhtml/debian/dirs
===================================================================
--- trunk/simplyhtml/debian/dirs	2007-03-11 09:01:19 UTC (rev 3057)
+++ trunk/simplyhtml/debian/dirs	2007-03-12 08:49:48 UTC (rev 3058)
@@ -0,0 +1 @@
+usr/share/java

Added: trunk/simplyhtml/debian/docs
===================================================================
--- trunk/simplyhtml/debian/docs	2007-03-11 09:01:19 UTC (rev 3057)
+++ trunk/simplyhtml/debian/docs	2007-03-12 08:49:48 UTC (rev 3058)
@@ -0,0 +1 @@
+readme.txt

Added: trunk/simplyhtml/debian/export_shtml.sh
===================================================================
--- trunk/simplyhtml/debian/export_shtml.sh	2007-03-11 09:01:19 UTC (rev 3057)
+++ trunk/simplyhtml/debian/export_shtml.sh	2007-03-12 08:49:48 UTC (rev 3058)
@@ -0,0 +1,43 @@
+#!/bin/bash -x
+# This small script can be used to export the SimplyHTML source tree from CVS
+if [ $# -lt 1 ]
+then
+	echo "Usage: $0 <SimplyHTML version> [<RCS tag> [keep]]" >&2
+	echo "Example: $0 0.7.9.rc4 fm_0_8_0_rc4" >&2
+	echo "Example: $0 0.8.0+01  FM-0-8-0 keep" >&2
+	echo "Use the 'keep' parameter to keep a complete copy." >&2
+	exit 1
+fi
+
+simplyhtml_dir="simplyhtml-$1"
+simplyhtml_tar="simplyhtml_$1"
+if [ ! -d shtml ] && [ ! -d "${simplyhtml_dir}" ]
+then # we don't want to overwrite anything...
+	cvs -z3 -d:pserver:anonymous at simplyhtml.cvs.sourceforge.net:/cvsroot/simplyhtml export -r "$2" shtml || exit 1
+	mv shtml "${simplyhtml_dir}" || exit 1
+else
+	echo "Directory 'shtml' or '${simplyhtml_dir}' exists." >&2
+	exit 1
+fi
+
+### SAVE FIRST THE WHOLE SIMPLYHTML TREE ###
+if [ -n "$3" ]
+then
+	mv ${simplyhtml_dir} ${simplyhtml_dir}.complete
+	tar cvzf ${simplyhtml_tar}.complete.tar.gz \
+		${simplyhtml_dir}.complete
+	mv ${simplyhtml_dir}.complete ${simplyhtml_dir}
+fi
+
+### THEN CLEANUP THE SOURCE TREE ###
+find ${simplyhtml_dir} -name \*.jar -o -name \*.zip | xargs rm -vf
+rm -vfr ${simplyhtml_dir}/simplyhtml/windows-launcher
+
+### CREATE ORIG.TAR.GZ ###
+if [ -f "${simplyhtml_tar}.orig.tar.gz" ]
+then
+	mv -f "${simplyhtml_tar}.orig.tar.gz" "${simplyhtml_tar}.orig.tar.gz.BAK" \
+		|| exit 1
+fi
+tar cvzf "${simplyhtml_tar}.orig.tar.gz" "${simplyhtml_dir}" || exit 1
+rm -fr "${simplyhtml_dir}"


Property changes on: trunk/simplyhtml/debian/export_shtml.sh
___________________________________________________________________
Name: svn:executable
   + 

Added: trunk/simplyhtml/debian/install
===================================================================
--- trunk/simplyhtml/debian/install	2007-03-11 09:01:19 UTC (rev 3057)
+++ trunk/simplyhtml/debian/install	2007-03-12 08:49:48 UTC (rev 3058)
@@ -0,0 +1,3 @@
+bin/dist/lib/SimplyHTML-0.12.2.jar usr/share/java
+bin/dist/lib/SimplyHTMLHelp-0.12.2.jar usr/share/java
+simplyhtml usr/bin

Added: trunk/simplyhtml/debian/links
===================================================================
--- trunk/simplyhtml/debian/links	2007-03-11 09:01:19 UTC (rev 3057)
+++ trunk/simplyhtml/debian/links	2007-03-12 08:49:48 UTC (rev 3058)
@@ -0,0 +1,2 @@
+usr/share/java/SimplyHTML-0.12.2.jar usr/share/java/SimplyHTML.jar
+usr/share/java/SimplyHTMLHelp-0.12.2.jar usr/share/java/SimplyHTMLHelp.jar

Added: trunk/simplyhtml/debian/patches/10_build_xml.patch
===================================================================
--- trunk/simplyhtml/debian/patches/10_build_xml.patch	2007-03-11 09:01:19 UTC (rev 3057)
+++ trunk/simplyhtml/debian/patches/10_build_xml.patch	2007-03-12 08:49:48 UTC (rev 3058)
@@ -0,0 +1,33 @@
+diff -Nur simplyhtml-0.12.2~beta1/src/build.xml simplyhtml-0.12.2~beta1.new/src/build.xml
+--- simplyhtml-0.12.2~beta1/src/build.xml	2006-11-15 13:20:12.000000000 +0100
++++ simplyhtml-0.12.2~beta1.new/src/build.xml	2006-11-15 13:20:45.000000000 +0100
+@@ -5,14 +5,14 @@
+ 	<property name="build" value="../bin/classes" />
+ 	<property name="dist" value="../bin/dist" />
+ 	<property name="dist.lib" value="${dist}/lib" />
+-	<property name="SimplyHTML.jar" value="${dist.lib}/SimplyHTML.jar"/>
+-	<property name="SimplyHTMLHelp.jar" value="${dist.lib}/SimplyHTMLHelp.jar"/>
++	<property name="SimplyHTML.jar" value="${dist.lib}/SimplyHTML-0.12.2.jar"/>
++	<property name="SimplyHTMLHelp.jar" value="${dist.lib}/SimplyHTMLHelp-0.12.2.jar"/>
+ 	<property name="post" value="../post" />
+ 	<property name="debug" value="on" />
+ 	<property name="java_source_version" value="1.4" />
+ 	<property name="java_target_version" value="1.4" />
+ 	<property name="build.compiler" value="modern" />
+-	<property name="classpath" value="..\lib\jhall.jar:..\lib\gnu-regexp-1.1.4.jar"/>
++	<property name="classpath" value="/usr/local/share/java/jhall.jar:/usr/share/java/gnu-regexp.jar"/>
+ 
+ 	<target name="build">
+ 		<mkdir dir="${build}"/>
+@@ -50,9 +50,9 @@
+ 				<include name="com/lightdev/app/shtm/help/**"/>
+ 			</fileset>
+ 		</jar>
+-		<copy todir="${dist}/lib">
++		<!-- copy todir="${dist}/lib">
+ 			<fileset dir="${lib}" includes="*.jar"/>
+-		</copy>
++		</copy -->
+ 	</target>
+ 	<target name="clean">
+ 		<!-- Eclipse target: -->

Added: trunk/simplyhtml/debian/patches/20_build_xml_javadoc.patch
===================================================================
--- trunk/simplyhtml/debian/patches/20_build_xml_javadoc.patch	2007-03-11 09:01:19 UTC (rev 3057)
+++ trunk/simplyhtml/debian/patches/20_build_xml_javadoc.patch	2007-03-12 08:49:48 UTC (rev 3058)
@@ -0,0 +1,36 @@
+diff -Nur simplyhtml-0.12.2~beta1/src/build.xml simplyhtml-0.12.2~beta1.new/src/build.xml
+--- simplyhtml-0.12.2~beta1/src/build.xml	2006-11-15 13:13:58.000000000 +0100
++++ simplyhtml-0.12.2~beta1.new/src/build.xml	2006-11-15 13:14:10.000000000 +0100
+@@ -4,6 +4,7 @@
+ 	<property name="src_base_for_post" value="../" />
+ 	<property name="build" value="../bin/classes" />
+ 	<property name="dist" value="../bin/dist" />
++	<property name="dist.api" value="${dist}/api" />
+ 	<property name="dist.lib" value="${dist}/lib" />
+ 	<property name="SimplyHTML.jar" value="${dist.lib}/SimplyHTML-0.12.2.jar"/>
+ 	<property name="SimplyHTMLHelp.jar" value="${dist.lib}/SimplyHTMLHelp.jar"/>
+@@ -30,7 +31,7 @@
+ 		</javac>
+ 	</target>
+ 
+-	<target name="dist" depends="jar">
++	<target name="dist" depends="jar,doc">
+ 
+ 	</target>
+ 	<target name="jar" depends="build">
+@@ -62,6 +63,15 @@
+ 			<fileset defaultexcludes="no" dir="${src}" includes="**/*~"/>
+ 		</delete>
+ 	</target>
++	<target name="doc">
++		<mkdir dir="${dist.api}" />
++		<javadoc
++			sourcepath="${src}"
++			destdir="${dist.api}"
++			packagenames="com.lightdev.*,de.calcom.*"
++			classpath="${classpath}"
++		/>
++	</target>
+ 
+ </project>
+ 

Added: trunk/simplyhtml/debian/patches/30_manifest.patch
===================================================================
--- trunk/simplyhtml/debian/patches/30_manifest.patch	2007-03-11 09:01:19 UTC (rev 3057)
+++ trunk/simplyhtml/debian/patches/30_manifest.patch	2007-03-12 08:49:48 UTC (rev 3058)
@@ -0,0 +1,9 @@
+diff -Nur simplyhtml-0.12.2~beta1/src/MANIFEST.MF simplyhtml-0.12.2~beta1.new/src/MANIFEST.MF
+--- simplyhtml-0.12.2~beta1/src/MANIFEST.MF	2006-08-11 22:28:27.000000000 +0200
++++ simplyhtml-0.12.2~beta1.new/src/MANIFEST.MF	2006-11-15 21:25:10.000000000 +0100
+@@ -1,5 +1,4 @@
+ Manifest-Version: 1.0
+ Main-Class: com.lightdev.app.shtm.App
+-Class-Path:  SimplyHTML.jar jhall.jar SimplyHTMLHelp.jar gnu-regexp-1.1.4.jar
+ Created-By: Dimitri Polivaev
+ 

Added: trunk/simplyhtml/debian/rules
===================================================================
--- trunk/simplyhtml/debian/rules	2007-03-11 09:01:19 UTC (rev 3057)
+++ trunk/simplyhtml/debian/rules	2007-03-12 08:49:48 UTC (rev 3058)
@@ -0,0 +1,24 @@
+#!/usr/bin/make -f
+# debian/rules for Commons Fileupload (uses CDBS)
+
+include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/class/ant.mk
+include /usr/share/cdbs/1/rules/simple-patchsys.mk
+
+JAVA_HOME_DIRS       := /usr/lib/j2sdk1.4-sun /usr/lib/j2sdk1.4-blackdown /usr/lib/jvm/java-1.5.0-sun
+ANT_HOME             := /usr/share/ant
+# DEB_JARS             := $(ANT_HOME)/lib/ant-launcher.jar gnu-classpath-tools-gjdoc com-sun-javadoc com-sun-tools-doclets-Taglet
+DEB_ANT_BUILD_TARGET := dist
+DEB_BUILDDIR         := src
+
+LIBRARY=SimplyHTML
+VERSION=0.12.2
+
+build:
+	/usr/bin/docbook-to-man debian/simplyhtml.sgml > simplyhtml.1
+	cp debian/simplyhtml.sh simplyhtml
+
+clean:: 
+	-rm -f simplyhtml.1
+	-rm -f simplyhtml
+	-rm -fr bin


Property changes on: trunk/simplyhtml/debian/rules
___________________________________________________________________
Name: svn:executable
   + 

Added: trunk/simplyhtml/debian/simplyhtml-doc.doc-base
===================================================================
--- trunk/simplyhtml/debian/simplyhtml-doc.doc-base	2007-03-11 09:01:19 UTC (rev 3057)
+++ trunk/simplyhtml/debian/simplyhtml-doc.doc-base	2007-03-12 08:49:48 UTC (rev 3058)
@@ -0,0 +1,10 @@
+Document: simplyhtml-doc
+Title: Programmer API for SimplyHTML
+Author: Ulrich Hilger <info at lightdev.com> and Dimitri Polivaev <dpolivaev at users.sourceforge.net>
+Abstract: The programmer API of SimplyHTML, a Java
+ word processor based on HTML and CSS.
+Section: Programming/Java
+
+Format: HTML
+Index: /usr/share/doc/simplyhtml-doc/api/index.html
+Files: /usr/share/doc/simplyhtml-doc/api/*

Added: trunk/simplyhtml/debian/simplyhtml-doc.docs
===================================================================
--- trunk/simplyhtml/debian/simplyhtml-doc.docs	2007-03-11 09:01:19 UTC (rev 3057)
+++ trunk/simplyhtml/debian/simplyhtml-doc.docs	2007-03-12 08:49:48 UTC (rev 3058)
@@ -0,0 +1,2 @@
+readme.txt
+bin/dist/api/

Added: trunk/simplyhtml/debian/simplyhtml.manpages
===================================================================
--- trunk/simplyhtml/debian/simplyhtml.manpages	2007-03-11 09:01:19 UTC (rev 3057)
+++ trunk/simplyhtml/debian/simplyhtml.manpages	2007-03-12 08:49:48 UTC (rev 3058)
@@ -0,0 +1 @@
+simplyhtml.1

Added: trunk/simplyhtml/debian/simplyhtml.sgml
===================================================================
--- trunk/simplyhtml/debian/simplyhtml.sgml	2007-03-11 09:01:19 UTC (rev 3057)
+++ trunk/simplyhtml/debian/simplyhtml.sgml	2007-03-12 08:49:48 UTC (rev 3058)
@@ -0,0 +1,231 @@
+<!doctype refentry PUBLIC "-//OASIS//DTD DocBook V4.1//EN" [
+
+<!-- Process this file with docbook-to-man to generate an nroff manual
+     page: `docbook-to-man manpage.sgml > manpage.1'.  You may view
+     the manual page with: `docbook-to-man manpage.sgml | nroff -man |
+     less'.  A typical entry in a Makefile or Makefile.am is:
+
+manpage.1: manpage.sgml
+	docbook-to-man $< > $@
+
+    
+	The docbook-to-man binary is found in the docbook-to-man package.
+	Please remember that if you create the nroff version in one of the
+	debian/rules file targets (such as build), you will need to include
+	docbook-to-man in your Build-Depends control field.
+
+  -->
+
+  <!-- Fill in your name for FIRSTNAME and SURNAME. -->
+  <!ENTITY dhfirstname "<firstname>Eric</firstname>">
+  <!ENTITY dhsurname   "<surname>Lavarde</surname>">
+  <!-- Please adjust the date whenever revising the manpage. -->
+  <!ENTITY dhdate      "<date>2006-11-17</date>">
+  <!-- SECTION should be 1-8, maybe w/ subsection other parameters are
+       allowed: see man(7), man(1). -->
+  <!ENTITY dhsection   "<manvolnum>1</manvolnum>">
+  <!ENTITY dhemail     "<email>deb at zorglub.s.bawue.de</email>">
+  <!ENTITY dhusername  "Eric Lavarde">
+  <!ENTITY dhucpackage "<refentrytitle>SIMPLYHTML</refentrytitle>">
+  <!ENTITY dhpackage   "simplyhtml">
+
+  <!ENTITY debian      "<productname>Debian</productname>">
+  <!ENTITY gnu         "<acronym>GNU</acronym>">
+  <!ENTITY gpl         "&gnu; <acronym>GPL</acronym>">
+]>
+
+<refentry>
+  <refentryinfo>
+    <address>
+      &dhemail;
+    </address>
+    <author>
+      &dhfirstname;
+      &dhsurname;
+    </author>
+    <copyright>
+      <year>2006</year>
+      <holder>&dhusername;</holder>
+    </copyright>
+    &dhdate;
+  </refentryinfo>
+  <refmeta>
+    &dhucpackage;
+
+    &dhsection;
+  </refmeta>
+  <refnamediv>
+    <refname>&dhpackage;</refname>
+
+    <refpurpose>A Java editor based on HTML and CSS.</refpurpose>
+  </refnamediv>
+  <refsynopsisdiv>
+    <cmdsynopsis>
+      <command>&dhpackage;</command>
+
+      <arg>no_options</arg>
+
+    </cmdsynopsis>
+  </refsynopsisdiv>
+  <refsect1>
+    <title>DESCRIPTION</title>
+
+    <para>This manual page documents briefly the
+      <command>&dhpackage;</command> command.</para>
+
+    <para>This manual page was written for the &debian; distribution
+      because the original program does not have a manual page.
+      Instead, it has online documentation (see Help menu in
+      SimplyHTML).</para>
+
+    <refsect2>
+      <title>Project Description</title>
+
+      <para>With project SimplyHTML an application is built for working with text documents. Text documents are stored in HTML and CSS format, but the application is meant as a word processor rather than a code editor or web site builder.</para>
+
+    </refsect2>
+    <refsect2>
+      <title>Open to the maximum</title>
+
+      <para>SimplyHTML is built with the aim to document as much of its functionality and usage as possible. The application is written in Java and distributed with full source codes.</para>
+
+      <para>By using Java, HTML, CSS and PDF all parts of the project are 100% platform independent and can be used on almost any machine.</para>
+
+    </refsect2>
+    <refsect2>
+      <title>Extensive documentation</title>
+
+      <para>Source codes are commented in Javadoc format and additional inline comments. The sources are created with good legibility and structure in mind.</para>
+
+      <para>In addition, an extensive tutorial is delivered covering both usage of the application and its internals. The tutorial is available in JavaHelp format and can be used as online help out of SimplyHTML. Or it can be read with a plain web browser. A PDF version of the tutorial is avalable too.</para>
+
+    </refsect2>
+    <refsect2>
+      <title>Why another HTML editor?</title>
+
+      <para>SimplyHTML is not an HTML editor in first place. It is a text processing application being based on HTML and CSS files.</para>
+
+      <para>Although it has a simple HTML editor built in as well, the application focuses on text processing rather than web page creation.</para>
+
+      <para>SimplyHTML tries to distinguish from comparable applications by combining simplicity, ease of use and transparency for both users and developers.</para>
+
+    </refsect2>
+  </refsect1>
+  <refsect1>
+    <title>OPTIONS</title>
+
+    <para>This program does not have any option. Just start it!</para>
+
+  </refsect1>
+  <refsect1>
+    <title>ENVIRONMENT VARIABLES</title>
+    <variablelist>
+      <varlistentry>
+        <term><option>DEBUG</option>
+        </term>
+        <listitem>
+          <para>If  this environment variable is set, SimplyHTML gives more
+	  information on how it finds its different elements, as well as some
+	      other information.</para>
+        </listitem>
+      </varlistentry>
+      <varlistentry>
+        <term><option>JAVACMD</option>
+        </term>
+        <listitem>
+          <para>Default value for the java virtual machine (the java command).</para>
+        </listitem>
+      </varlistentry>
+      <varlistentry>
+        <term><option>JAVA_BINDIR</option>
+        </term>
+        <listitem>
+          <para>If $JAVACMD is not set, the java virtual machine is searched
+              under $JAVA_BINDIR/java.</para>
+        </listitem>
+      </varlistentry>
+      <varlistentry>
+        <term><option>JAVA_HOME</option>
+        </term>
+        <listitem>
+          <para>If $JAVACMD and $JAVA_BINDIR are not set, the java virtual
+              machine is searched under $JAVA_HOME/bin/java.</para>
+        </listitem>
+      </varlistentry>
+      <varlistentry>
+        <term><option>PATH</option>
+        </term>
+        <listitem>
+          <para>If all $JAVA... environment variables fail, the java virtual
+              machine command (java) is searched in the $PATH (with which).</para>
+        </listitem>
+      </varlistentry>
+      <varlistentry>
+        <term><option>CLASSPATH</option>
+	  <option>ADD_JARS</option>
+        </term>
+        <listitem>
+          <para>The $CLASSPATH variable also lets one specify additional jars,
+              which is good, if you want to add a new Look&amp;Feel jar (the motif
+              one is so ugly...). Alternatively, the content of $ADD_JARS will
+              be prepended to $CLASSPATH.</para>
+        </listitem>
+      </varlistentry>
+    </variablelist>
+  </refsect1>
+  <refsect1>
+    <title>FILES</title>
+    <variablelist>
+      <varlistentry>
+        <term><option>/usr/bin/java</option>
+        </term>
+        <listitem>
+           <para>If all searches through environment variables fail, the
+	   java virtual machine is expected to be /usr/bin/java; if not,
+	   simplyhtml exits with an error.
+	      </para>
+        </listitem>
+      </varlistentry>
+    </variablelist>
+  </refsect1>
+  <refsect1>
+    <title>SEE ALSO</title>
+    <para>The online documentation under http://simplyhtml.sf.net/,
+    especially the Linux related one under the Wiki page link
+    http://simplyhtml.sourceforge.net/wiki/index.php/SimplyHTML_on_Linux.</para>
+  </refsect1>
+  <refsect1>
+    <title>AUTHOR</title>
+
+    <para>This manual page was written by &dhusername; &dhemail; for
+      the &debian; system (but may be used by others).  Permission is
+      granted to copy, distribute and/or modify this document under
+      the terms of the &gnu; General Public License, Version 2 any 
+	  later version published by the Free Software Foundation.
+    </para>
+	<para>
+	  On Debian systems, the complete text of the GNU General Public
+	  License can be found in /usr/share/common-licenses/GPL.
+	</para>
+
+  </refsect1>
+</refentry>
+
+<!-- Keep this comment at the end of the file
+Local variables:
+mode: sgml
+sgml-omittag:t
+sgml-shorttag:t
+sgml-minimize-attributes:nil
+sgml-always-quote-attributes:t
+sgml-indent-step:2
+sgml-indent-data:t
+sgml-parent-document:nil
+sgml-default-dtd-file:nil
+sgml-exposed-tags:nil
+sgml-local-catalogs:nil
+sgml-local-ecat-files:nil
+End:
+-->
+
+

Added: trunk/simplyhtml/debian/simplyhtml.sh
===================================================================
--- trunk/simplyhtml/debian/simplyhtml.sh	2007-03-11 09:01:19 UTC (rev 3057)
+++ trunk/simplyhtml/debian/simplyhtml.sh	2007-03-12 08:49:48 UTC (rev 3058)
@@ -0,0 +1,123 @@
+#!/bin/sh
+
+_debug() {
+	if [ -n "${DEBUG}" ]
+	then
+		echo "DEBUG:   $1" >&2 
+		shift
+		for text in "$@"
+		do
+			echo "         ${text}" >&2
+		done
+	fi
+}
+
+_error() {
+	echo "ERROR:   $1" >&2
+	shift
+	for text in "$@"
+	do
+		echo "         ${text}" >&2
+	done
+}
+
+findjava() {
+	# We try hard to find the proper 'java' command
+	if [ -n "${JAVACMD}" ] && [ -x "${JAVACMD}" ]
+	then
+		_debug "Using \$JAVACMD to find java virtual machine."
+	elif [ -n "${JAVA_BINDIR}" ] && [ -x "${JAVA_BINDIR}/java" ]
+	then
+		JAVACMD="${JAVA_BINDIR}/java"
+		_debug "Using \$JAVA_BINDIR to find java virtual machine."
+	elif [ -n "${JAVA_HOME}" ] && [ -x "${JAVA_HOME}/bin/java" ]
+	then
+		JAVACMD="${JAVA_HOME}/bin/java"
+		_debug "Using \$JAVA_HOME to find java virtual machine."
+	else
+		JAVACMD=$(which java)
+		if [ -n "${JAVACMD}" ] && [ -x "${JAVACMD}" ]
+		then
+			_debug "Using \$PATH to find java virtual machine."
+		elif [ -x /usr/bin/java ]
+		then
+			_debug "Using /usr/bin/java to find java virtual machine."
+			JAVACMD=/usr/bin/java
+		fi
+	fi
+
+	# if we were successful, we return 0 else we complain and return 1
+	if [ -n "${JAVACMD}" ] && [ -x "${JAVACMD}" ]
+	then
+		_debug "Using '$JAVACMD' as java virtual machine..."
+		if [ -n "${DEBUG}" ]
+		then
+			"$JAVACMD" -version >&2
+		fi
+		if (! "${JAVACMD}" -version 2>&1 | grep -qe \
+			'Java(TM) 2 Runtime Environment, Standard Edition')
+		then
+			_error "Your Java virtual machine is neither Sun nor Blackdown," \
+			       "=======================================" \
+			       "FREEMIND WILL MOST PROBABLY *NOT* WORK," \
+			       "=======================================" \
+			       "define JAVACMD, JAVA_BINDIR, JAVA_HOME or PATH in order" \
+			       "to point to such a VM. See the manpage of freemind(1) for details."
+			return 0
+		fi
+		return 0
+	else
+		_error "Couldn't find a java virtual machine," \
+		       "define JAVACMD, JAVA_BINDIR, JAVA_HOME or PATH." \
+		       "See the manpage of freemind(1) for details."
+		return 1
+	fi
+}
+
+_source() {
+	if [ -f "$1" ]
+	then
+		_debug "Sourcing '$1'."
+		. "$1"
+	fi
+}
+
+output_info() {
+	if [ -z "${DEBUG}" ]
+	then
+		return 0
+	fi
+	_debug "Freemind parameters are '${@}'."
+	_debug "$(uname -a)"
+	if [ -x $(which dpkg) ]
+	then
+		_debug "The following DEB packages are installed:"
+		COLUMNS=132 dpkg -l \*freemind\* \*j\* | grep -v '<none>' >&2
+	elif [ -x $(which rpm) ]
+	then
+		_debug "The following RPM packages are installed:"
+		rpm -qa | grep -i -e freemind -e j >&2
+	else
+		_debug "Neither dpkg nor rpm is installed."
+	fi
+}
+
+findjava
+if [ $? -ne 0 ]
+then
+	exit 1
+fi
+
+output_info
+
+# The CLASSPATH also lets one specify additional jars, which is good, if
+# you want to add a new Look&Feel jar (the motif one is so ugly...).
+#
+CLASSPATH="${ADD_JARS}:${CLASSPATH}:\
+/usr/share/java/gnu-regexp.jar:\
+/usr/local/share/java/jhall.jar:\
+/usr/share/java/SimplyHTMLHelp.jar:\
+/usr/share/java/SimplyHTML.jar:"
+
+_debug "Calling: '${JAVACMD} -cp ${CLASSPATH} com.lightdev.app.shtm.App $@'."
+"${JAVACMD}" -cp "${CLASSPATH}" com.lightdev.app.shtm.App "$@"


Property changes on: trunk/simplyhtml/debian/simplyhtml.sh
___________________________________________________________________
Name: svn:executable
   + 




More information about the pkg-java-commits mailing list