summaryrefslogtreecommitdiff
path: root/fetch_tarballs.sh
diff options
context:
space:
mode:
authorAndre Fischer <af@apache.org>2011-12-14 09:44:05 +0000
committerAndre Fischer <af@apache.org>2011-12-14 09:44:05 +0000
commit1431cf5e3f152927c08f490b3fa31bd94bcf1032 (patch)
tree7f20f784e0a36e55b6cd2f37aa29cad5c45090d5 /fetch_tarballs.sh
parent2cdb6723a0bfcf5533e3cae192f2eac33ceceb7f (diff)
Fixed build breaker: epm archive was not renamed (anymore) after download and could not be built.
Diffstat (limited to 'fetch_tarballs.sh')
-rwxr-xr-xfetch_tarballs.sh14
1 files changed, 11 insertions, 3 deletions
diff --git a/fetch_tarballs.sh b/fetch_tarballs.sh
index ff7b95ae16d0..9ad4a3a11d8b 100755
--- a/fetch_tarballs.sh
+++ b/fetch_tarballs.sh
@@ -227,12 +227,20 @@ if [ -n "$DMAKE_URL" -a ! -x "$SOLARENV/$OUTPATH/bin/dmake$EXEEXT" ]; then
download $DMAKE_URL
fi
-# Special handling of epm
-if [ -n "$EPM_URL" -a ! -x "$SOLARENV/$OUTPATH/bin/epm$EXEEXT" ]; then
+# Special handling of epm-3.7
+# Basically just a download of the epm archive.
+# When its name contains "-source" than that part is removed.
+epm_archive_tail=`echo $(basename $EPM_URL) | sed 's/-source//'`
+epm_archive_name=$(find "$TARFILE_LOCATION" -type f -name "*-$epm_archive_tail")
+if [ -n "$EPM_URL" -a ! -x "$SOLARENV/$OUTPATH/bin/epm$EXEEXT" -a -z "$epm_archive_name" ]; then
download $EPM_URL
+ archive_name=$(find "$TARFILE_LOCATION" -type f -name "*-epm-3.7-source*")
+ if [ -n "$archive_name" ]; then
+ epm_archive_name=`echo $archive_name | sed 's/-source//'`
+ mv "$archive_name" "$epm_archive_name"
+ fi
fi
-
if [ ! -z "$failed" ]; then
echo
echo ERROR: failed on: