Index: revert |
diff --git a/revert b/revert |
index c02bd02f96e4d4e490d37ba1784aa60681162468..b66a9db4bfb1d59f80ebf613ee5a3bbe33fff6fe 100755 |
--- a/revert |
+++ b/revert |
@@ -1,5 +1,14 @@ |
#!/bin/sh |
+# Copyright (c) 2009 The Chromium Authors. All rights reserved. |
+# Use of this source code is governed by a BSD-style license that can be |
+# found in the LICENSE file. |
base_dir=$(dirname "$0") |
+# Use the batch file as an entry point if on cygwin. |
+if [ "${OSTYPE}" = "cygwin" -a "${TERM}" = "cygwin" ]; then |
+ ${base_dir}/revert.bat "$@" |
+ exit |
+fi |
+ |
exec python "$base_dir/revert.py" "$@" |