-
Notifications
You must be signed in to change notification settings - Fork 0
/
apply-patches.sh
executable file
·37 lines (21 loc) · 1.34 KB
/
apply-patches.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
#!/usr/bin/env bash
# current working directory
WORK_DIR=$(pwd)
OFFSET_MELBOURNE=$(TZ=Australia/Melbourne date +%z)
cd "$1" || exit 1
git restore .
########################################################################################################################
git apply "$WORK_DIR/patches/compliance-level-3/0089-nested-inputdata-imports/0089-nested-inputdata-imports.patch"
if [ "$OFFSET_MELBOURNE" == "+1000" ]; then
git apply "$WORK_DIR/patches/compliance-level-3/0103-feel-is-function/0103-feel-is-function.patch"
fi
git apply "$WORK_DIR/patches/compliance-level-3/1111-feel-matches-function/1111-feel-matches-function.patch"
git apply "$WORK_DIR/patches/compliance-level-3/1141-feel-round-up-function/1141-feel-round-up-function.patch"
git apply "$WORK_DIR/patches/compliance-level-3/1142-feel-round-down-function/1142-feel-round-down-function.patch"
git apply "$WORK_DIR/patches/compliance-level-3/1143-feel-round-half-up-function/1143-feel-round-half-up-function.patch"
git apply "$WORK_DIR/patches/compliance-level-3/1144-feel-round-half-down-function/1144-feel-round-half-down-function.patch"
########################################################################################################################
# remove non compliant tests from the directory tree
rm -rf TestCases/non-compliant
git status -s
cd "$WORK_DIR" || exit 1