| 39250:97716d47edac | 39251:c6a81a49ef65 |
|---|---|
| 15 make -f Makefile.mingw VERSION | 15 make -f Makefile.mingw VERSION |
| 16 cd - > /dev/null | 16 cd - > /dev/null |
| 17 fi | 17 fi |
| 18 | 18 |
| 19 STAGE_DIR=`readlink -f $PIDGIN_BASE/pidgin/win32/nsis/gtk_runtime_stage` | 19 STAGE_DIR=`readlink -f $PIDGIN_BASE/pidgin/win32/nsis/gtk_runtime_stage` |
| 20 CERT_PATH=`readlink -f $PIDGIN_BASE/pidgin/win32/nsis`/cacert.pem | |
| 21 #Subdirectory of $STAGE_DIR | 20 #Subdirectory of $STAGE_DIR |
| 22 INSTALL_DIR=Gtk | 21 INSTALL_DIR=Gtk |
| 23 SRC_INSTALL_DIR=src_install | 22 SRC_INSTALL_DIR=src_install |
| 24 CONTENTS_FILE=$INSTALL_DIR/CONTENTS | 23 CONTENTS_FILE=$INSTALL_DIR/CONTENTS |
| 25 PIDGIN_VERSION=$( < $PIDGIN_BASE/VERSION ) | 24 PIDGIN_VERSION=$( < $PIDGIN_BASE/VERSION ) |
| 43 echo "File exists" | 42 echo "File exists" |
| 44 exit 1 | 43 exit 1 |
| 45 fi | 44 fi |
| 46 failed=0 | 45 failed=0 |
| 47 wget -t 5 "$1" -O "$2" -o "wget.log" --retry-connrefused --waitretry=5 \ | 46 wget -t 5 "$1" -O "$2" -o "wget.log" --retry-connrefused --waitretry=5 \ |
| 48 --ca-certificate="$CERT_PATH" \ | |
| 49 || failed=1 | 47 || failed=1 |
| 50 if [ $failed != 0 ] ; then | 48 if [ $failed != 0 ] ; then |
| 51 if [ "$3" != "quiet" ] ; then | 49 if [ "$3" != "quiet" ] ; then |
| 52 echo "Download failed" | 50 echo "Download failed" |
| 53 cat "wget.log" | 51 cat "wget.log" |
| 57 return 1 | 55 return 1 |
| 58 fi | 56 fi |
| 59 rm "wget.log" | 57 rm "wget.log" |
| 60 return 0 | 58 return 0 |
| 61 } | 59 } |
| 62 | |
| 63 cat $PIDGIN_BASE/share/ca-certs/*.pem > "$CERT_PATH" | |
| 64 | 60 |
| 65 #Download the existing file (so that we distribute the exact same file for all releases with the same bundle version) | 61 #Download the existing file (so that we distribute the exact same file for all releases with the same bundle version) |
| 66 FILE="$ZIP_FILE" | 62 FILE="$ZIP_FILE" |
| 67 if [ ! -e "$FILE" ]; then | 63 if [ ! -e "$FILE" ]; then |
| 68 echo "Downloading the existing file" | 64 echo "Downloading the existing file" |
| 453 fi | 449 fi |
| 454 process_package "$VAR" | 450 process_package "$VAR" |
| 455 done | 451 done |
| 456 | 452 |
| 457 rm -rf $CPIO_DIR | 453 rm -rf $CPIO_DIR |
| 458 rm "$CERT_PATH" | |
| 459 | 454 |
| 460 #mv "${STAGE_DIR}/${INSTALL_DIR}/share/tcl8.5" "${STAGE_DIR}/${INSTALL_DIR}/lib/" | 455 #mv "${STAGE_DIR}/${INSTALL_DIR}/share/tcl8.5" "${STAGE_DIR}/${INSTALL_DIR}/lib/" |
| 461 rm "${STAGE_DIR}/${INSTALL_DIR}/lib/gstreamer-0.10/libfsmsnconference.dll" | 456 rm "${STAGE_DIR}/${INSTALL_DIR}/lib/gstreamer-0.10/libfsmsnconference.dll" |
| 462 rm "${STAGE_DIR}/${INSTALL_DIR}/lib/gstreamer-0.10/libgstgnomevfs.dll" | 457 rm "${STAGE_DIR}/${INSTALL_DIR}/lib/gstreamer-0.10/libgstgnomevfs.dll" |
| 463 | 458 |