Some time ago, I wrote a couple of Bash scripts to automate downloading
Firefox and do related processing. The download one follows. It pulls
the files from "ftp.mozilla.org/pub/mozilla.org/firefox/releases/" and
assumes US English. It also renames the files to get rid of embedded
spaces and generally clean up the names.

-----------------------------------------------------------------------

#!/bin/bash

  if [ "$1" == '' ] ; then
    echo "Usage is: $0 ESR-version-number"
    exit
  fi


  VERSION="$1"

# E.g.
# wget -O ~/Downloads/Mozilla-ESR/Firefox/FF.exe \
#   
http://ftp.mozilla.org/pub/mozilla.org/firefox/releases/17.0.6esr/win32/en-US/Firefox%20Setup%2017.0.6esr.exe

  DIR='/home/ffguy/Downloads/Mozilla-ESR/Firefox'

  BASE='http://ftp.mozilla.org/pub/firefox/releases'
  URL="$BASE/${VERSION}esr"

  R32="linux-i686/en-US"
  R64="linux-x86_64/en-US"
 RW32="win32/en-US"
 RW64="win64/en-US"

  echo ''
  echo Base URL = $URL
  echo Target   = $DIR
  echo Press Enter if Base and Target are OK
  read JUNK


  S32="$R32/firefox-${VERSION}esr.tar.bz2"
  S64="$R64/firefox-${VERSION}esr.tar.bz2"
 SW32="$RW32/Firefox%20Setup%20${VERSION}esr.exe"
 SW64="$RW64/Firefox%20Setup%20${VERSION}esr.exe"

  T32="firefox-$VERSION-esr-32.tar.bz2"
  T64="firefox-$VERSION-esr-64.tar.bz2"
 TW32="Firefox-Setup-$VERSION-esr-32.exe"
 TW64="Firefox-Setup-$VERSION-esr-64.exe"


# echo "Downloading  $URL/SHA512SUMS  to  $DIR/SHA512SUMS-FF-$VERSION-esr.txt"
  echo "/usr/bin/wget -O  $DIR/SHA512SUMS-FF-$VERSION-esr.txt     
$URL/SHA512SUMS"
        /usr/bin/wget -O "$DIR/SHA512SUMS-FF-$VERSION-esr.txt"   
"$URL/SHA512SUMS"
  echo ''


# echo "Downloading  $URL/SHA512SUMS.asc  to  
$DIR/SHA512SUMS-FF-$VERSION-esr.txt.asc"
  echo  "/usr/bin/wget -O   $DIR/SHA512SUMS-FF-$VERSION-esr.txt.asc     
$URL/SHA512SUMS.asc" 
         /usr/bin/wget -O  "$DIR/SHA512SUMS-FF-$VERSION-esr.txt.asc"   
"$URL/SHA512SUMS.asc" 
  echo ''


# echo "Downloading  $URL/$S64 to  $DIR/$T64"
  echo "/usr/bin/wget -v -O  $DIR/$T64   $URL/$S64"
        /usr/bin/wget -v -O "$DIR/$T64" "$URL/$S64"
  echo ''


# echo "Downloading  $URL/$S32 to  $DIR/$T32"
  echo "/usr/bin/wget -v -O  $DIR/$T32   $URL/$S32"
        /usr/bin/wget -v -O "$DIR/$T32" "$URL/$S32"
  echo ''


# echo "Downloading  $URL/$SW32 to  $DIR/$TW32"
  echo "/usr/bin/wget -v -O  $DIR/$TW32   $URL/$SW32"
        /usr/bin/wget -v -O "$DIR/$TW32" "$URL/$SW32"
  echo ''


# echo "Downloading  $URL/$SW64 to  $DIR/$TW64"
  echo "/usr/bin/wget -v -O  $DIR/$TW64   $URL/$SW64"
        /usr/bin/wget -v -O "$DIR/$TW64" "$URL/$SW64"
  echo ''

  exit

-----------------------------------------------------------------------

On Tue, 17 May 2016 11:01:29 +0200
[email protected] wrote:

> > > I thought those downloads are for administrators to use them for
> > > intranet distribution. How would a dependency on the OS used to 
> download
> > > make sense?
> > 
> > The best option is now to download from
> > https://archive.mozilla.org/pub/firefox/releases/
> > https://archive.mozilla.org/pub/thunderbird/releases/
> > 
> > Mozilla always told that we should not do this, but we have no
> > choice, because the "correct" way does not work any more.
> > 
> > The only caveat is that we should first check whether the version
> > is also already mentioned on the web pages, before otherwise the
> > files in archive can get last-minute bugfixes without notice, and
> > without modifying the version number.
> 
> It's really hard to find polite words for this mess.
> 
> So there is actually no reliable way to get a stable released Firefox 
> build.
> 
> * The website serves you whatever it feels like (or nothing at all)
> * The FTP/HTTP archive may or may not contain unmarked alphas/betas
> 
> So i need to paste every link into wget now? And what am I supposed
> to get then?
> 
> Best Regards
>  Heiko
_______________________________________________
Enterprise mailing list
[email protected]
https://mail.mozilla.org/listinfo/enterprise

To unsubscribe from this list, please visit 
https://mail.mozilla.org/listinfo/enterprise or send an email to 
[email protected] with a subject of "unsubscribe"

Reply via email to