@@ -12,17 +12,18 @@ expecterror(){ set +e; "$@"; set +e; }
1212diffwork (){
1313 set +e
1414 find patch/src -type f | while read f; do
15- diff -Nau --brief $f ${f/ patch/ milkytracker} | grep -q differ && {
15+ diff -NauEZb --brief $f ${f/ patch/ milkytracker} | grep -q differ && {
1616 echo $f
17+ diff -NauEZb $f ${f/ patch/ milkytracker}
1718 test " $1 " == " --copy" && cp ${f/ patch/ milkytracker} $f ;
1819 }
1920 done
20- test -z $1 && { echo " add '--copy' to actually copy to patch-dir" ; }
21+ test -z $1 && { echo " add '--copy' to actually copy to patch-dir (or use VERBOSE= ./builder diffwork for more info) " ; }
2122}
2223
2324pull (){
2425 echo " \nPULL: pulling+merging branches from coderofsalvation-repo"
25- test -d milkytracker && rm -rf milkytracker
26+ test -d milkytracker && { echo " please remove (backup) milkytracker directory " ; exit 1 ; }
2627 git clone https://github.com/milkytracker/MilkyTracker milkytracker
2728 cd milkytracker;
2829 git remote | grep coderofsalvation || {
@@ -31,8 +32,8 @@ pull(){
3132 }
3233 git fetch coderofsalvation
3334 test -f CMakeLists.txt && git reset $UPSTREAM_MILKYTRACKER_COMMIT --hard
34- git config --
global user.email
" [email protected] " 35- git config --global user.name " ci-appveyor"
35+ git config --
local user.email
" [email protected] " 36+ git config --local user.name " ci-appveyor"
3637 git checkout master
3738 git reset $UPSTREAM_MILKYTRACKER_COMMIT --hard
3839 # copy this for creating diffpatch later
@@ -53,6 +54,7 @@ merge(){
5354
5455 cd milkytracker
5556 # runverbose git merge --no-edit coderofsalvation/feat/keep-open-filedialog
57+ runverbose git merge --no-edit coderofsalvation/bugfix/machinegun
5658 runverbose git merge --no-edit coderofsalvation/bugfix/sustain-keyjazz-note-instead-of-retriggering
5759 runverbose git merge --no-edit coderofsalvation/feat/sample-editor-scaling-compress
5860 runverbose git merge --no-edit coderofsalvation/chore/copy-paste-sample-respect-relative-notenumber
@@ -85,7 +87,7 @@ merge(){
8587patch (){
8688
8789 create (){
88- pull && merge
90+ # pull && merge
8991 echo " \nPATCH: patching"
9092 cd patch
9193 find . -type f | while read file; do
@@ -158,6 +160,6 @@ all(){
158160 pull && patch && build
159161}
160162
161- test -z " $1 " && all
163+ # test -z "$1" && all
162164test -z " $1 " || " $@ "
163165
0 commit comments