mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 22:37:03 +00:00
[12630] Remove VS2008 support and general cleanup
This commit is contained in:
parent
e390c306dd
commit
1fa3b614ed
68 changed files with 991 additions and 19141 deletions
38
contrib/backporting/update-commit-log.sh
Normal file
38
contrib/backporting/update-commit-log.sh
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Simple helper script to create backport lists
|
||||
|
||||
# By user defined (remote/branch to the to-be-backported history)
|
||||
COMPARE_PATH="wotlk/master"
|
||||
OUTPUT_FILE="contrib/backporting/todo_wotlk_commits.log"
|
||||
|
||||
# By user defined (text format)
|
||||
#SMALL_FORMAT="wotlk: %h * %an (committer %cn)"
|
||||
#FULL_FORMAT="${SMALL_FORMAT}: %s"
|
||||
#FOOTER_FORMAT="FILE LAST UPDATED BASED ON... ${SMALL_FORMAT}"
|
||||
|
||||
# By user defined (Textile markup based wiki format)
|
||||
SMALL_FORMAT="\"three\":http://github.com/mangos/mangosthree/commit/%h: %h * %an (committer %cn)"
|
||||
FULL_FORMAT="</code></pre>%n* ${SMALL_FORMAT}<pre><code>%s"
|
||||
FOOTER_FORMAT="</code></pre>FILE LAST UPDATED BASED ON... ${SMALL_FORMAT}"
|
||||
|
||||
# param1 must be the commit hash of last backported commit (of original commit)
|
||||
if [ "$#" != "1" ]
|
||||
then
|
||||
echo "You must provide the last commit's hash of the \"$OUTPUT_FILE\" file"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# are we in git root dir?
|
||||
if [[ ! -d .git/ ]]; then
|
||||
echo "ERROR: This script is expected to be called from repository root directory"
|
||||
echo "Try: contrib/backporting/update-commit-log.sh"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
HASH=$1
|
||||
|
||||
git log $HASH..$COMPARE_PATH --pretty=format:"${FULL_FORMAT}" --reverse --dirstat >> $OUTPUT_FILE
|
||||
echo "" >> $OUTPUT_FILE
|
||||
echo "$(git log -1 --pretty="${FOOTER_FORMAT}" $COMPARE_PATH)" >> $OUTPUT_FILE
|
||||
echo "" >> $OUTPUT_FILE
|
||||
Loading…
Add table
Add a link
Reference in a new issue