Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Added an example update script.

  • Loading branch information...
commit d2332fc3136d727a4cee1874cdfc435995e0ef71 1 parent 9c8da11
Fred Wenzel authored April 03, 2012

Showing 1 changed file with 36 additions and 0 deletions. Show diff stats Hide diff stats

  1. 36  update.sh
36  update.sh
... ...
@@ -0,0 +1,36 @@
  1
+#!/bin/bash
  2
+# Example update script. Adjust at will.
  3
+
  4
+#set -x
  5
+
  6
+function checkretval()
  7
+{
  8
+    retval=$?
  9
+        if [[ $retval -gt 0 ]]
  10
+        then
  11
+                $error "Error!!! Exit status of the last command was $retval"
  12
+                exit $retval
  13
+        fi
  14
+}
  15
+
  16
+CODE_DIR="/data/fx36start"
  17
+WEB_DIR="/data/startpage"
  18
+
  19
+echo -e "Updating code..."
  20
+pushd $CODE_DIR
  21
+
  22
+git pull
  23
+
  24
+if [ ! -d "locale" ]; then
  25
+    svn checkout https://svn.mozilla.org/projects/l10n-misc/trunk/fx36start/locale/
  26
+fi
  27
+pushd locale
  28
+svn up
  29
+popd
  30
+
  31
+./generate.py --output-dir $WEB_DIR -f --nowarn
  32
+checkretval
  33
+
  34
+popd
  35
+
  36
+/data/startpage-dev/deploy -n start-dev.allizom.org

0 notes on commit d2332fc

Please sign in to comment.
Something went wrong with that request. Please try again.