Revision 20935

View differences:

branches/v2_0_0_prep/install/pluginInstallationTemplate/HOWTO-Extension.txt
1
{{{
2
#!rst
3
.. contents::
4

  
5
Cómo se genera un instalable para un Plugin de gvSIG
6
=======================================================
7

  
8
Número de  build
9
----------------
10

  
11
Un plugin debe añadir un panel (al que se accede en gvSIG por "ayuda->acerda de") con su correspondiente build.number para su seguimiento.
12
Para poder añadir dicho panel se seguirán los siguientes pasos:
13

  
14
+ En la carpeta config del plugin, se tiene que crear un fichero **"about.htm"**. Se puede ver un ejemplo de este fichero en el plugin **"extExpressionField"**. Lo más importante en este fichero es que debe tener la siguiente linea, que indica el build number: ::
15
   <p><br><br>
16
   <b> Build Number: #build.number#</b>
17
   </p>
18
 
19
+ Dentro de nuestro plugin, hay que crear dentro del build.xml un target **<buildNumber>**, que se encargará de aumentarlo: ::
20

  
21
	<target name="buildNumber">  
22
		<propertyfile	file="build.number"
23
				comment="Build Number for ANT. Do not edit!">
24
			<entry key="build.number" default="0" type="int" operation="+" />
25
		</propertyfile>
26
		<property file="build.number" />
27
	</target>
28

  
29
  **Nota**: Existe un *task* para el ant que hace una función parecida, el problema es que funciona de forma distinta
30
  a la que nosotros trabajamos (*Deja el siguiente número de build en el fichero, en vez de el actual*).
31

  
32
+ El fichero **"about.htm"** se tiene que copiar en una carpeta temporal y hacer el remplazo del #build.number# (el about.htm que se copiará al gvsig será el que está en dicha carpeta temporal). Aquí un ejemplo (extraído del *extExpressionField/build.xml*): ::
33
    
34
    <target name="copy-data-files">
35
		<copy file="config/config.xml" todir="${without_src}"/>
36
		<copy file="build.number" todir="${without_src}"/>
37
		<copy file="config/about.htm" todir="${without_src}"/>   <!-- AQUÍ SE HACE LA COPIA DEL about.htm A LA CARPETA TEMPORAL -->
38
		<loadproperties srcFile="build.number"/>
39
		<replace casesensitive="true"
40
  		file="${without_src}/about.htm"
41
  	  	token="#build.number#"
42
  		value="${build.number}"/>				<!-- AQUÍ SE HACE EL REMPLAZO DE #build.number# --> 
43
		<copy todir="${without_src}">
44
			<fileset dir="config" includes="text*.properties"/>
45
		</copy>
46
		<copy todir="${without_src}/images">
47
			<fileset dir="images/" includes="*"/>
48
		</copy>
49
    </target>
50

  
51
+ De nuevo en el build.xml de nuestro plugin, crear un target **<distribution>**, que llama al target *<buildNumber>* y luego al target por defecto. Este target por lo tanto hará lo mismo que el target por defecto, con la única diferencia de aumentar el buildnumber del plugin.
52

  
53
+ En los fuentes del plugin hay que crear una extensión (si ya la tenemos simplemente añadiremos dentro de ella) para registrar el panel de about.htm, un ejemplo (extraído nuevamente de *extExpressionField*) sería: ::
54

  
55
	public class AboutExpresionFieldExtension extends Extension {
56
	
57
		public void initialize() {
58
			// TODO Auto-generated method stub
59

  
60
		}
61

  
62
		public void postInitialize() {
63
			About about=(About)PluginServices.getExtension(About.class);
64
			FPanelAbout panelAbout=about.getAboutPanel();
65
			java.net.URL aboutURL = this.getClass().getResource(
66
		        "/about.htm");
67
		        panelAbout.addAboutUrl(PluginServices.getText(this,"calculate_expresion"),aboutURL);
68
		}
69
+ Para acabar, habrá que añadir en el fichero config/config.xml de nuestro plugin la extensión que acabamos de crear (en caso de que no existiera): ::
70
	
71
	<extension class-name="com.iver.cit.gvsig.AboutExpresionFieldExtension"
72
			description="Extension to add about panel."
73
			active="true"
74
			priority="1">
75
	</extension>    
76
  
77

  
78

  
79
Nombrado de los binarios
80
--------------------------
81

  
82
El nombre de los ficheros debe tener la siguiente estructura:
83

  
84
gvsig_[NOMBRE-EXT]-[VERSION_GVSIG]-[BUILD_NUMBER_GVSIG]-[BUILD_NUMBER_EXT]-[PLATAFORMA].[zip|exe|bin]
85

  
86
Donde:
87

  
88
* NOMBRE_EXT = Nombre de la extensión.
89

  
90
* VERSION_GVSIG = Número de versión de gvSIG sobre la que funciona el binario.
91

  
92
* BUILD_NUMBER_GVSIG = Número de build de gvSIG sobre el que funciona el binario.
93

  
94
* BUILD_NUMBER_EXT = Número de build propio de la extensión.
95

  
96
* PLATAFORMA = Sistema operativo (linux, windows, mac).
97

  
98
Por ejemplo: 
99

  
100
gvsig_sextante-1_1_0-1015-31-windows-i586.exe
101

  
102

  
103
Generación del instalable
104
-----------------------------
105

  
106
Vamos a describir los pasos que se siguen actualmente para generar una distribución de binarios de una extensíon para gvSIG.
107
Antes de empezar, hay que asegurarse de que en nuestro Workspace disponemos de la carpeta **"install"** y **"binaries"**, ya que estas dos carpetas son imprescindible para generar los binarios, y sin estas no se podría hacer.
108

  
109
Hay que descomprimir el fichero **"install/pluginInstallTemplate/install.zip**" dentro de nuestro proyecto. Este zip también se puede bajar de:
110

  
111
+ Si se está trabajando sobre el branch: `install_branch.zip <https://gvsig.org/svn/gvSIG/branches/v10/install/pluginInstallationTemplate/install.zip?format=raw>`_   
112
+ Si se está trabajando sobre el trunk: `install_trunk.zip <https://gvsig.org/svn/gvSIG/trunk/install/pluginInstallationTemplate/install.zip?format=raw>`_ 
113

  
114
Una vez descomprimido ya tenemos lo necesario (en forma de plantilla) para generar los binarios de cualquier extensión, y solo se deberán hacer algunos pequeños cambios para adaptarla a cada extensión...
115

  
116
Primero tenemos que modificar el fichero build.properties. Este fichero contiene el nombre de algunas variables y de la extensión. Tal y como está comentado en el propio fichero, hay que indicar el directorio de nuestra extensión en **MAIN_INSTALL_PLUGIN**, verificar que los números de versión sean los correctos, indicar el nombre del plugin (extensión) en **APPNAME**, y finalmente indicarle el directorio donde se dejaran caer los binarios en **OUTPUT_DIR**.
117

  
118
El siguiente fichero a modificar será el install.xml. Este fichero sirve de guía para el IzPAck a la hora de generar el instalable. Al principio del fichero se debe de indicar el nombre del plugin en **"<appname> </appname>"**.
119
Luego habrá que situarse en el final del fichero, en la zona de **<pack>**. En esta parte se definen qué ficheros tendrán que añadirse sobre la instalación de gvSIG ya existente. En **"name"** se indica el nombre del paquete tal y como se mostrará a la hora de la selección de paquetes durante la instalación, y en **"descripcion"** se indica la descripción que aparecerá al seleccionar dicha extensión. Posteriormente se definen los ficheros a añadir. Para ello disponemos de dos *tasks*:
120

  
121
**<file>**: copia un fichero o directorio. Tiene tres atributos a especificar:
122

  
123
- **targetdir**: Para especificar el destino de los ficheros que se copiarán.
124
- **src**: Para especificar el fichero/directorio que se copiará.
125
- **override**: Para especificar si se sobreescriben los ficheros a copiar en caso de que existan. Generalmente será **true**.
126

  
127
**<fileset>**: copia un conjunto de fichero o directorios. Tiene los siguientes campos:
128

  
129
- **targetdir**: Para especificar el destino, de igual manera que <file>.
130
- **dir**: El directorio de dónde se copiarán los ficheros.
131
- **includes**: Los ficheros a incluir en la copia. Lo interesante de este campo es que se pueden introducir patrones (como * o ?).
132
- **excludes**: Semejante a includes, sólo que aquí se especifican los ficheros que **no** se desean copiar.
133
- **override**: igual que en <file>.
134

  
135
*Para más información acerca de los tasks, hay un html de ayuda en la carpeta install del workspace: install/IzPack/doc/izpack/html/index.html*
136

  
137
Lo más normal será llevarse todo el directorio de nuestra extensión, y además, según que extensiones, se llevaran otros ficheros (ver ejemplos en el propio *install.xml*).
138

  
139
Ahora tendremos que modificar el **buildExt.xml** para prepara la instalación para **MAC OSX** cuyo proceso es distinto. Básicamente, en el *target* llamado **InstallMac** hay que copiar los fichero que hay que actualizar en la instalación (*igula que en el* **instal.xml** *pero usando los comando del* **ANT**). En el propio fichero hay comentados varios ejemplos. También existe el fichero **resources/configfile** que nos permite adaptar la configuración de la instalación de Mac (añadir un sufijo al nombre de la aplicación o comprobar el MD5 de andami), para mas información sobre este fichero se puede consultar el fichero **install/instalador-gvSIG-mac/HOWTO-UPDATER,EXTS.txt** (**CUIDADO CON LOS EL FORMATO DE LOS RETORNOS DE CARRO**).
140

  
141

  
142
Con esto ya tenemos todos los parámetros necesarios para generar los binarios, y simplemente habrá que lanzar el **buildExt.xml**, que en cuanto finalice, encontraremos los binarios de nuestro plugin en la ruta que indicamos en **OUTPUT_DIR** del fichero build.properties.
143

  
144
Dónde dejar los instalables
145
----------------------------
146

  
147
Los instalables de las versiones previas de gvSIG se dejan en el SVN asociado 
148
al TRAC de bugtracking, *https://gvsig.org/svn/bugtracking*, en *trunk/Versiones*.
149

  
150
En esa carpeta se crea para la extensión, algo como:
151

  
152
  [NOMBRE-EXT]-[MAJOR-VERSION]
153

  
154
Dentro de ésta se crearan dos carpetas, 
155
  
156
 * Documentacion-usuario
157
 * Versiones-previas
158

  
159
Y dentro de versiones previas se dejarán caer los instalables para todas las plataformas
160
soportadas.
161

  
162
En la carpeta de documentación de usuario, se dejarán caer las versiones en PDF de la
163
documentación que va a ser publicada como documentación de usuario junto con la extensión.
164

  
165

  
166
}}}
0 167

  
branches/v2_0_0_prep/install/instalador-gvSIG-lin/.cvsignore
1
extensions
2
*.jar
3
*.tar.gz
4
gvSIG_0.6_installer
5
bin
6

  
7
extensiones
0 8

  
branches/v2_0_0_prep/install/instalador-gvSIG-lin/build.xml
1
<project name="instalador-gvSIG" default="init" basedir=".">
2
	<!--
3
	<property name="dir_inst" location="C:\Archivos de programa"/>
4
	<property name="base_dir" location="./"/>		
5
	<property name="dir_libs" location="C:\Archivos de programa\IzPack\lib"/>
6
	<property name="vers" location="0.6"/>
7
	<property name="izpack_dir" location="C:\Archivos de programa\IzPack"/>
8
	-->
9
	
10
	<property name="dir_inst" location="/usr/local"/>
11
	<property name="base_dir" location="./"/>		
12
	<property name="izpack_dir" location="../../install/IzPack"/>
13
	<property name="dir_libs" location="${izpack_dir}/lib"/>
14
	<property name="INSTALL_FILE" location="install.xml"/>
15
	
16
	<taskdef name="izpack" classpath="${dir_libs}/compiler.jar" classname="com.izforge.izpack.ant.IzPackTask"/>
17
	
18
	<target name="init">
19
		<izpack input="${INSTALL_FILE}" 
20
				output="${JARNAME}" 
21
				installerType="standard" 
22
				basedir="${base_dir}" 
23
				izPackDir="${izpack_dir}/"/>
24
	</target>
25
	
26
	<target name="clean">
27
		<delete>
28
			<fileset dir=".">
29
			    <include name="**.zip"/>
30
			</fileset>
31
		</delete>
32
		<delete dir="bin" />
33
		<delete dir="extensions" />
34
	</target>
35
	
36
</project>
0 37

  
branches/v2_0_0_prep/install/instalador-gvSIG-lin/installer_files/README
1
gvSIG v1.0 RC1
2

  
3

  
4

  
5
Application Requirements:
6

  
7
? ? - System
8

  
9
? ? ? ? ? At least: Pentium III / 256 MB RAM.
10

  
11
? ? ? ? ? Recommended: Pentium 4 / 512 MB RAM.
12

  
13
????????? OSes: platforms Windows and Linux.
14
????????Tested in Win98/XP, Linux Suse 8.2/9.0/9.2 and Linux Debian(Lliurex).
15

  
16

  
17
? ? - Installed Software (available in http://www.gvsig.gva.es or in http://java.sun.com)
18

  
19
????????? Java VM 1.4.2 (06 or above).
20

  
21
????????? JAI (Java Advanced Imaging).
22

  
23
????????? JAI Image I/O.
24

  
25
Note: The JAI and JAI Image I/O must be installed into the same Java VM that runs gvSIG.
26

  
27

  
28
Further information and support:
29

  
30
? ? Official web site:
31

  
32
? ? ? ? http://www.gvsig.gva.es
33

  
34
? ? Mailing lists:
35

  
36
? ? ? ? http://runas.cap.gva.es/mailman/listinfo/gvsig_usuarios (users).
37

  
38
? ? ? ? http://runas.cap.gva.es/mailman/listinfo/gvsig_desarrolladores (developers).
39

  
40
? ? ? ? http://runas.cap.gva.es/mailman/listinfo/gvsig_internacional (non-spanish users and developers).
0 41

  
branches/v2_0_0_prep/install/instalador-gvSIG-lin/installer_files/install.sh
1
#!/bin/bash
2
[ -x /usr/bin/dirname ] && cd `/usr/bin/dirname $0`
3
java -jar JARNAME
4

  
0 5

  
branches/v2_0_0_prep/install/instalador-gvSIG-lin/installer_files/LLIG-ME
1
gvSIG v1.0 RC1
2

  
3

  
4
Requisits de l'aplicaci?:
5

  
6
? ? - Sistema
7

  
8
? ? ? ? ? M?nims: Pentium III / 256 MB RAM.
9

  
10
? ? ? ? ? Recomanables: Pentium 4 / 512 MB RAM.
11

  
12
? ? ? ? ? Sistemes operatius: plataformes Windows i Linux.
13
? ? ? ? Provat en Win98/XP, Linux Suse 8.2/9.0/9.2 i Linux Debian(Lliurex).
14

  
15

  
16
? ? - Programari instal?lat (disponible en http://www.gvsig.gva.es o en http://java.sun.com)
17

  
18
? ? ? ? ? M?quina Virtual Java 1.4.2 (06 o superior).
19

  
20
? ? ? ? ? JAI (Java Advanced Imaging).
21

  
22
? ? ? ? ? JAI Image I/O.
23

  
24

  
25
Nota: les libreries JAI i JAI Image I/O han d'estar instal?lades sobre la M?quina Virtual Java que gvSIG utilitze en l'execuci?.
26

  
27

  
28
M?s informaci? ? suport:
29

  
30
? ? Web oficial del projecte:
31

  
32
? ? ? ? http://www.gvsig.gva.es
33

  
34
? ? Llistes de distribuci?:
35

  
36
? ? ? ? http://runas.cap.gva.es/mailman/listinfo/gvsig_usuarios (suport per a usuaris).
37

  
38
? ? ? ? http://runas.cap.gva.es/mailman/listinfo/gvsig_desarrolladores (suport per a desenvolupadors).
39

  
40
? ? ? ? http://runas.cap.gva.es/mailman/listinfo/gvsig_internacional (suport per a usuaris o desenvolupadors de parla no-hispana).
41

  
0 42

  
branches/v2_0_0_prep/install/instalador-gvSIG-lin/installer_files/LEEME
1
gvSIG v1.0 RC1
2

  
3

  
4
Requisitos de la aplicaci?n:
5

  
6
? ? - Sistema
7

  
8
? ? ? ? ? M?nimos: Pentium III / 256 MB RAM.
9

  
10
? ? ? ? ? Recomendables: Pentium 4 / 512 MB RAM.
11

  
12
? ? ? ? ? Sistemas operativos: plataformas Windows y Linux.
13
? ? ? ? Probado en Win98/XP, Linux Suse 8.2/9.0/9.2 y Linux Debian(Lliurex).
14

  
15

  
16
? ? - Software instalado (diponible en http://www.gvsig.gva.es o en http://java.sun.com)
17

  
18
? ? ? ? ? M?quina Virtual Java 1.4.2 (06 o superior).
19

  
20
? ? ? ? ? JAI (Java Advanced Imaging).
21

  
22
? ? ? ? ? JAI Image I/O.
23

  
24

  
25
Nota: Las librer?as JAI y JAI Image I/O deben estar instaladas sobre la M?quina Virtual Java que gvSIG utilice en su ejecuci?n.
26

  
27

  
28
M?s informaci?n y soporte:
29

  
30
? ? Web oficial del proyecto:
31

  
32
? ? ? ? http://www.gvsig.gva.es
33

  
34
? ? Listas de distribuci?n:
35

  
36
? ? ? ? http://runas.cap.gva.es/mailman/listinfo/gvsig_usuarios (soporte para usuarios).
37

  
38
? ? ? ? http://runas.cap.gva.es/mailman/listinfo/gvsig_desarrolladores (soporte para desarrolladores).
39

  
40
? ? ? ? http://runas.cap.gva.es/mailman/listinfo/gvsig_internacional (soporte para usuarios o desarrolladores de habla no hispana).
0 41

  
branches/v2_0_0_prep/install/instalador-gvSIG-lin/.classpath
1
<?xml version="1.0" encoding="UTF-8"?>
2
<classpath>
3
	<classpathentry kind="src" path=""/>
4
	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
5
	<classpathentry kind="lib" path="/home/nacho/IzPack/lib/ant.jar"/>
6
	<classpathentry kind="lib" path="/home/nacho/IzPack/lib/compiler.jar"/>
7
	<classpathentry kind="lib" path="/home/nacho/IzPack/lib/installer.jar"/>
8
	<classpathentry kind="lib" path="/home/nacho/IzPack/lib/izevent.jar"/>
9
	<classpathentry kind="lib" path="/home/nacho/IzPack/lib/jakarta-regexp-1.3.jar"/>
10
	<classpathentry kind="lib" path="/home/nacho/IzPack/lib/kunststoff.jar"/>
11
	<classpathentry kind="lib" path="/home/nacho/IzPack/lib/looks.jar"/>
12
	<classpathentry kind="lib" path="/home/nacho/IzPack/lib/metouia.jar"/>
13
	<classpathentry kind="lib" path="/home/nacho/IzPack/lib/standalone-compiler.jar"/>
14
	<classpathentry kind="lib" path="/home/nacho/IzPack/lib/uninstaller-ext.jar"/>
15
	<classpathentry kind="lib" path="/home/nacho/IzPack/lib/uninstaller.jar"/>
16
	<classpathentry kind="lib" path="/home/nacho/IzPack/lib/liquidlnf.jar"/>
17
	<classpathentry kind="output" path=""/>
18
</classpath>
0 19

  
branches/v2_0_0_prep/install/instalador-gvSIG-lin/.project
1
<?xml version="1.0" encoding="UTF-8"?>
2
<projectDescription>
3
	<name>instalador-gvSIG-lin</name>
4
	<comment></comment>
5
	<projects>
6
	</projects>
7
	<buildSpec>
8
	</buildSpec>
9
	<natures>
10
	</natures>
11
</projectDescription>
0 12

  
branches/v2_0_0_prep/install/instalador-gvSIG-lin/Notas_asociaciacion_archivos.txt
1
PARA KDE: dejar un fichero '.desktop' en el directorio $HOME/.kde/share/mimelnk/application
2
como este:
3

  
4
[Desktop Entry]
5
Comment=
6
Hidden=false
7
Icon=/x/apps/gvSIG_0.1_856/bin/ico-gvSIG.png
8
MimeType=application/gvSIG
9
Patterns=*.gvp;*.GVP
10
Type=MimeType
11

  
12

  
13
y apadir a fichero $HOME/.kde/share/config/profilerc algo asi:
14

  
15
[application/gvSIG - 1]
16
AllowAsDefault=true
17
Application=kde-gvSIG.sh-3.desktop
18
GenericServiceType=Application
19
Preference=1
20
ServiceType=application/gvSIG
21

  
22
y el el fichero de menu ($HOME/.kde/share/applnk/.../gvSIG*.desktop)
23
la entrada 'MimeType' debe estar 'IGUAL' que en el fichero que
24
hemos dejado en $HOME/.kde/share/mimelnk/application
25

  
26

  
27

  
28
Para GNOME:
29

  
30
POR Estudiar
31

  
32
Para FIREFOX:
33

  
34
POR Estudiar
35

  
36

  
37

  
38
Los archivos usados para la asociacion estan en ./resources/mime
39
y los scripts que los manejan son ./resources/postinstall.sh y
40
./resources/unistall.sh
41

  
42

  
43

  
44

  
45

  
46

  
47

  
48

  
49

  
50
**************************************************************
51
URL's y recortes:
52

  
53

  
54

  
55

  
56
http://www.ces.clemson.edu/linux/fc4_desktop.shtml
57
*********************************************************************
58
File Association. At the top of the context menu for a file in Nautilus is found the 'Open with "Preferred Application" menu item. Next, is found the 'Open with' menu item, which lists all other applications which can open the file. These menu items are controlled respectively by the following files:
59

  
60
  /usr/share/applications/defaults.list
61
  /usr/share/applications/mimeinfo.cache
62

  
63
Each line in defaults.list contains a desktop file followed by a mimetype. For example, the line
64

  
65
  application/postscript=evince.desktop
66

  
67
shows that Evince is the preferred application for opening postscript files. Each line in mimeinfo.cache contains a desktop file followed by a list of mimetypes. For example, the line
68

  
69
  image/gif=gthumb.desktop;gimp-2.2.desktop;
70
      gnome-eog.desktop;
71

  
72
shows the list of applications available for opening gif files. Gnome constructs the mimeinfo.cache file by processing the mimetypes recorded in the desktop files. Gnome comes with a pre-built system-wide defaults.list. At the user level there are parallel files
73

  
74
  ~/.local/applications/defaults.list
75
  ~/.local/applications/mimeinfo.cache
76

  
77
Users can add lines to these files as follows.
78

  
79
  In a Nautilus window, right click on a file
80
  Select Properties
81
  Select the 'Open With' tab
82
  To add to the current 'Open With' list
83
  Hit Add and select an application
84
  Hit Add again
85
  Select the preferred application radio button
86
   
87
************************
88

  
89
http://standards.freedesktop.org/shared-mime-info-spec/shared-mime-info-spec-latest.html
90
************************
91

  
92
<MIME> = /usr/local/share/mime
93
<MIME> = /usr/share/mime
94

  
95

  
96
Each application that wishes to contribute to the MIME database will install a single XML file, named after the application, into one of the three <MIME>/packages/ directories (depending on where the user requested the application be installed). After installing, uninstalling or modifying this file, the application MUST run the update-mime-database command, which is provided by the freedesktop.org shared database[SharedMIME].
97

  
98
update-mime-database is passed the mime directory containing the packages subdirectory which was modified as its only argument. It scans all the XML files in the packages subdirectory, combines the information in them, and creates a number of output files. 
99

  
100

  
101

  
102
Here is an example source file, named diff.xml:
103

  
104
<?xml version="1.0"?>
105
<mime-info xmlns='http://www.freedesktop.org/standards/shared-mime-info'>
106
  <mime-type type="text/x-diff">
107
    <comment>Differences between files</comment>
108
    <comment xml:lang="af">verskille tussen l?ers</comment>
109
    ...
110
    <magic priority="50">
111
      <match type="string" offset="0" value="diff\t"/>
112
      <match type="string" offset="0" value="***\t"/>
113
      <match type="string" offset="0" value="Common subdirectories: "/>
114
    </magic>
115
    <glob pattern="*.diff"/>
116
    <glob pattern="*.patch"/>
117
  </mime-type>
118
</mime-info>
119

  
120
********************
121

  
122

  
123

  
0 124

  
branches/v2_0_0_prep/install/instalador-gvSIG-lin/install.xml
1
<installation version="1.0">
2
	<info>
3
		<appname>gvSIG_2.0</appname>
4
		<appversion>2.0</appversion>
5
		<authors>
6
			<author name="Generalitat Valenciana. Conselleria d'Infraestructures i Transport" email="" />
7
			<author name="Iver Tecnologías de la Información S.A." email="" />
8
		</authors>
9
		<url>http://www.gvsig.gva.es/</url>
10
		<javaversion>1.5</javaversion>
11
	</info>
12

  
13
	<guiprefs height="600" resizable="yes" width="800">
14
		<laf name="liquid">
15
			<os family="unix" />
16
		</laf>
17
	</guiprefs>
18

  
19
	<locale>
20
		<!-- only keep the languages which are also available in gvSIG -->
21
		<langpack iso3="spa"/>
22
		<langpack iso3="val"/>
23
		<langpack iso3="eng"/>
24
	<!--	<langpack iso3="cat"/>
25
		<langpack iso3="chn"/> -->
26
		<langpack iso3="cze"/>
27
	<!--	<langpack iso3="dan"/> -->
28
		<langpack iso3="deu"/>
29
	<!--	<langpack iso3="fin"/>-->
30
		<langpack iso3="fra"/>
31
		<langpack iso3="glg"/>
32
	<!--	<langpack iso3="hun"/> -->
33
		<langpack iso3="ita"/>
34
	<!--	<langpack iso3="jpn"/>
35
		<langpack iso3="mys"/>
36
		<langpack iso3="ned"/>
37
		<langpack iso3="nor"/>
38
		<langpack iso3="pol"/> -->
39
		<langpack iso3="por"/>
40
	<!--	<langpack iso3="rom"/>
41
		<langpack iso3="rus"/>
42
		<langpack iso3="scg"/>
43
		<langpack iso3="svk"/>
44
		<langpack iso3="swe"/>
45
		<langpack iso3="ukr"/> -->
46
	</locale>
47

  
48
	<resources>
49
		<res src="resources/gpl.txt" id="LicencePanel.licence"/>
50
		<res src="resources/LEEME.html" id="HTMLInfoPanel.info"/>
51
		<res src="resources/images/Logo_gvsig_gva.jpg" id="Installer.image"/>
52
		<res src="resources/unix_shortcut_spec.xml" id="Unix_shortcutSpec.xml"/>
53
		<res src="resources/andami-config.xml" id="andami-config.xml"/>
54
	</resources>
55

  
56
	<panels>
57
		<panel classname="HTMLInfoPanel"/>
58
		<panel classname="LicencePanel"/>
59
		<panel classname="PacksPanel"/>
60
		<panel classname="TargetPanel"/>
61
		<panel classname="InstallPanel"/>
62
		<panel classname="ShortcutPanel"/>
63
		<panel classname="SimpleFinishPanel"/>
64
	</panels>
65

  
66
  <packs>
67
    <pack name="gvSIG program" required="yes">
68
      <description>gvSIG program files.</description>
69
      <file targetdir="$INSTALL_PATH" src="bin" override="true"/>
70

  
71
      <file os="unix" targetdir="$INSTALL_PATH/bin" src="resources/gvSIG.sh" override="true"/>
72
      <file os="unix" targetdir="$INSTALL_PATH/bin" src="resources/images/help.png" override="true"/>
73
      <file os="unix" targetdir="$INSTALL_PATH/bin" src="resources/images/ico-gvSIG.png" override="true"/>
74
      <file os="unix" targetdir="$INSTALL_PATH/bin" src="resources/images/ico-gvSIG16x16.png" override="true"/>
75
      <file os="unix" targetdir="$INSTALL_PATH/bin" src="resources/images/uninstall16x16.png" override="true"/>
76
      <file os="unix" targetdir="$INSTALL_PATH/bin" src="resources/images/uninstall.png" override="true"/>
77
      <file os="unix" targetdir="$INSTALL_PATH/bin" src="resources/images/help16x16.png" override="true"/>
78
      <file os="unix" targetdir="$INSTALL_PATH" src="resources/install.sh" override="true"/>
79
      <parsable os="unix" targetfile="$INSTALL_PATH/install.sh"/>
80
      <file os="unix" targetdir="$INSTALL_PATH/Uninstaller" src="resources/uninstall.sh" override="true"/>
81
      <parsable os="unix" targetfile="$INSTALL_PATH/Uninstaller/uninstall.sh"/>
82
      <file os="unix" targetdir="$INSTALL_PATH/bin" src="resources/andami-config.xml" override="true"/>
83
      <parsable os="unix" targetfile="$INSTALL_PATH/bin/andami-config.xml"/>
84

  
85
      <file os="unix" targetdir="$INSTALL_PATH/libs" src="libs/linux/mrsid/libjmrsid.so.0.0.2" override="true"/>
86
      <file os="unix" targetdir="$INSTALL_PATH/libs" src="libs/linux/mrsid/install-mrsid.sh" override="true"/>
87

  
88
      <file os="unix" targetdir="$INSTALL_PATH/libs" src="libs/linux/ecw/install-ecw.sh" override="true"/>
89
      <file os="unix" targetdir="$INSTALL_PATH/libs" src="libs/linux/ecw/libjecwcompress.so.0.2.0" override="true"/>
90
      <file os="unix" targetdir="$INSTALL_PATH/libs" src="libs/linux/ecw/libjecw.so.0.0.1" override="true"/>
91
      <!-- <file os="unix" targetdir="$INSTALL_PATH/libs" src="libs/linux/ecw/libNCSCNet.so" override="true"/> -->
92
      <file os="unix" targetdir="$INSTALL_PATH/libs" src="libs/linux/ecw/libNCScnet.so" override="true"/>
93
      <file os="unix" targetdir="$INSTALL_PATH/libs" src="libs/linux/ecw/libNCSEcwC.so" override="true"/>
94
      <file os="unix" targetdir="$INSTALL_PATH/libs" src="libs/linux/ecw/libNCSEcw.so" override="true"/>
95
      <file os="unix" targetdir="$INSTALL_PATH/libs" src="libs/linux/ecw/libNCSUtil.so" override="true"/>
96

  
97
      <file os="unix" targetdir="$INSTALL_PATH/libs" src="libs/linux/gdal/install-gdal.sh" override="true"/>
98
      <file os="unix" targetdir="$INSTALL_PATH/libs" src="libs/linux/gdal/libgdal.so.1.10.0" override="true"/>
99
      <file os="unix" targetdir="$INSTALL_PATH/libs" src="libs/linux/gdal/libjasper-1.701.so.1.0.0" override="true"/>
100
      <file os="unix" targetdir="$INSTALL_PATH/libs" src="libs/linux/gdal/libjgdal.so.0.6.0" override="true"/>
101
      <file os="unix" targetdir="$INSTALL_PATH/libs" src="libs/linux/gdal/libodbc.so.1.0.0" override="true"/>
102
      <file os="unix" targetdir="$INSTALL_PATH/libs" src="libs/linux/gdal/libpq.so.3.0" override="true"/>
103
      <file os="unix" targetdir="$INSTALL_PATH/libs" src="libs/linux/gdal/libpng.so.3.1.2.5" override="true"/>
104
      <file os="unix" targetdir="$INSTALL_PATH/libs" src="libs/linux/gdal/libcrypto.so.0.9.7" override="true"/>
105
      <file os="unix" targetdir="$INSTALL_PATH/libs" src="libs/linux/gdal/libssl.so.0.9.7" override="true"/>
106
      <file os="unix" targetdir="$INSTALL_PATH/libs" src="libs/linux/gdal/libjaddo.so.0.0.0" override="true"/>
107

  
108

  
109

  
110
      <file os="unix" targetdir="$INSTALL_PATH/libs" src="libs/linux/system/libstdc++.so.6" override="true"/>
111

  
112

  
113
      <parsable os="unix" targetfile="$INSTALL_PATH/bin/gvSIG.sh"/>
114
      <executable os="unix"
115
            targetfile="$INSTALL_PATH/bin/gvSIG.sh"
116
            stage="never"
117
            keep="true"/>
118

  
119
      <parsable os="unix" targetfile="$INSTALL_PATH/libs/install-mrsid.sh"/>
120

  
121
      <parsable os="unix" targetfile="$INSTALL_PATH/libs/install-ecw.sh"/>
122

  
123
      <parsable os="unix" targetfile="$INSTALL_PATH/libs/install-gdal.sh"/>
124

  
125
      <executable os="unix"
126
            targetfile="$INSTALL_PATH/install.sh"
127
            stage="postinstall"
128
            keep="false"
129
            failure="ask"/>
130

  
131
      <executable os="unix"
132
            targetfile="$INSTALL_PATH/libs/install-mrsid.sh"
133
            stage="postinstall"
134
            keep="false"
135
            failure="ask"/>
136

  
137
      <executable os="unix"
138
            targetfile="$INSTALL_PATH/libs/install-ecw.sh"
139
            stage="postinstall"
140
            keep="false"
141
            failure="ask"/>
142

  
143
      <executable os="unix"
144
            targetfile="$INSTALL_PATH/libs/install-gdal.sh"
145
            stage="postinstall"
146
            keep="false"
147
            failure="ask"/>
148
    </pack>
149

  
150
    <pack name="Catalog Client" required="no">
151
      <description>Install Catalog Client.</description>
152
      <file targetdir="$INSTALL_PATH/bin/gvSIG/extensiones/" src="extensiones/es.gva.cit.gvsig.catalogClient" override="true"/>
153
    </pack>
154

  
155
    <pack name="WCS Client" required="no">
156
      <description>Install WCS Client.</description>
157
      <file targetdir="$INSTALL_PATH/bin/gvSIG/extensiones/" src="extensiones/com.iver.cit.gvsig.wcs" override="true"/>
158
    </pack>
159

  
160
    <pack name="WMS Client" required="no">
161
      <description>Install WMS Client.</description>
162
      <file targetdir="$INSTALL_PATH/bin/gvSIG/extensiones/" src="extensiones/com.iver.cit.gvsig.wms" override="true"/>
163
    </pack>
164

  
165
	<pack name="JDBC Client" required="no">
166
		<description>Install JDBC Client For MySQL and PostGis.</description>
167
		<file targetdir="$INSTALL_PATH/bin/gvSIG/extensiones/" src="extensiones/com.iver.cit.gvsig.jdbc_spatial" override="true"/>
168
	</pack>
169

  
170

  
171
    <pack name="JDBC Oracle Spatial Client" required="no">
172
        <description>Install JDBC Client For Oracle Spatial Data Base.</description>
173
        <file targetdir="$INSTALL_PATH/bin/gvSIG/extensiones/" src="extensiones/com.iver.cit.gvsig.oracle_spatial" override="true"/>
174
    </pack>
175

  
176
    <pack name="Data Locator" required="no">
177
      <description>Install Data Locator Plugin.</description>
178
      <file targetdir="$INSTALL_PATH/bin/gvSIG/extensiones/" src="extensiones/com.iver.gvsig.datalocator" override="true"/>
179
    </pack>
180

  
181
    <pack name="WFS Client" required="no">
182
      <description>Install WFS Client.</description>
183
      <file targetdir="$INSTALL_PATH/bin/gvSIG/extensiones/" src="extensiones/com.iver.cit.gvsig.wfs2" override="true"/>
184
    </pack>
185

  
186
	<!--  OJO PORQUE NO COMPILA
187
    <pack name="ArcIms Client" required="no">
188
    	<description>ArcIms Client</description>
189
    	<file targetdir="$INSTALL_PATH/bin/gvSIG/extensiones" src="extensiones/es.prodevelop.cit.gvsig.arcims" override="true"/>
190
    </pack>
191
    -->
192

  
193
    <pack name="Geoprocessing" required="no">
194
      <description>Install Geoprocessing.</description>
195
      <file targetdir="$INSTALL_PATH/bin/gvSIG/extensiones/" src="extensiones/com.iver.cit.gvsig.geoprocess" override="true"/>
196
    </pack>
197

  
198
    <pack name="Additional Geoprocessing" required="no" depends="Geoprocessing">
199
      <description>Install Additional Geoprocessing.</description>
200
      <file targetdir="$INSTALL_PATH/bin/gvSIG/extensiones/" src="extensiones/com.iver.cit.gvsig.geoprocessextensions" override="true"/>
201
    </pack>
202

  
203
	<!--  OJO PORQUE NO COMPILA
204
    <pack name="Georeferencing" required="no">
205
      <description>Install Georeferening.</description>
206
      <file targetdir="$INSTALL_PATH/bin/gvSIG/extensiones/" src="extensiones/org.gvsig.georeferencing" override="true"/>
207
    </pack>
208
    -->
209

  
210
    <pack name="Edition" required="no">
211
      <description>Install Edition.</description>
212
      <file targetdir="$INSTALL_PATH/bin/gvSIG/extensiones/" src="extensiones/com.iver.cit.gvsig.cad" override="true"/>
213
    </pack>
214

  
215
    <pack name="Raster Tools" required="no">
216
      <description>Install Raster Tools.</description>
217
      <file targetdir="$INSTALL_PATH/bin/gvSIG/extensiones/" src="extensiones/org.gvsig.rastertools" override="true"/>
218
    </pack>
219

  
220
    <pack name="Scripting" required="no">
221
      <description>Scripting.</description>
222
      <file targetdir="$INSTALL_PATH/bin/gvSIG/extensiones/" src="extensiones/org.gvsig.scripting" override="true"/>
223
    </pack>
224

  
225

  
226
    <pack name="Center View To Point" required="no">
227
      <description>Install Center View To Point Tool.</description>
228
      <file targetdir="$INSTALL_PATH/bin/gvSIG/extensiones/" src="extensiones/com.iver.gvsig.centerviewpoint" override="true"/>
229
    </pack>
230

  
231
    <pack name="Expression Field" required="no" depends="Scripting">
232
      <description>Install Expression Field Tool.</description>
233
      <file targetdir="$INSTALL_PATH/bin/gvSIG/extensiones/" src="extensiones/com.iver.gvsig.expressionfield" override="true"/>
234
    </pack>
235

  
236
    <pack name="Annotations" required="no" depends="Edition">
237
      <description>Install Annotation Layer Tool.</description>
238
      <file targetdir="$INSTALL_PATH/bin/gvSIG/extensiones/" src="extensiones/com.iver.cit.gvsig.annotation" override="true"/>
239
    </pack>
240

  
241
    <pack name="Extended Symbology" required="no">
242
      <description>Install Extended Symbology plugin for gvSIG</description>
243
      <file targetdir="$INSTALL_PATH/bin/gvSIG/extensiones/" src="extensiones/com.iver.cit.gvsig.graph" override="true"/>
244
    </pack>
245

  
246
    <pack name="ArcSDE Client" required="no" depends="Edition">
247
      <description>Install ArcSDE Client for gvSIG</description>
248
      <file targetdir="$INSTALL_PATH/bin/gvSIG/extensiones/" src="extensiones/org.gvsig.sde" override="true"/>
249
    </pack>
250

  
251
    <pack name="Remote Sensing" required="no" depends="Raster Tools">
252
      <description>Install Remote Sensing tools for gvSIG</description>
253
      <file targetdir="$INSTALL_PATH/bin/gvSIG/extensiones/" src="extensiones/org.gvsig.remotesensing" override="true"/>
254
    </pack>
255

  
256
    <pack name="Graph" required="no">
257
      <description>Install Graph tools for gvSIG</description>
258
      <file targetdir="$INSTALL_PATH/bin/gvSIG/extensiones/" src="extensiones/com.iver.cit.gvsig.graph" override="true"/>
259
    </pack>
260

  
261
	<!--
262
    <pack name="3D" required="no" depends="WFS Client,WCS Client,WMS Client">
263
      <description>Install 3D plugin for gvSIG</description>
264
      <file targetdir="$INSTALL_PATH/bin/gvSIG/extensiones/" src="extensiones/com.iver.ai2.gvsig3dgui" override="true"/>
265

  
266
	  <!- - Binaries - ->
267
      <fileset targetdir="$INSTALL_PATH/libs"
268
      	dir="../../binaries/linux/3D"
269
      	includes="*.so*,osgPlugins*/*.so*"
270
      />
271
       <file targetdir="$INSTALL_PATH/libs" src="../../binaries/linux/3D/install-3D.sh" override="true"/>
272
       <parsable os="unix" targetfile="$INSTALL_PATH/libs/install-3D.sh"/>
273
		<executable os="unix"
274
			    targetfile="$INSTALL_PATH/libs/install-3D.sh"
275
			    stage="postinstall"
276
			    keep="false"
277
			    failure="ask"/>
278

  
279

  
280
    </pack>
281
     -->
282

  
283
	<pack name="JCRS" required="yes">
284
		<description>Install advanced projections plugin.</description>
285
        <file targetdir="$INSTALL_PATH/bin/gvSIG/extensiones/" src="extensiones/org.gvsig.crs" override="true"/>
286
        <!--
287
        <file targetdir="$INSTALL_PATH/bin/gvSIG/extensiones/com.iver.cit.gvsig/lib" src="bin/gvSIG/extensiones/com.iver.cit.gvsig/lib/jcrs.jar" override="true"/>
288
		<file targetdir="$INSTALL_PATH/bin/gvSIG/extensiones/com.iver.cit.gvsig/lib" src="bin/gvSIG/extensiones/com.iver.cit.gvsig/lib/jGridShiftApi.jar" override="true"/>
289
		 -->
290
		<file os="unix" targetdir="$INSTALL_PATH/libs" src="../../binaries/linux/crs/libproj.so.0.5.0" override="true"/>
291
		<file os="unix" targetdir="$INSTALL_PATH/libs" src="../../binaries/linux/crs/libcrsjniproj.so.0.1.1" override="true"/>
292

  
293
		<file os="unix" targetdir="$INSTALL_PATH/libs" src="libs/linux/install-crs.sh" override="true"/>
294
		<parsable os="unix" targetfile="$INSTALL_PATH/libs/install-crs.sh"/>
295
		<executable os="unix"
296
			    targetfile="$INSTALL_PATH/libs/install-crs.sh"
297
			    stage="postinstall"
298
			    keep="false"
299
			    failure="ask"/>
300

  
301
	</pack>
302

  
303
  </packs>
304

  
305
</installation>
0 306

  
branches/v2_0_0_prep/install/instalador-gvSIG-lin/libs/linux/install-crs.sh
1
#!/bin/sh
2

  
3
VER=0.6.0
4
VERPROJ=0.5.0
5
VERJNIPROJ=0.1.1
6

  
7
cd "$INSTALL_PATH/libs"
8

  
9
rm -f libproj.so.0 libproj.so
10
ln -s libproj.so.$VERPROJ libproj.so
11
ln -s libproj.so.$VERPROJ libproj.so.0
12

  
13
rm -f libcrsjniproj.so.0 libcrsjniproj.so
14
ln -s libcrsjniproj.so.$VERJNIPROJ libcrsjniproj.so
15
ln -s libcrsjniproj.so.$VERJNIPROJ libcrsjniproj.so.0
0 16

  
branches/v2_0_0_prep/install/instalador-gvSIG-lin/libs/linux/gdal/install-gdal.sh
1
#!/bin/sh
2
cd "$INSTALL_PATH/libs"
3
rm -f libjgdal.so libjgdal.so.0
4
ln -s libjgdal.so.0.6.0 libjgdal.so
5
ln -s libjgdal.so.0.6.0 libjgdal.so.0
6

  
7
rm -f libgdal.0 libgdal.so.1
8
ln -s libgdal.so.1.10.0 libgdal.so
9
ln -s libgdal.so.1.10.0 libgdal.so.1
10

  
11
rm -f libjasper-1.701.so libjasper-1.701.so.1
12
ln -s libjasper-1.701.so.1.0.0 libjasper-1.701.so
13
ln -s libjasper-1.701.so.1.0.0 libjasper-1.701.so.1
14

  
15
rm -f libodbc.so libodbc.so.1
16
ln -s libodbc.so.1.0.0 libodbc.so
17
ln -s libodbc.so.1.0.0 libodbc.so.1
18

  
19
rm -f libpq.so libpq.so.3
20
ln -s libpq.so.3.0 libpq.so
21
ln -s libpq.so.3.0 libpq.so.3
22

  
23
rm -f libcrypto.so libcrypto.so.0
24
ln -s libcrypto.so.0.9.7 libcrypto.so
25
ln -s libcrypto.so.0.9.7 libcrypto.so.0
26

  
27
rm -f libssl.so libssl.so.0
28
ln -s libssl.so.0.9.7 libssl.so
29
ln -s libssl.so.0.9.7 libssl.so.0
30

  
31
rm -f libpng.so libpng.so.3
32
ln -s libpng.so.3.1.2.5 libpng.so
33
ln -s libpng.so.3.1.2.5 libpng.so.3
34

  
35
rm -f libjaddo.so
36
ln -s libjaddo.so.0.0.0 libjaddo.so
0 37

  
branches/v2_0_0_prep/install/instalador-gvSIG-lin/libs/linux/ecw/install-ecw.sh
1
#!/bin/sh
2

  
3
cd "$INSTALL_PATH/libs"
4

  
5
rm -f libjecwcompress.so libjecwcompress.so.0
6
ln -s libjecwcompress.so.0.2.0 libjecwcompress.so
7
ln -s libjecwcompress.so.0.2.0 libjecwcompress.so.0
8

  
9
rm -f libjecw.so libjecw.so.0
10
ln -s libjecw.so.0.0.1 libjecw.so
11
ln -s libjecw.so.0.0.1 libjecw.so.0
12

  
13
rm -f libNCSCnet.so libNCSCNet.so
14
ln -s libNCScnet.so libNCSCnet.so
15
ln -s libNCScnet.so libNCSCNet.so
16

  
17
#rm -f libNCSEcwC.so
18
#ln -s libNCSEcwC.so.0.0.0 libNCSEcwC.so
19

  
20
#rm -f libNCSEcw.so
21
#ln -s libNCSEcw.so.0.0.0 libNCSEcw.so
22

  
23
#rm -f libNCSUtil.so
24
#ln -s libNCSUtil.so.0.0.0 libNCSUtil.so
0 25

  
branches/v2_0_0_prep/install/instalador-gvSIG-lin/libs/linux/mrsid/install-mrsid.sh
1
#!/bin/sh
2
cd "$INSTALL_PATH/libs"
3
ln -s libjmrsid.so.0.0.2 libjmrsid.so
4
ln -s libjmrsid.so.0.0.2 libjmrsid.so.0
0 5

  
branches/v2_0_0_prep/install/instalador-gvSIG-lin/resources/install.sh
1
#!/bin/sh
2
# This is used at installation time, in order to perform some extra actions
3
# that the installer is not able to do
4

  
5
chmod +x "$INSTALL_PATH"/bin/gvSIG.sh
6
chmod +x "$INSTALL_PATH"/Uninstaller/uninstall.sh
7
[ -a "$USER_HOME"/gvSIG ] || mkdir -p "$USER_HOME"/gvSIG
8
[ -a "$USER_HOME"/gvSIG/andami-config.xml ] || cp "$INSTALL_PATH"/bin/andami-config.xml "$USER_HOME"/gvSIG/andami-config.xml
0 9

  
branches/v2_0_0_prep/install/instalador-gvSIG-lin/resources/gpl.txt
1
	GNU GENERAL PUBLIC LICENSE
2
	Version 2, June 1991
3

  
4
	 Copyright (C) 1989, 1991 Free Software Foundation, Inc. 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.
5

  
6
		Preamble
7

  
8
	The licenses for most software are designed to take away your freedom to share and change it.  By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users.  This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it.  (Some other Free Software Foundation software is covered by the GNU Library General Public License instead.)  You can apply it to your programs, too.
9

  
10
	When we speak of free software, we are referring to freedom, not price.  Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things.
11

  
12
	To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it.
13

  
14
	For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have.  You must make sure that they, too, receive or can get the source code.  And you must show them these terms so they know their
15
rights.
16

  
17
	We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software.
18

  
19
	Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software.  If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations.
20

  
21
	Finally, any free program is threatened constantly by software	patents.  We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary.  To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all.
22

  
23
	The precise terms and conditions for copying, distribution and modification follow.
24

  
25
				GNU GENERAL PUBLIC LICENSE
26
	TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
27

  
28
	0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License.  The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language.  (Hereinafter, translation is included without limitation in the term "modification".)  Each licensee is addressed as "you".
29

  
30
	Activities other than copying, distribution and modification are not covered by this License; they are outside its scope.  The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does.
31

  
32
1.	You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program.
33

  
34
You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee.
35

  
36
2.	You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions:
37

  
38
a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change.
39

  
40
b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License.
41

  
42
c)	If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License.  (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.)
43

  
44
These requirements apply to the modified work as a whole.  If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works.  But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it.
45

  
46
Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program.
47

  
48
In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License.
49

  
50
3.	You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following:
51

  
52
a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or,
53

  
54
b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or,
55

  
56
c)	Accompany it with the information you received as to the offer to distribute corresponding source code.  (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.)
57

  
58
The source code for a work means the preferred form of the work for making modifications to it.  For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable.  However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable.
59

  
60
If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code.
61

  
62
4.	You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License.  Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License.
63
However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance.
64

  
65
5.	You are not required to accept this License, since you have not signed it.  However, nothing else grants you permission to modify or distribute the Program or its derivative works.  These actions are prohibited by law if you do not accept this License.  Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it.
66

  
67
6.	Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions.  You may not impose any further restrictions on the recipients' exercise of the rights granted herein.
68
You are not responsible for enforcing compliance by third parties to this License.
69

  
70
7.	If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License.  If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all.  For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program.
71

  
72
If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances.
73

  
74
It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices.  Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice.
75

  
76
This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License.
77

  
78
8.	If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded.  In such case, this License incorporates the limitation as if written in the body of this License.
79

  
80
9.	The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time.  Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns.
81

  
82
Each version is given a distinguishing version number.  If the Program specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation.  If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation.
83

  
84
10.	If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission.  For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this.  Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally.
85

  
86
NO WARRANTY
87

  
88
11.	BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.  EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
89

  
90
12.	IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
91

  
92
END OF TERMS AND CONDITIONS
93

  
94
How to Apply These Terms to Your New Programs
95

  
96
If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms.
97

  
98
To do so, attach the following notices to the program.  It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found.
99

  
100
<one line to give the program's name and a brief idea of what it does.> Copyright (C) <year>  <name of author>
101

  
102
This program 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.
103

  
104
This program 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 General Public License for more details.
105

  
106
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
107

  
108

  
109
Also add information on how to contact you by electronic and paper mail.
110

  
111
If the program is interactive, make it output a short notice like this when it starts in an interactive mode:
112

  
113
Gnomovision version 69, Copyright (C) year name of author Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
114
This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details.
115

  
116
The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License.  Of course, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program.
117

  
118
You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary.  Here is a sample; alter the names:
119

  
120
Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision' (which makes passes at compilers) written by James Hacker.
121

  
122
<signature of Ty Coon>, 1 April 1989
123
Ty Coon, President of Vice
124

  
125
This General Public License does not permit incorporating your program into proprietary programs.  If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library.  If this is what you want to do, use the GNU Library General Public License instead of this License.
0 126

  
branches/v2_0_0_prep/install/instalador-gvSIG-lin/resources/uninstall.sh
1
#!/bin/sh
2
$JAVA_HOME/bin/java -jar "$INSTALL_PATH/Uninstaller/uninstaller.jar"
0 3

  
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff