File tree 1 file changed +17
-13
lines changed
1 file changed +17
-13
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
- rm -f include/build_timestamp.h
3
- git checkout include/build_timestamp.h
2
+ curbranch=` git branch | grep \* | cut -d ' ' -f 2`
4
3
5
- git checkout develop
6
- git pull
7
- git push
4
+ if [[ x " $curbranch " == x " master " || x " $curbranch " == x " develop" ]] ; then
5
+ rm -f include/build_timestamp.h
6
+ git checkout include/build_timestamp.h
8
7
9
- rm -f include/build_timestamp.h
10
- git checkout include/build_timestamp.h
8
+ git checkout develop
9
+ git pull
10
+ git push
11
11
12
- git checkout master
13
- git pull
14
- git push
12
+ rm -f include/build_timestamp.h
13
+ git checkout include/build_timestamp.h
15
14
16
- rm -f include/build_timestamp.h
17
- git checkout include/build_timestamp.h
15
+ git checkout master
16
+ git pull
17
+ git push
18
18
19
- git checkout master && git merge develop && git checkout develop && git merge master && git fetch --all && git push --all && make -j
19
+ rm -f include/build_timestamp.h
20
+ git checkout include/build_timestamp.h
21
+
22
+ git checkout master && git merge develop && git checkout develop && git merge master && git fetch --all && git push --all && make -j
23
+ fi
You can’t perform that action at this time.
0 commit comments