X-Git-Url: https://git-public.kairo.at/?p=themes.git;a=blobdiff_plain;f=origdiff;h=600a3aaf8920e01e761992bfb5061d0cb8114529;hp=49decf35d2497a175b09538e77ac03bbd41eaf00;hb=fd291cce9a40ba32a84e24bbce049544740810b5;hpb=40f781fea02837d2b8d95c003fb0bf6effebfacd diff --git a/origdiff b/origdiff index 49decf35..600a3aaf 100755 --- a/origdiff +++ b/origdiff @@ -4,50 +4,94 @@ RUN_DIR=$(pwd) cd $(dirname "$0") SCRIPT_DIR=$(pwd) -if [ -n "$1" ]; then - SRC_DATE="$1" - DST_DATE=`TZ=America/Los_Angeles date +%Y-%m-%d` +# ============ vars specific to the versions ============== - 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 +NAME_PRE=25 +NAME_POST=26 - 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 +TAG_PRE_COMM=BETA_25_END +TAG_POST_COMM=tip #BETA_26_END +TAG_PRE_MOZ=FIREFOX_25_0b12_RELEASE #FIREFOX_BETA_25_END +TAG_POST_MOZ=tip #FIREFOX_BETA_26_END +TAG_PRE_EXT=SEAMONKEY_2_22_RELEASE +TAG_POST_EXT=tip #SEAMONKEY_2_23_RELEASE - 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 +# ===================== process repos ===================== - 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 +REPO_LIST="COMM MOZ MOZB DOMI CZ" - 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 +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 -for repo in "COMM" "MOZ" "DOMI" "CZ"; do +HG_MOZ_DIR=/mnt/mozilla/hg/comm-beta/mozilla +MOZ_HG_OPTIONS= +MOZ_DIR="toolkit/themes/windows/ toolkit/themes/shared/" +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/ browser/themes/shared/" +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` + REPO_NAME=`basename $HG_URL`$NAME_EXTRA LOG_NAME=${!LOG_VAR} HTML_NAME=${LOG_NAME/.log/.html} echo "Writing $HTML_NAME..." @@ -58,7 +102,7 @@ for repo in "COMM" "MOZ" "DOMI" "CZ"; do echo " " >> $HTML_NAME echo " " >> $HTML_NAME echo "

$REPO_NAME Theme Changes

" >> $HTML_NAME - echo "

$SRC_DATE to $DST_DATE

" >> $HTML_NAME + echo "

$TAG_PRE to $TAG_POST

" >> $HTML_NAME echo "
" >> $HTML_NAME
   sed -e "s/&/\&/g" -e "s//\>/g" \
       -e "s|\(changeset: *[0-9]*\):\([0-9a-f]*\)|\1:\2|" \