source: firefox-esr/trunk/fuentes/update-firefox-esr.sh @ 621

Last change on this file since 621 was 621, checked in by jrpelegrina, 3 years ago

First release to xenial

  • Property svn:executable set to *
File size: 1.5 KB
Line 
1BASE_URL="https://download.mozilla.org/?product=firefox-esr-latest"
2
3ARQ="linux"
4ARQ64="linux64"
5FLANG="es-ES"
6
7F32_FILE="f32.tar.bz2"
8F64_FILE="f64.tar.bz2"
9
10SVN_32_DIR="firefox-esr-i386/"
11SVN_64_DIR="firefox-esr-amd64/"
12
13
14TMP_DIR=$(mktemp -d)
15cd $TMP_DIR
16
17
18### DOWNLOAD ###
19
20echo ""
21echo " * Downloading 32 bits version ..."
22
23URL=$BASE_URL"&os=${ARQ}&lang=${FLANG}"
24wget -O $F32_FILE "$URL" 1>/dev/null 2>/dev/null
25
26##
27
28### EXTRACT ###
29
30echo " * Extracting files ..."
31mkdir f32
32tar xfj $F32_FILE -C f32
33
34##
35
36### GET VERSION ###
37
38FIREFOX_VERSION=$(cat f32/firefox/application.ini | grep "^Version" | cut -d = -f2)
39echo " * Firefox i386 $FIREFOX_VERSION"
40
41##
42
43### DOWNLOAD ###
44
45echo ""
46echo " * Downloading 64 bits version ..."
47
48URL=$BASE_URL"&os=${ARQ64}&lang=${FLANG}"
49wget -O $F64_FILE "$URL" 1>/dev/null 2>/dev/null
50
51##
52
53### EXTRACT ###
54
55echo " * Extracting files ..."
56mkdir f64
57tar xfj $F64_FILE -C f64
58
59##
60
61### GET VERSION ###
62
63FIREFOX_VERSION=$(cat f64/firefox/application.ini | grep "^Version" | cut -d = -f2)
64echo " * Firefox amd64 $FIREFOX_VERSION"
65
66##
67
68### UPDATE FILES ###
69
70echo ""
71echo " * Updating files ..."
72
73cd - 1>/dev/null 2>/dev/null
74
75cp -r $TMP_DIR/f32/firefox/*  $SVN_32_DIR
76cp -r $TMP_DIR/f64/firefox/*  $SVN_64_DIR
77
78echo " * Updating changelog if necesary ..."
79cat debian/changelog | grep "$FIREFOX_VERSION+lliurex1" 1>/dev/null || dch -b --release-heuristic trusty -v "$FIREFOX_VERSION+lliurex1" "Updating version to $FIREFOX_VERSION"
80
81
82### CLEAN STEP ###
83
84echo " * Removing tmp files ..."
85rm -rf $TMP_DIR
86
87##
88
89echo ""
90svn st
91echo ""
92
93
94
95
96
Note: See TracBrowser for help on using the repository browser.