From 40f781fea02837d2b8d95c003fb0bf6effebfacd Mon Sep 17 00:00:00 2001 From: Robert Kaiser Date: Sun, 31 Jan 2010 20:06:08 +0100 Subject: [PATCH] add chatzilla diffing and unify repo handling even more --- origdiff | 40 +++++++++++++++++++++------------------- 1 file changed, 21 insertions(+), 19 deletions(-) diff --git a/origdiff b/origdiff index bb2eb650..49decf35 100755 --- a/origdiff +++ b/origdiff @@ -8,40 +8,42 @@ if [ -n "$1" ]; then SRC_DATE="$1" DST_DATE=`TZ=America/Los_Angeles date +%Y-%m-%d` - HG_COMM_DIR=/mnt/mozilla/hg/comm-central + HG_COMM_DIR=/mnt/mozilla/hg/comm-1.9.1 COMM_DIR=suite/themes/classic/ COMM_LOG=$RUN_DIR/themelog-suitedefault.$SRC_DATE.$DST_DATE.log - HG_MOZ_DIR=/mnt/mozilla/hg/comm-central/mozilla + HG_MOZ_DIR=/mnt/mozilla/hg/comm-1.9.1/mozilla MOZ_DIR=toolkit/themes/winstripe/ MOZ_LOG=$RUN_DIR/themelog-tkwinstripe.$SRC_DATE.$DST_DATE.log - HG_DOMI_DIR=/mnt/mozilla/hg/comm-central/mozilla/extensions/inspector + HG_DOMI_DIR=/mnt/mozilla/hg/comm-1.9.1/mozilla/extensions/inspector DOMI_DIR=resources/skin/classic/ DOMI_LOG=$RUN_DIR/themelog-domiclassic.$SRC_DATE.$DST_DATE.log - if [ ! -e $COMM_LOG ]; then - echo "Getting $COMM_LOG..." - cd $HG_COMM_DIR - hg log -d ">$SRC_DATE" $COMM_DIR > $COMM_LOG - fi - if [ ! -e $MOZ_LOG ]; then - echo "Getting $MOZ_LOG..." - cd $HG_MOZ_DIR - hg log -d ">$SRC_DATE" $MOZ_DIR > $MOZ_LOG - fi - if [ ! -e $DOMI_LOG ]; then - echo "Getting $DOMI_LOG..." - cd $HG_DOMI_DIR - hg log -d ">$SRC_DATE" $DOMI_DIR > $DOMI_LOG - fi + HG_CZ_DIR=/mnt/mozilla/hg/comm-1.9.1/mozilla/extensions/irc + CZ_DIR=xul/skin/ + CZ_LOG=$RUN_DIR/themelog-chatzilla.$SRC_DATE.$DST_DATE.log + + for repo in "COMM" "MOZ" "DOMI" "CZ"; do + HG_DIR_VAR="HG_${repo}_DIR" + HG_DIR=${!HG_DIR_VAR} + SKIN_DIR_VAR="${repo}_DIR" + SKIN_DIR=${!SKIN_DIR_VAR} + LOG_VAR="${repo}_LOG" + LOG_NAME=${!LOG_VAR} + if [ ! -e $LOG_NAME ]; then + echo "Getting $LOG_NAME..." + cd $HG_DIR + hg log -d ">$SRC_DATE" $SKIN_DIR > $LOG_NAME + fi + done cd $RUN_DIR else echo "You must specify a start date." exit 1 fi -for repo in "COMM" "MOZ" "DOMI"; do +for repo in "COMM" "MOZ" "DOMI" "CZ"; do HG_DIR_VAR="HG_${repo}_DIR" LOG_VAR="${repo}_LOG" HG_URL=`awk -F ' *= *' '/default *=/ { print $2 }' ${!HG_DIR_VAR}/.hg/hgrc` -- 2.43.0