svn-gvsig-desktop / tags / v1_1_2_1_Build_1046 / install / CD_ROM / buildCD.xml @ 43300
History | View | Annotate | Download (5.35 KB)
1 | 15848 | mhaloui | <project name="CD_gvSIG" default="main"> |
---|---|---|---|
2 | |||
3 | <property file="buildCD.properties"/> |
||
4 | <property file="../../_fwAndami/gvSIG/extensiones/com.iver.cit.gvsig/build.number"/> |
||
5 | 17061 | jmvivo | <!--<property file="../build.properties" prefix="install."/>
|
6 | <property name="OUTPUT_DIR" value="${install.OUTPUT_DIR}"/>-->
|
||
7 | <property name="OUTPUT_DIR" value="/tmp/versiones/v${version}_${build.number}"/> |
||
8 | 16169 | jmvivo | |
9 | 15848 | mhaloui | <propertyfile file="temp.properties"> |
10 | <entry key="bversion" value="${version}"/> |
||
11 | </propertyfile>
|
||
12 | 16169 | jmvivo | |
13 | 15848 | mhaloui | <property name="JRE_Zip" value="./JRE.zip"/> |
14 | <property name="Extructure_Zip" value="./CD_extructure.zip"/> |
||
15 | <property name="Andami" location="../../_fwAndami"/> |
||
16 | 16694 | jmvivo | <property name="binaries" location="../../binaries"/> |
17 | 15848 | mhaloui | <property name="base.dir" location="cd_gvSIG"/> |
18 | <property name="nombreISO" value="gvSIG"/> |
||
19 | 16169 | jmvivo | |
20 | 16694 | jmvivo | <replace file="temp.properties" token="." value="_"/> |
21 | <property file="temp.properties"/> |
||
22 | |||
23 | 18189 | jmvivo | <property name="Etiqueta" value="gvSIG-${bversion}_Build_${build.number}" /> |
24 | |||
25 | 16694 | jmvivo | <available file="${OUTPUT_DIR}/gvSIG-${bversion}-src.zip" property="src.present"/> <!--Verificar que los fuentes esten con los instalables --> |
26 | |||
27 | 15848 | mhaloui | <condition property="we.linux"> |
28 | <os family="unix"/> |
||
29 | </condition>
|
||
30 | 16169 | jmvivo | |
31 | 16694 | jmvivo | <target name="main" depends="FilesCopy,detectSRC,FilesReplace,moveInstalables,makeISO"> <!-- el target makeInstalables no se realiza por defecto--> |
32 | 15848 | mhaloui | <delete file="temp.properties"/> |
33 | <echo message="*******************************"/> |
||
34 | <echo message="******* DONE ********"/> |
||
35 | <echo message="*******************************"/> |
||
36 | 16169 | jmvivo | |
37 | 15848 | mhaloui | </target>
|
38 | <target name="FilesCopy"> |
||
39 | 18189 | jmvivo | <delete dir="${base.dir}"/> |
40 | 16169 | jmvivo | <mkdir dir="${base.dir}"/> |
41 | 15848 | mhaloui | <unzip src="${JRE_Zip}" dest="${base.dir}"/> |
42 | <unzip src="${Extructure_Zip}" dest="${base.dir}"/> |
||
43 | <copy todir="${base.dir}/gvSIG/bin" file="${Andami}/andami.jar"/> |
||
44 | <copy todir="${base.dir}/gvSIG/bin" file="${Andami}/castor.properties"/> |
||
45 | <copy todir="${base.dir}/gvSIG/bin" file="${Andami}/schemas/andami-config.xml"/> |
||
46 | 16169 | jmvivo | |
47 | 15848 | mhaloui | <copy todir="${base.dir}/gvSIG/bin/lib" > |
48 | <fileset dir="${Andami}/lib"/> |
||
49 | </copy>
|
||
50 | <copy todir="${base.dir}/gvSIG/bin/gvSIG" > |
||
51 | <fileset dir="${Andami}/gvSIG"/> |
||
52 | </copy>
|
||
53 | <copy todir="${base.dir}/cachedir"> |
||
54 | <fileset dir="${Andami}/cachedir"/> |
||
55 | </copy>
|
||
56 | 16169 | jmvivo | |
57 | 15848 | mhaloui | <copy todir="${base.dir}/gvSIG/cachedir"> |
58 | <fileset dir="${Andami}/cachedir"/> |
||
59 | </copy>
|
||
60 | <copy todir="${base.dir}/gvSIG/bin/cachedir"> |
||
61 | <fileset dir="${Andami}/cachedir"/> |
||
62 | </copy>
|
||
63 | 16169 | jmvivo | |
64 | |||
65 | 15848 | mhaloui | <move file="${base.dir}/r_0.txt" tofile="${base.dir}/r_${build.number}.txt"/> |
66 | 16169 | jmvivo | |
67 | 16694 | jmvivo | </target>
|
68 | 16169 | jmvivo | |
69 | |||
70 | 16694 | jmvivo | <target name="detectSRC" depends="withSRC,noSRC"> |
71 | </target>
|
||
72 | 16169 | jmvivo | |
73 | 16694 | jmvivo | <target name="withSRC" if="src.present"> |
74 | <move file="${base.dir}/leeme_conSRC.htm" tofile="${base.dir}/leeme.htm"/> |
||
75 | <move file="${base.dir}/readme_conSRC.htm" tofile="${base.dir}/readme.htm"/> |
||
76 | <delete file="${base.dir}/leeme_sinSRC.htm"/> |
||
77 | <delete file="${base.dir}/readme_sinSRC.htm"/> |
||
78 | 16169 | jmvivo | |
79 | 16694 | jmvivo | </target>
|
80 | 16169 | jmvivo | |
81 | 16694 | jmvivo | <target name="noSRC" unless="src.present"> |
82 | <move file="${base.dir}/leeme_sinSRC.htm" tofile="${base.dir}/leeme.htm"/> |
||
83 | <move file="${base.dir}/readme_sinSRC.htm" tofile="${base.dir}/readme.htm"/> |
||
84 | <delete file="${base.dir}/leeme_conSRC.htm"/> |
||
85 | <delete file="${base.dir}/readme_conSRC.htm"/> |
||
86 | 15848 | mhaloui | </target>
|
87 | 16694 | jmvivo | |
88 | <target name="FilesReplace"> |
||
89 | |||
90 | |||
91 | <replace file="${base.dir}/r_${build.number}.txt" token="%VERSION%" value="${version}"/> |
||
92 | <replace file="${base.dir}/r_${build.number}.txt" token="%BVERSION%" value="${bversion}"/> |
||
93 | <replace file="${base.dir}/r_${build.number}.txt" token="%BUILDNUMBER%" value="${build.number}"/> |
||
94 | |||
95 | <replace file="${base.dir}/autorun.inf" token="%VERSION%" value="${bversion}"/> |
||
96 | <replace file="${base.dir}/autorun.inf" token="%BVERSION%" value="${bversion}"/> |
||
97 | <replace file="${base.dir}/autorun.inf" token="%BUILDNUMBER%" value="${build.number}"/> |
||
98 | |||
99 | <replace file="${base.dir}/leeme.htm" token="%VERSION%" value="${version}"/> |
||
100 | <replace file="${base.dir}/leeme.htm" token="%BVERSION%" value="${bversion}"/> |
||
101 | <replace file="${base.dir}/leeme.htm" token="%BUILDNUMBER%" value="${build.number}"/> |
||
102 | |||
103 | <replace file="${base.dir}/readme.htm" token="%VERSION%" value="${version}"/> |
||
104 | <replace file="${base.dir}/readme.htm" token="%BVERSION%" value="${bversion}"/> |
||
105 | <replace file="${base.dir}/readme.htm" token="%BUILDNUMBER%" value="${build.number}"/> |
||
106 | |||
107 | |||
108 | </target>
|
||
109 | |||
110 | |||
111 | 15848 | mhaloui | <target name="makeInstalables"> |
112 | 16169 | jmvivo | |
113 | 15848 | mhaloui | <ant antfile="build.xml" dir="../" /> <!--Esto de momento en el branch no se usa--> |
114 | 16169 | jmvivo | |
115 | 15848 | mhaloui | </target>
|
116 | <target name="moveInstalables"> |
||
117 | <!-- Se debe pensar si se mantienen esos instalabes que se acaban de generar o se borran -->
|
||
118 | 16169 | jmvivo | |
119 | 15848 | mhaloui | <copy todir="${base.dir}/instalar"> |
120 | 16694 | jmvivo | <fileset dir="${OUTPUT_DIR}" includes="*.bin,*.exe,*mac*.zip"/> |
121 | 15848 | mhaloui | </copy>
|
122 | 16169 | jmvivo | |
123 | <chmod dir="${base.dir}/instalar" perm="ugo+rx" |
||
124 | 15848 | mhaloui | includes="*.bin"/> |
125 | <chmod dir="${base.dir}/gvSIG.sh" perm="ugo+rx" /> |
||
126 | <chmod dir="${base.dir}/gvSIG/bin/gvSIG.sh" perm="ugo+rx" /> |
||
127 | <chmod dir="${base.dir}/gvSIG/JRE/linux/bin/java" perm="ugo+rx" /> |
||
128 | 16169 | jmvivo | |
129 | 15848 | mhaloui | </target>
|
130 | 16169 | jmvivo | |
131 | 15897 | mhaloui | <target name="makeISO" depends="makeISO_LIN,makeISO_WIN"> |
132 | <echo message="CD GENERATOR DONE" /> |
||
133 | </target>
|
||
134 | 16169 | jmvivo | |
135 | 15897 | mhaloui | <target name="makeISO_LIN" if="we.linux"> |
136 | 15848 | mhaloui | <exec executable="mkisofs"> |
137 | 15907 | mhaloui | <arg line="-udf -r -J -T -hide-joliet-trans-tbl -hide-rr-moved -V ${Etiqueta} -o ${nombreISO}-${bversion}_Build_${build.number}.iso ${base.dir}"/> |
138 | 15848 | mhaloui | </exec>
|
139 | 16169 | jmvivo | |
140 | 15848 | mhaloui | </target>
|
141 | 16169 | jmvivo | |
142 | 15897 | mhaloui | <target name="makeISO_WIN" unless="we.linux"> |
143 | <echo message="El sistema operativo no es Linux, se deberá generar un iso de la carpeta ${base.dir}"/> |
||
144 | </target>
|
||
145 | 16169 | jmvivo | |
146 | |||
147 | 16694 | jmvivo | </project> |