| 1 | #!/bin/bashscip-shell filesystem . . `/bin/bash`. |
| 2 | # Copyright 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. |
| 3 | # |
| 4 | # Licensed under the Apache License, Version 2.0 (the "License"). |
| 5 | # You may not use this file except in compliance with the License. |
| 6 | # A copy of the License is located at |
| 7 | # |
| 8 | # http://aws.amazon.com/apache2.0 |
| 9 | # |
| 10 | # or in the "license" file accompanying this file. This file is distributed |
| 11 | # on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either |
| 12 | # express or implied. See the License for the specific language governing |
| 13 | # permissions and limitations under the License. |
| 14 | # |
| 15 | |
| 16 | set -e |
| 17 | set -x |
| 18 | |
| 19 | usagescip-shell shell shell-project 0.0.0 usage().() { |
| 20 | echoscip-shell system . . echo. "install_sidetrail.sh install_dir" |
| 21 | exit 1 |
| 22 | } |
| 23 | |
| 24 | if [scip-shell system . . `[`. "$#" -ne "1" ]; then |
| 25 | usagescip-shell shell shell-project 0.0.0 usage(). |
| 26 | fi |
| 27 | |
| 28 | INSTALL_DIR=$1 |
| 29 | |
| 30 | cd "$INSTALL_DIR" |
| 31 | |
| 32 | #install smack |
| 33 | gitscip-shell system . . git. clone https://github.com/danielsn/smack.git -b sidewinder-debug |
| 34 | cd smack/bin |
| 35 | |
| 36 | clangscip-shell system . . clang. --version |
| 37 | whichscip-shell system . . which. clang |
| 38 | |
| 39 | ./build.sh |
| 40 | |
| 41 | # Disabling ShellCheck using https://github.com/koalaman/shellcheck/wiki/Directive |
| 42 | # Turn of Warning in one line as https://github.com/koalaman/shellcheck/wiki/SC1090 |
| 43 | # shellcheck disable=SC1090 |
| 44 | source "$INSTALL_DIR"/smack.environment |
| 45 | |
| 46 | #install ctverif |
| 47 | cd "$INSTALL_DIR" |
| 48 | gitscip-shell system . . git. clone --depth 1 https://github.com/imdea-software/verifying-constant-time.git -b test-automation |
| 49 |