-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathrun_after_deploy_merge.sh
executable file
·39 lines (32 loc) · 1.86 KB
/
run_after_deploy_merge.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/bin/bash
SBVERSION=$(git rev-parse --abbrev-ref HEAD)
SBPATH="SeaBreeze/os-support/windows"
echo "Patching vc9 compatibility"
git am --ignore-whitespace --signoff 0001-vc9-if-false-is-incompatible.-Fatal-Error-C1017.patch
git am --ignore-whitespace --signoff 0002-vc9-vector.data-not-supported.patch
git am --ignore-whitespace --signoff 0003-vc9-Fix-snprintf-not-defined.patch
git am --ignore-whitespace --signoff 0004-Providing-VisualStudio2008-sln-for-python2.7-builds.patch
git am --ignore-whitespace --signoff 0005-update-update-script.patch
git am --ignore-whitespace --signoff 0006-patch-common.mk.patch
git am --ignore-whitespace --signoff 0007-fix-builds.patch
git am --ignore-whitespace --signoff 0008-Fix-windows-builds-and-try-to-fix-linux32.patch
# Add all files to project
echo "Updating project resources"
SeaBreeze/os-support/windows/scripts/update-visual-studio-projects
# make new commit
echo "commiting updated resources"
git add SeaBreeze/os-support/windows/VisualStudio2005/VSProj/SeaBreeze.vcproj
git add SeaBreeze/os-support/windows/VisualStudio2008/VSProj/SeaBreeze.vcproj
git add SeaBreeze/os-support/windows/VisualStudio2010/VSProj/SeaBreeze.vcxproj
git add SeaBreeze/os-support/windows/VisualStudio2010/VSProj/SeaBreeze.vcxproj.filters
git add SeaBreeze/os-support/windows/VisualStudio2012/VSProj/SeaBreeze.vcxproj
git add SeaBreeze/os-support/windows/VisualStudio2013/VSProj/SeaBreeze.vcxproj
git add SeaBreeze/os-support/windows/VisualStudio2013/VSProj/SeaBreeze.vcxproj.filters
git add SeaBreeze/os-support/windows/VisualStudio2015/VSProj/SeaBreeze.vcxproj
git add SeaBreeze/os-support/windows/VisualStudio2015/VSProj/SeaBreeze.vcxproj.filters
git commit -m "Hotfix visualstudio project files"
echo "tag"
git tag -a libseabreeze-${SBVERSION} -m 'new libseabreeze version'
echo "push"
echo "git push origin ${SBVERSION}"
echo "git push origin libseabreeze-${SBVERSION}"