diff options
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/bazel/rules/sh/sh_stub_template_windows.txt')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/bazel/rules/sh/sh_stub_template_windows.txt | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/bazel/rules/sh/sh_stub_template_windows.txt b/src/main/java/com/google/devtools/build/lib/bazel/rules/sh/sh_stub_template_windows.txt new file mode 100644 index 0000000000..175985fac6 --- /dev/null +++ b/src/main/java/com/google/devtools/build/lib/bazel/rules/sh/sh_stub_template_windows.txt @@ -0,0 +1,35 @@ +@rem Copyright 2016 The Bazel Authors. All rights reserved. +@rem +@rem Licensed under the Apache License, Version 2.0 (the "License"); +@rem you may not use this file except in compliance with the License. +@rem You may obtain a copy of the License at +@rem +@rem http://www.apache.org/licenses/LICENSE-2.0 +@rem +@rem Unless required by applicable law or agreed to in writing, software +@rem distributed under the License is distributed on an "AS IS" BASIS, +@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +@rem See the License for the specific language governing permissions and +@rem limitations under the License. +@rem +@rem This script was generated from sh_stub_template_windows.txt. Please +@rem don't edit it directly. +@rem See the header comments in the accompanying shell script (same path as that +@rem of this file, minus the ".cmd" extension) for available command line flags. + +@echo off +SETLOCAL ENABLEEXTENSIONS + +set bash_path=%bash_exe_path% + +rem launcher=${$0%.cmd} +set launcher=%~dp0%~n0 + +set sh_path=%launcher:\=/% + +set RUNFILES_MANIFEST_ONLY=1 +set RUNFILES_MANIFEST_FILE=%sh_path%.runfiles/MANIFEST +set all_args=%* +rem replaces $ with \$ in $*, then puts it on the command line +rem Cribbed from here: http://ss64.com/nt/syntax-replace.html +call %bash_path% -c "'%sh_path%' %all_args:$=\$%" |