#!/bin/sh RUN_DIR=$(pwd) cd $(dirname "$0") SCRIPT_DIR=$(pwd) # ============ vars specific to the versions ============== NAME_PRE=22 NAME_POST=23 TAG_PRE_COMM=BETA_22_END TAG_POST_COMM=tip #BETA_23_END TAG_PRE_MOZ=FIREFOX_BETA_22_END TAG_POST_MOZ=tip #FIREFOX_BETA_23_END TAG_PRE_EXT=SEAMONKEY_2_19b2_RELEASE #SEAMONKEY_2_19_RELEASE TAG_POST_EXT=tip #SEAMONKEY_2_20_RELEASE # ===================== process repos ===================== REPO_LIST="COMM MOZ MOZB DOMI CZ" HG_COMM_DIR=/mnt/mozilla/hg/comm-beta COMM_HG_OPTIONS= COMM_DIR=suite/themes/classic/ COMM_TAG_PRE=$TAG_PRE_COMM COMM_TAG_POST=$TAG_POST_COMM COMM_NAME_EXTRA=" (suite)" COMM_LOG=$RUN_DIR/theme-suitedefault.$NAME_PRE-$NAME_POST.log HG_MOZ_DIR=/mnt/mozilla/hg/comm-beta/mozilla MOZ_HG_OPTIONS= MOZ_DIR=toolkit/themes/windows/ MOZ_TAG_PRE=$TAG_PRE_MOZ MOZ_TAG_POST=$TAG_POST_MOZ MOZ_NAME_EXTRA=" (toolkit)" MOZ_LOG=$RUN_DIR/theme-toolkitwin.$NAME_PRE-$NAME_POST.log HG_MOZB_DIR=/mnt/mozilla/hg/comm-beta/mozilla MOZB_HG_OPTIONS= MOZB_DIR=browser/themes/windows/ MOZB_TAG_PRE=$TAG_PRE_MOZ MOZB_TAG_POST=$TAG_POST_MOZ MOZB_NAME_EXTRA=" (browser)" MOZB_LOG=$RUN_DIR/theme-browserwin.$NAME_PRE-$NAME_POST.log HG_DOMI_DIR=/mnt/mozilla/hg/comm-beta/mozilla/extensions/inspector DOMI_HG_OPTIONS= DOMI_DIR=resources/skin/classic/ DOMI_TAG_PRE=$TAG_PRE_EXT DOMI_TAG_POST=$TAG_POST_EXT DOMI_NAME_EXTRA= DOMI_LOG=$RUN_DIR/theme-domiclassic.$NAME_PRE-$NAME_POST.log HG_CZ_DIR=/mnt/mozilla/hg/comm-beta/mozilla/extensions/irc CZ_HG_OPTIONS= CZ_DIR=xul/skin/ CZ_TAG_PRE=$TAG_PRE_EXT CZ_TAG_POST=$TAG_POST_EXT CZ_NAME_EXTRA= CZ_LOG=$RUN_DIR/theme-chatzilla.$NAME_PRE-$NAME_POST.log for repo in $REPO_LIST; do HG_DIR_VAR="HG_${repo}_DIR" HG_DIR=${!HG_DIR_VAR} HG_OPTIONS_VAR="${repo}_HG_OPTIONS" HG_OPTIONS=${!HG_OPTIONS_VAR} SKIN_DIR_VAR="${repo}_DIR" SKIN_DIR=${!SKIN_DIR_VAR} TAG_PRE_VAR="${repo}_TAG_PRE" TAG_PRE=${!TAG_PRE_VAR} TAG_POST_VAR="${repo}_TAG_POST" TAG_POST=${!TAG_POST_VAR} LOG_VAR="${repo}_LOG" LOG_NAME=${!LOG_VAR} if [ ! -e $LOG_NAME ]; then echo "Getting $LOG_NAME..." cd $HG_DIR LC_ALL=C hg log -r $TAG_PRE:$TAG_POST $HG_OPTIONS $SKIN_DIR > $LOG_NAME fi done cd $RUN_DIR for repo in $REPO_LIST; do HG_DIR_VAR="HG_${repo}_DIR" TAG_PRE_VAR="${repo}_TAG_PRE" TAG_PRE=${!TAG_PRE_VAR} TAG_POST_VAR="${repo}_TAG_POST" TAG_POST=${!TAG_POST_VAR} LOG_VAR="${repo}_LOG" NAME_EXTRA_VAR="${repo}_NAME_EXTRA" NAME_EXTRA=${!NAME_EXTRA_VAR} HG_URL=`awk -F ' *= *' '/default *=/ { print $2 }' ${!HG_DIR_VAR}/.hg/hgrc` REPO_NAME=`basename $HG_URL`$NAME_EXTRA LOG_NAME=${!LOG_VAR} HTML_NAME=${LOG_NAME/.log/.html} echo "Writing $HTML_NAME..." echo '' > $HTML_NAME echo "" >> $HTML_NAME echo "
" >> $HTML_NAME echo "" >> $HTML_NAME sed -e "s/&/\&/g" -e "s/\</g" -e "s/>/\>/g" \ -e "s|\(changeset: *[0-9]*\):\([0-9a-f]*\)|\1:\2|" \ $LOG_NAME >> $HTML_NAME echo "" >> $HTML_NAME echo " " >> $HTML_NAME echo "" >> $HTML_NAME done echo "done."