diff options
Diffstat (limited to 'bundles/org.eclipse.swt/buildSWT.xml')
-rw-r--r-- | bundles/org.eclipse.swt/buildSWT.xml | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/buildSWT.xml b/bundles/org.eclipse.swt/buildSWT.xml index 06e0fc57a1..4131fef9ec 100644 --- a/bundles/org.eclipse.swt/buildSWT.xml +++ b/bundles/org.eclipse.swt/buildSWT.xml @@ -478,7 +478,24 @@ <antcall target="new_build"/> </target> - <target name="new_build"> + <target name="check_build_changed" depends="get_tag" unless="build_changed"> + <!-- Check for changes --> + <exec dir="${repo.src}" executable="git" failonerror="false" outputproperty="src_diffs"> + <arg line="diff ${swt_tag}"/> + </exec> + <exec dir="${repo.bin}" executable="git" failonerror="false" outputproperty="bin_diffs"> + <arg line="diff ${swt_tag}"/> + </exec> + <condition property="source_changed"> + <or> + <length string="${src_diffs}" trim="true" when="greater" length="0"/> + <length string="${bin_diffs}" trim="true" when="greater" length="0"/> + </or> + </condition> + <echo>Has build changes: ${build_changed} checked against ${swt_tag}</echo> + </target> + + <target name="new_build" depends="check_build_changed" if="build_changed"> <!-- Update the version files --> <property name="increment_version_target" value="increment_version"/> <antcall target="${increment_version_target}"/> |