diff --git a/releng.wtpbuilder/one_time_use_scripts/fixzips3.sh b/releng.wtpbuilder/one_time_use_scripts/fixzips3.sh new file mode 100644 index 0000000000000000000000000000000000000000..7331384da45346c4214bee2cf16d35b81b68fb1c --- /dev/null +++ b/releng.wtpbuilder/one_time_use_scripts/fixzips3.sh @@ -0,0 +1,17 @@ +mv /shared/webtools/committers/wtp-R3.0-R/20080616152118/R-3.0-20080616152118/wtp-jpt-R-3.0-20080616152118.zip /shared/webtools/committers/wtp-R3.0-R/20080616152118/R-3.0-20080616152118/wtp-jpt-R-3.0-20080616152118ORIG.zip +mv /shared/webtools/committers/wtp-R3.0-R/20080616152118/R-3.0-20080616152118/wtp-noop-R-3.0-20080616152118.zip /shared/webtools/committers/wtp-R3.0-R/20080616152118/R-3.0-20080616152118/wtp-noop-R-3.0-20080616152118ORIG.zip +mv /shared/webtools/committers/wtp-R3.0-R/20080616152118/R-3.0-20080616152118/wtp-R-3.0-20080616152118.zip /shared/webtools/committers/wtp-R3.0-R/20080616152118/R-3.0-20080616152118/wtp-R-3.0-20080616152118ORIG.zip + +mv /shared/webtools/committers/wtp-R3.0-R/20080616152118/R-3.0-20080616152118/checksum/wtp-jpt-R-3.0-20080616152118.zip.md5 /shared/webtools/committers/wtp-R3.0-R/20080616152118/R-3.0-20080616152118/checksum/wtp-jpt-R-3.0-20080616152118ORIG.zip.md5 +mv /shared/webtools/committers/wtp-R3.0-R/20080616152118/R-3.0-20080616152118/checksum/wtp-noop-R-3.0-20080616152118.zip.md5 /shared/webtools/committers/wtp-R3.0-R/20080616152118/R-3.0-20080616152118/checksum/wtp-noop-R-3.0-20080616152118ORIG.zip.md5 +mv /shared/webtools/committers/wtp-R3.0-R/20080616152118/R-3.0-20080616152118/checksum/wtp-R-3.0-20080616152118.zip.md5 /shared/webtools/committers/wtp-R3.0-R/20080616152118/R-3.0-20080616152118/checksum/wtp-R-3.0-20080616152118ORIG.zip.md5 + +mv /shared/webtools/committers/wtp-R3.0-R/20080616152118/R-3.0-20080616152118/checksum/wtp-jpt-R-3.0-20080616152118.zip.md5antformat /shared/webtools/committers/wtp-R3.0-R/20080616152118/R-3.0-20080616152118/checksum/wtp-jpt-R-3.0-20080616152118ORIG.zip.md5antformat +mv /shared/webtools/committers/wtp-R3.0-R/20080616152118/R-3.0-20080616152118/checksum/wtp-noop-R-3.0-20080616152118.zip.md5antformat /shared/webtools/committers/wtp-R3.0-R/20080616152118/R-3.0-20080616152118/checksum/wtp-noop-R-3.0-20080616152118ORIG.zip.md5antformat +mv /shared/webtools/committers/wtp-R3.0-R/20080616152118/R-3.0-20080616152118/checksum/wtp-R-3.0-20080616152118.zip.md5antformat /shared/webtools/committers/wtp-R3.0-R/20080616152118/R-3.0-20080616152118/checksum/wtp-R-3.0-20080616152118ORIG.zip.md5antformat + +fromString="20080616152118" +toString="20080616152118ORIG" +replaceCommand="s!${fromString}!${toString}!g" + +perl -w -pi -e ${replaceCommand} /shared/webtools/committers/wtp-R3.0-R/20080616152118/R-3.0-20080616152118/checksum/*.md5 diff --git a/releng.wtpbuilder/one_time_use_scripts/fixzips3.xml b/releng.wtpbuilder/one_time_use_scripts/fixzips3.xml new file mode 100644 index 0000000000000000000000000000000000000000..6e83b519413c1aac4ed4adb148af27203f5ae36f --- /dev/null +++ b/releng.wtpbuilder/one_time_use_scripts/fixzips3.xml @@ -0,0 +1,79 @@ +<project + default="fixzips" + basedir="."> + <target + name="fixzips"> + <property + name="buildDirectory" + value="/shared/webtools/committers/wtp-R3.0-R/20080616152118"/> + <property + name="buildLabel" + value="R-3.0-20080616152118"/> + <antcall + target="fixzip"> + <param + name="newarchiveName" + value="wtp-jpt-R-3.0-20080616152118a.zip"/> + <param + name="archiveName" + value="wtp-jpt-R-3.0-20080616152118ORIG.zip"/> + </antcall> + <antcall + target="fixzip"> + <param + name="newarchiveName" + value="wtp-noop-R-3.0-20080616152118a.zip"/> + <param + name="archiveName" + value="wtp-noop-R-3.0-20080616152118ORIG.zip"/> + </antcall> + <antcall + target="fixzip"> + <param + name="newarchiveName" + value="wtp-R-3.0-20080616152118a.zip"/> + <param + name="archiveName" + value="wtp-R-3.0-20080616152118ORIG.zip"/> + </antcall> + </target> + <target + name="fixzip"> + <zip + destfile="${buildDirectory}/${buildLabel}/${newarchiveName}"> + <zipfileset + src="${buildDirectory}/${buildLabel}/${archiveName}" + excludes="eclipse/features/org.eclipse.jpt_2*/**"/> + </zip> + <antcall + target="createChecksums"> + <param + name="archiveName" + value="${newarchiveName}"/> + </antcall> + </target> + <target + name="createChecksums"> + <!-- + This createChecksums task creates two files, for use in two + contexts. a. an x.md5 file, that has the name of the file in + the contents. This is good for some "third party" + executables, like md5summ, that expects the name in the + file. b. since ant does not deal well with md5 files with + anything in them other than the checksum, we provide same + thing in a file with an md5antformat extension, that has + only the checksum. + --> + <mkdir + dir="${buildDirectory}/${buildLabel}/checksum"/> + <checksum + file="${buildDirectory}/${buildLabel}/${archiveName}" + property="md5"/> + <echo + message="${md5} *${archiveName}" + file="${buildDirectory}/${buildLabel}/checksum/${archiveName}.md5"/> + <echo + message="${md5}" + file="${buildDirectory}/${buildLabel}/checksum/${archiveName}.md5antformat"/> + </target> +</project> \ No newline at end of file