X-Git-Url: https://git-public.kairo.at/?p=themes.git;a=blobdiff_plain;f=origdiff;h=a2922c553160e70f9394879f82991e22c85ff1fd;hp=f70e9d1c83959bada6a79f99cda869b88c72f8ed;hb=e26e19e6c44b1bf357067b86f7606df982ab76f7;hpb=f32e4f112d10222155292db5d6e4fd3031264ac4 diff --git a/origdiff b/origdiff index f70e9d1c..a2922c55 100755 --- a/origdiff +++ b/origdiff @@ -4,65 +4,89 @@ RUN_DIR=$(pwd) cd $(dirname "$0") SCRIPT_DIR=$(pwd) -REPO_LIST="COMM MOZ MOZB DOMI CZ" +# ============ vars specific to the versions ============== + +NAME_PRE=17 +NAME_POST=18 + +TAG_PRE_COMM=BETA_17_END +TAG_POST_COMM=tip #BETA_18_END +TAG_PRE_MOZ=FIREFOX_BETA_17_END +TAG_POST_MOZ=tip #FIREFOX_BETA_18_END +TAG_PRE_EXT=SEAMONKEY_2_14_RELEASE +TAG_POST_EXT=tip #SEAMONKEY_2_15_RELEASE -if [ -n "$1" ]; then - SRC_DATE="$1" - DST_DATE=`TZ=America/Los_Angeles date +%Y-%m-%d` +# ===================== process repos ===================== + +REPO_LIST="COMM MOZ MOZB DOMI CZ" - HG_COMM_DIR=/mnt/mozilla/hg/comm-central - COMM_HG_OPTIONS= - COMM_DIR=suite/themes/classic/ - COMM_NAME_EXTRA=" (suite)" - COMM_LOG=$RUN_DIR/themelog-suitedefault.$SRC_DATE.$DST_DATE.log +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-central/mozilla - MOZ_HG_OPTIONS= - MOZ_DIR=toolkit/themes/winstripe/ - MOZ_NAME_EXTRA=" (toolkit)" - MOZ_LOG=$RUN_DIR/themelog-tkwinstripe.$SRC_DATE.$DST_DATE.log +HG_MOZ_DIR=/mnt/mozilla/hg/comm-beta/mozilla +MOZ_HG_OPTIONS= +MOZ_DIR=toolkit/themes/winstripe/ +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-central/mozilla - MOZB_HG_OPTIONS= - MOZB_DIR=browser/themes/winstripe/ - MOZB_NAME_EXTRA=" (browser)" - MOZB_LOG=$RUN_DIR/themelog-browserwin.$SRC_DATE.$DST_DATE.log +HG_MOZB_DIR=/mnt/mozilla/hg/comm-beta/mozilla +MOZB_HG_OPTIONS= +MOZB_DIR=browser/themes/winstripe/ +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-central/mozilla/extensions/inspector - DOMI_HG_OPTIONS= - DOMI_DIR=resources/skin/classic/ - DOMI_NAME_EXTRA= - DOMI_LOG=$RUN_DIR/themelog-domiclassic.$SRC_DATE.$DST_DATE.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-central/mozilla/extensions/irc - CZ_HG_OPTIONS= - CZ_DIR=xul/skin/ - CZ_NAME_EXTRA= - CZ_LOG=$RUN_DIR/themelog-chatzilla.$SRC_DATE.$DST_DATE.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} - 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 -d ">$SRC_DATE" $HG_OPTIONS $SKIN_DIR > $LOG_NAME - fi - done - cd $RUN_DIR -else - echo "You must specify a start date." - exit 1 -fi +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} @@ -78,7 +102,7 @@ for repo in $REPO_LIST; do 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|" \