Files shall be referenced to their actual version. Only that makes the links always valid
1.1 --- a/samples/build.xml Sat Nov 15 08:30:06 2008 +0100
1.2 +++ b/samples/build.xml Sat Nov 15 08:39:01 2008 +0100
1.3 @@ -35,6 +35,11 @@
1.4 <arg file="${samples.dir}/version.sh"/>
1.5 </exec>
1.6 </target>
1.7 + <target name="-revision" unless="revision">
1.8 + <exec dir="${samples.dir}" outputproperty="revision" executable="/bin/sh">
1.9 + <arg file="${samples.dir}/tip.sh"/>
1.10 + </exec>
1.11 + </target>
1.12
1.13 <target name="sources" depends="-version,clean">
1.14 <fail unless="version"/>
1.15 @@ -51,11 +56,13 @@
1.16 </zip>
1.17 </target>
1.18
1.19 - <target name="snippets">
1.20 + <target name="snippets" depends="-revision">
1.21 + <fail unless="revision"/>
1.22 +
1.23 <property name="snippets.dir" location="build/snippets"/>
1.24 <ant dir="../java/ant"/>
1.25 <taskdef name="grepcopy" classname="org.apidesign.infra.ant.GrepCopy" classpath="../java/ant/dist/apidesign-ant-tasks.jar"/>
1.26 - <grepcopy target="${snippets.dir}" baseurl="http://source.apidesign.org/hg/apidesign/file/tip/samples/">
1.27 + <grepcopy target="${snippets.dir}" baseurl="http://source.apidesign.org/hg/apidesign/file/${revision}/samples/">
1.28 <fileset dir=".">
1.29 <include name="**/*"/>
1.30 <exclude name="**/build/**/*"/>
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2.2 +++ b/samples/tip.sh Sat Nov 15 08:39:01 2008 +0100
2.3 @@ -0,0 +1,2 @@
2.4 +#!/bin/sh
2.5 +hg id | cut -c1-12