|
2 | 2 |
|
3 | 3 | <property file="version.properties"/>
|
4 | 4 | <property file="build.properties"/>
|
5 |
| - <property name="upload.host" value="jasig01.managed.contegix.com" /> |
6 |
| - <property name="upload.remotedir" value="/var/www/domains/jasig.org/downloads/htdocs/cas-clients/php" /> |
7 | 5 |
|
8 | 6 | <taskdef name="doxygen"
|
9 | 7 | classname="org.doxygen.tools.DoxygenTask"
|
|
79 | 77 | byline="true"
|
80 | 78 | />
|
81 | 79 |
|
82 |
| - <!-- Update the doc url --> |
83 |
| - <replaceregexp file="../docs/index.html" |
84 |
| - match="http://downloads\.jasig\.org/cas-clients/php/[^/]+/docs/api/" |
85 |
| - replace="http://downloads.jasig.org/cas-clients/php/${phpcas.version}/docs/api/" |
86 |
| - byline="true" |
87 |
| - /> |
88 |
| - |
89 | 80 | <!-- Commit the version changes -->
|
90 | 81 | <exec dir="${basedir}/.." executable="${git.path}" failonerror="true">
|
91 | 82 | <arg value="add" />
|
|
255 | 246 |
|
256 | 247 | </target>
|
257 | 248 |
|
258 |
| - <!-- ========================================================== |
259 |
| - Upload the distribution files to the download area |
260 |
| - --> |
261 |
| - <target name="upload" |
262 |
| - description="Upload the distribution files to JA-SIG"> |
263 |
| - <!-- Check that all the properties used for archives upload are set --> |
264 |
| - <fail message="please set ${upload.username} in build.properties" unless="upload.username"/> |
265 |
| - <fail message="please set ${upload.password} in build.properties" unless="upload.password"/> |
266 |
| - <scp |
267 |
| - trust="true" |
268 |
| - localFile="${basedir}/dist/CAS-${phpcas.version}.tgz" |
269 |
| - remoteTodir="${upload.username}:${upload.password}@${upload.host}:${upload.remotedir}" /> |
270 |
| - <scp |
271 |
| - trust="true" |
272 |
| - localFile="${basedir}/dist/docs-${phpcas.version}.tgz" |
273 |
| - remoteTodir="${upload.username}:${upload.password}@${upload.host}:${upload.remotedir}" /> |
274 |
| - <sshexec |
275 |
| - host="${upload.host}" |
276 |
| - username="${upload.username}" |
277 |
| - command="cd ${upload.remotedir} && rm -rf ${phpcas.version} docs && mkdir ${phpcas.version} && mv CAS-${phpcas.version}.tgz ${phpcas.version} && gunzip docs-${phpcas.version}.tgz && tar xf docs-${phpcas.version}.tar && mv docs ${phpcas.version} && rm docs-${phpcas.version}.tar && echo 'done (you can kill the ant task)'" |
278 |
| - password="${upload.password}" |
279 |
| - trust="true" /> |
280 |
| - </target> |
281 |
| - |
282 |
| - <!-- ========================================================== |
283 |
| - Make a 'current' symlink to the current version |
284 |
| - --> |
285 |
| - <target name="makeCurrentSymlink" |
286 |
| - description="Make a 'stable' symlink to the current version"> |
287 |
| - <!-- Check that all the properties used for archives upload are set --> |
288 |
| - <fail message="please set ${upload.username} in build.properties" unless="upload.username"/> |
289 |
| - <fail message="please set ${upload.password} in build.properties" unless="upload.password"/> |
290 |
| - <sshexec |
291 |
| - host="${upload.host}" |
292 |
| - username="${upload.username}" |
293 |
| - command="cd ${upload.remotedir} && rm -f current && ln -s ${phpcas.version} current && echo 'done (you can kill the ant task)'" |
294 |
| - password="${upload.password}" |
295 |
| - trust="true" /> |
296 |
| - <sshexec |
297 |
| - host="${upload.host}" |
298 |
| - username="${upload.username}" |
299 |
| - command="cd ${upload.remotedir} && rm -f current.tgz && ln -s ${phpcas.version}/CAS-${phpcas.version}.tgz current.tgz && echo 'done (you can kill the ant task)'" |
300 |
| - password="${upload.password}" |
301 |
| - trust="true" /> |
302 |
| - </target> |
303 | 249 |
|
304 | 250 | <!-- ==========================================================
|
305 | 251 | Push the release to the origin repository
|
|
0 commit comments