diff options
author | jzaefferer <joern.zaefferer@gmail.com> | 2010-03-30 13:11:22 +0200 |
---|---|---|
committer | jzaefferer <joern.zaefferer@gmail.com> | 2010-03-30 13:11:22 +0200 |
commit | 415ee934fa98eeb6773504af8207374dc64f4d5e (patch) | |
tree | 1680f8cd8e4541586f51d33db13f93178e16fa48 /build/build.xml | |
parent | b22109298fe4d8c7b8292bdaa30160262bcaac79 (diff) | |
download | jquery-ui-415ee934fa98eeb6773504af8207374dc64f4d5e.tar.gz jquery-ui-415ee934fa98eeb6773504af8207374dc64f4d5e.zip |
Build: MANIFEST file for Google CDN
Diffstat (limited to 'build/build.xml')
-rw-r--r-- | build/build.xml | 35 |
1 files changed, 15 insertions, 20 deletions
diff --git a/build/build.xml b/build/build.xml index 6dd66216e..913d13693 100644 --- a/build/build.xml +++ b/build/build.xml @@ -258,33 +258,28 @@ <echo message="All trailing spaces removed." /> </target> - <target name="checksums"> + <target name="googlecdn"> <delete dir="google" /> <mkdir dir="google" /> - <copy file="dist/jquery-ui-1.9pre/version.txt" todir="google" /> - <copy file="dist/jquery-ui-1.9pre/AUTHORS.txt" todir="google" /> - <copy file="dist/jquery-ui-1.9pre/GPL-LICENSE.txt" todir="google" /> - <checksum> - <fileset dir="google" /> - </checksum> - <concat destfile="google/MANIFEST"> - <fileset dir="google" includes="**/*.MD5" /> - </concat> - <!-- - <for param="file"> - <path><fileset dir="google" includes="**/" excludes="**/*.MD5" /></path> - <sequential> - <checksum file="@{file}" /> - </sequential> - </for> + <copy todir="google"> + <fileset dir=".." includes="AUTHORS.txt, GPL-LICENSE.txt, MIT-LICENSE.txt, version.txt" /> + </copy> + <copy todir="google/i18n"> + <fileset dir="${dist.dir}ui/i18n" /> + <fileset dir="${dist.dir}ui/minified/i18n" /> + </copy> + <copy todir="google/themes"> + <fileset dir="../themes" /> + </copy> <for param="file"> <path><fileset dir="google" includes="**/" excludes="**/*.MD5" /></path> <sequential> - <echo message="@{file}" /> - <concat><file file="@{file}.MD5" /></concat> + <propertyregex override="yes" property="relativepath" input="@{file}" regexp=".+?google[\\/](.+)$" replace="\1"/> + <propertyregex override="yes" property="relativepath" input="${relativepath}" regexp="\\" replace="/" global="true" /> + <checksum property="sum" file="@{file}" /> + <concat destfile="google/MANIFEST" append="yes" fixlastline="yes">${relativepath} ${sum}</concat> </sequential> </for> - --> </target> </project> |