source: release-kits/lirk2/installer/build.xml@ 15980

Last change on this file since 15980 was 15980, checked in by oranfry, 14 years ago

have lirk2 get the linux general stuff

File size: 4.8 KB
Line 
1<?xml version="1.0"?>
2<!--
3This is the build.xml run by AntInstaller for the installer
4-->
5
6<project name="Installation">
7
8 <!-- this is required to pick up the properties generated during the install pages -->
9 <property file="${basedir}/ant.install.properties"/>
10
11 <path id="project.classpath">
12 <pathelement path="${antinstaller.jar}"/>
13 </path>
14
15 <!-- custom tasks -->
16 <typedef name="rsr" classname="RegexSearchReplace" classpathref="project.classpath"/>
17
18 <condition property="bundled.java.exists">
19 <available file="../@java.extracted@/bin/java"/>
20 </condition>
21
22
23 <target name="install-core-components" depends="">
24
25 <echo>basedir: ${basedir}</echo>
26 <echo>installDir: ${installDir}</echo>
27 <echo>antinstaller.jar: ${antinstaller.jar}</echo>
28
29 <!-- create the installation directory -->
30 <echo message="Creating Installation directory"/>
31 <mkdir dir="${installDir}"/>
32
33
34 <!-- install files -->
35 <echo message="Installing GLI (gli)"/>
36 <unzip src="${antinstaller.jar}" dest="${installDir}"><patternset><include name="gli/**/*"/></patternset></unzip>
37 <echo/>
38
39 <echo message="Installing Executable Binaries (bin)"/>
40 <unzip src="${antinstaller.jar}" dest="${installDir}"><patternset><include name="bin/**/*"/></patternset></unzip>
41 <echo/>
42
43 <echo message="Installing CGI Binaries (cgi-bin)"/>
44 <unzip src="${antinstaller.jar}" dest="${installDir}"><patternset><include name="cgi-bin/**/*"/></patternset></unzip>
45 <echo/>
46
47 <echo message="Installing Config Folder (etc)"/>
48 <unzip src="${antinstaller.jar}" dest="${installDir}"><patternset><include name="etc/**/*"/></patternset></unzip>
49 <echo/>
50
51 <echo message="Installing mappings (mappings)"/>
52 <unzip src="${antinstaller.jar}" dest="${installDir}"><patternset><include name="mappings/**/*"/></patternset></unzip>
53 <echo/>
54
55 <echo message="Installing Packages (packages)"/>
56 <unzip src="${antinstaller.jar}" dest="${installDir}"><patternset><include name="packages/**/*"/></patternset></unzip>
57 <echo/>
58
59 <echo message="Installing Images (images)"/>
60 <unzip src="${antinstaller.jar}" dest="${installDir}"><patternset><include name="images/**/*"/></patternset></unzip>
61 <echo/>
62
63 <echo message="Installing Perl Libraries (perllib)"/>
64 <unzip src="${antinstaller.jar}" dest="${installDir}"><patternset><include name="perllib/**/*"/></patternset></unzip>
65 <echo/>
66
67 <echo message="Installing Indexers (indexers)"/>
68 <unzip src="${antinstaller.jar}" dest="${installDir}"><patternset><include name="indexers/**/*"/></patternset></unzip>
69 <echo/>
70
71 <echo message="Installing Macros (macros)"/>
72 <unzip src="${antinstaller.jar}" dest="${installDir}"><patternset><include name="macros/**/*"/></patternset></unzip>
73 <echo/>
74
75 <echo message="Installing Collect Folder (collect)"/>
76 <unzip src="${antinstaller.jar}" dest="${installDir}"><patternset><include name="collect/**/*"/></patternset></unzip>
77 <echo/>
78
79 <echo message="Installing Top Level Files"/>
80 <unzip src="${antinstaller.jar}" dest="${installDir}">
81 <patternset>
82 <include name="config.sub"/>
83 <include name="configure.in"/>
84 <include name="install-sh"/>
85 <include name="setup.bash"/>
86 <include name="config.h.in"/>
87 <include name="configtest.pl"/>
88 <include name="WIN32cfg.h"/>
89 <include name="acconfig.h"/>
90 <include name="COPYING"/>
91 <include name="config.guess"/>
92 <include name="Install.txt"/>
93 <include name="configure"/>
94 <include name="win32.mak"/>
95 <include name="setup.csh"/>
96 <include name="Install.sh"/>
97 <include name="Makefile.in"/>
98 <include name="micotest.cpp"/>
99 <include name="aclocal.m4"/>
100 </patternset>
101 </unzip>
102 <echo/>
103
104 <echo message="Setting Binaries to Executable"/>
105 <chmod dir="${installDir}" includes="*.sh,*.bash" perm="775"/>
106 <chmod dir="${installDir}/bin/linux" includes="*" perm="775"/>
107 <chmod dir="${installDir}/cgi-bin" includes="*" perm="775"/>
108 <chmod dir="${installDir}/bin/script" includes="**/*" perm="775"/>
109 <chmod dir="${installDir}/gli" includes="*.sh" perm="775"/>
110 <echo/>
111
112 <!-- delete unneeded files -->
113 <echo message="Deleting some extraneous files"/>
114 <delete dir="${installDir}/resources/icons"/>
115 <delete file="${installDir}/resources/*.png"/>
116
117 <echo message="Finished"/>
118
119 </target>
120
121 <!-- Source -->
122 <target name="install-source-code" depends="">
123 <echo message="Installing Source Code (src)"/>
124 <mkdir dir="${installDir}/src"/>
125 <unzip src="${antinstaller.jar}" dest="${installDir}"><patternset><include name="src/**/*"/></patternset></unzip>
126 </target>
127
128 <target name="install-java">
129 <echo message="Installing bundled java"/>
130 <copy todir="${installDir}/packages/jre">
131 <fileset dir="../@java.extracted@"/>
132 </copy>
133 <chmod dir="${installDir}/packages/jre/bin" includes="*" perm="775"/>
134 </target>
135
136 <target name="cleanuptarget">
137 </target>
138
139
140</project>
Note: See TracBrowser for help on using the repository browser.