-
Notifications
You must be signed in to change notification settings - Fork 21
/
update-rc
executable file
·41 lines (26 loc) · 734 Bytes
/
update-rc
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
40
41
#!/bin/bash
set -e
# Go to master
git checkout master
# Update from origin
git fetch origin
# Clean up 1.0
git branch -D 1.0 || echo
# Checkout 1.0
git checkout origin/1.0 -b 1.0
# Reset and Clean
git reset --hard origin/1.0
git clean -f
# Merge master
git merge origin/master -m "Update Release Candidate"
# Revert changes from master
git diff HEAD..origin/master | git apply
# Download patch to update revisions based on tests
wget -O update-release.sh https://erp5.nexedi.net/portal_skins/custom/TestResultModule_getReleaseCandidateRevision
# Suggestion
echo "Review and run
bash update-release.sh
git commit -m 'Update git revisions' -a
git push origin 1.0
DONT USE THIS SCRIPT TO RELEASE SLAPOS COOKBOOK
"