Rob Mohr | 709472a | 2020-04-17 11:50:47 -0700 | [diff] [blame] | 1 | :<<"::WINDOWS_ONLY" |
Alexei Frolov | 4dcf99d | 2020-03-10 16:48:26 -0700 | [diff] [blame] | 2 | @echo off |
| 3 | :: Copyright 2020 The Pigweed Authors |
| 4 | :: |
| 5 | :: Licensed under the Apache License, Version 2.0 (the "License"); you may not |
| 6 | :: use this file except in compliance with the License. You may obtain a copy of |
| 7 | :: the License at |
| 8 | :: |
| 9 | :: https://www.apache.org/licenses/LICENSE-2.0 |
| 10 | :: |
| 11 | :: Unless required by applicable law or agreed to in writing, software |
| 12 | :: distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
| 13 | :: WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the |
| 14 | :: License for the specific language governing permissions and limitations under |
| 15 | :: the License. |
Rob Mohr | 709472a | 2020-04-17 11:50:47 -0700 | [diff] [blame] | 16 | ::WINDOWS_ONLY |
| 17 | :; echo "ERROR: Attempting to run Windows .bat from a Unix/POSIX shell!" |
| 18 | :; echo "Instead, run the following command." |
| 19 | :; echo "" |
| 20 | :; echo " source ./activate.sh" |
| 21 | :; echo "" |
| 22 | :<<"::WINDOWS_ONLY" |
Alexei Frolov | 4dcf99d | 2020-03-10 16:48:26 -0700 | [diff] [blame] | 23 | |
| 24 | :: Activates a Pigweed development environment by setting the appropriate |
| 25 | :: environment variables. bootstrap.bat must be run initially to install all |
| 26 | :: required programs; after that, activate.bat can be used to enter the |
| 27 | :: environment in a shell. |
| 28 | |
| 29 | set PW_SKIP_BOOTSTRAP=1 |
Wyatt Hepler | 61682e8 | 2020-03-19 11:36:48 -0700 | [diff] [blame] | 30 | call "%~dp0\bootstrap.bat" |
Alexei Frolov | 4dcf99d | 2020-03-10 16:48:26 -0700 | [diff] [blame] | 31 | set PW_SKIP_BOOTSTRAP= |
Rob Mohr | 709472a | 2020-04-17 11:50:47 -0700 | [diff] [blame] | 32 | ::WINDOWS_ONLY |