update diff script for rapid release and update both themes to the state of SeaMonkey...
[themes.git] / origdiff2
1 #!/bin/sh
2
3 RUN_DIR=$(pwd)
4 cd $(dirname "$0")
5 SCRIPT_DIR=$(pwd)
6
7 # ============ vars specific to the versions ==============
8
9 NAME_PRE=2
10 NAME_POST=5
11
12 TAG_PRE_COMM=COMM_2_0_BASE
13 TAG_POST_COMM=BETA_5_END
14 TAG_PRE_MOZ=GECKO_2_0_BASE
15 TAG_POST_MOZ=FIREFOX_BETA_5_END
16 TAG_PRE_EXT=SEAMONKEY_2_1_RELEASE
17 TAG_POST_EXT=SEAMONKEY_2_2_RELEASE
18
19 # ===================== process repos =====================
20
21 REPO_LIST="COMM MOZ MOZB DOMI CZ"
22
23 HG_COMM_DIR=/mnt/mozilla/hg/comm-beta
24 COMM_DIR=suite/themes/classic/
25 COMM_TAG_PRE=$TAG_PRE_COMM
26 COMM_TAG_POST=$TAG_POST_COMM
27 COMM_OUT=$RUN_DIR/theme-suitedefault.$NAME_PRE-$NAME_POST.diff
28
29 HG_MOZ_DIR=/mnt/mozilla/hg/comm-beta/mozilla
30 MOZ_DIR=toolkit/themes/winstripe/
31 MOZ_TAG_PRE=$TAG_PRE_MOZ
32 MOZ_TAG_POST=$TAG_POST_MOZ
33 MOZ_OUT=$RUN_DIR/theme-toolkitwin.$NAME_PRE-$NAME_POST.diff
34
35 HG_MOZB_DIR=/mnt/mozilla/hg/comm-beta/mozilla
36 MOZB_DIR=browser/themes/winstripe/
37 MOZB_TAG_PRE=$TAG_PRE_MOZ
38 MOZB_TAG_POST=$TAG_POST_MOZ
39 MOZB_OUT=$RUN_DIR/theme-browserwin.$NAME_PRE-$NAME_POST.diff
40
41 HG_DOMI_DIR=/mnt/mozilla/hg/comm-beta/mozilla/extensions/inspector
42 DOMI_DIR=resources/skin/classic/
43 DOMI_TAG_PRE=$TAG_PRE_EXT
44 DOMI_TAG_POST=$TAG_POST_EXT
45 DOMI_OUT=$RUN_DIR/theme-domiclassic.$NAME_PRE-$NAME_POST.diff
46
47 HG_CZ_DIR=/mnt/mozilla/hg/comm-beta/mozilla/extensions/irc
48 CZ_DIR=xul/skin/
49 CZ_TAG_PRE=$TAG_PRE_EXT
50 CZ_TAG_POST=$TAG_POST_EXT
51 CZ_OUT=$RUN_DIR/theme-chatzilla.$NAME_PRE-$NAME_POST.diff
52
53 for repo in $REPO_LIST; do
54   HG_DIR_VAR="HG_${repo}_DIR"
55   HG_DIR=${!HG_DIR_VAR}
56   SKIN_DIR_VAR="${repo}_DIR"
57   SKIN_DIR=${!SKIN_DIR_VAR}
58   TAG_PRE_VAR="${repo}_TAG_PRE"
59   TAG_PRE=${!TAG_PRE_VAR}
60   TAG_POST_VAR="${repo}_TAG_POST"
61   TAG_POST=${!TAG_POST_VAR}
62   OUT_VAR="${repo}_OUT"
63   OUT_NAME=${!OUT_VAR}
64   if [ ! -e $OUT_NAME ]; then
65     echo "Getting $OUT_NAME..."
66     cd $HG_DIR
67     LC_ALL=C hg diff -r $TAG_PRE -r $TAG_POST $SKIN_DIR > $OUT_NAME
68   fi
69 done
70 cd $RUN_DIR
71
72 echo "done."