VirtualBox

Changeset 83667 in vbox for trunk/tools


Ignore:
Timestamp:
Apr 10, 2020 1:02:38 PM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
137143
Message:

Forward-ported r137138 from 6.1: backport-commit.sh: multi-revision fixes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/bin/backport-commit.sh

    r83611 r83667  
    6767    done
    6868    echo "." >> "${MY_MSG_FILE}"
     69    echo ""  >> "${MY_MSG_FILE}"
    6970
    7071    # One bullet with the commit text.
     
    7273    do
    7374        echo -n "* r${MY_REV}: " >> "${MY_MSG_FILE}"
    74         if ! "${MY_SVN}" log "-r${MY_REV}" "${MY_TRUNK}" > "${MY_TMP_FILE}"; then
     75        if ! "${MY_SVN}" log "-r${MY_REV}" "${MY_TRUNK_DIR}" > "${MY_TMP_FILE}"; then
    7576            echo "error: failed to get log entry for revision ${MY_REV}"
    7677            exit 1;
     
    8182        fi
    8283    done
     84
     85    # This is a line ending hack for windows hosts.
     86    if    "${MY_SED}" -e 's/1/1/g' --output-text "${MY_TMP_FILE}" "${MY_MSG_FILE}"
     87       && "${MY_SED}" -e 's/1/1/g' --output-text "${MY_MSG_FILE}" "${MY_TMP_FILE}"; then
     88
     89    else
     90        echo "error: SED failed to clean up commit message line-endings."
     91        exit 1;
     92    fi
    8393fi
    8494"${MY_RM}" -f -- "${MY_TMP_FILE}"
     
    90100echo "*** Commit message:"
    91101"${MY_CAT}" "${MY_MSG_FILE}"
     102echo "*** end commit message ***"
    92103echo "***"
    93104IFS=`"${MY_PRINTF}" " \t\r\n"` # windows needs \r for proper 'read' operation.
     
    114125            ;;
    115126        *)
     127            echo
    116128            echo "Please answer 'y' or 'n'... (MY_ANSWER=${MY_ANSWER})"
    117129    esac
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette