Antonio Alvarado Hernández avatar Antonio Alvarado Hernández committed bf3430f

added a prototype for a envars manager script

Comments (0)

Files changed (1)

+@rem ----------------------------------------------------------------------------
+@rem Copyright (c) 2011, 2012 Antonio Alvarado Hernández - All rights reserved
+@rem ----------------------------------------------------------------------------
+@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 ----------------------------------------------------------------------------
+@rem $Id$
+@rem ----------------------------------------------------------------------------
+
+@set NAME=%~n0 && shift
+
+@if [%0] == [-10] set VSVARSPATH=%VS100COMNTOOLS%vsvars32.bat
+@if [%0] == [-9] set VSVARSPATH=%VS90COMNTOOLS%vsvars32.bat
+
+@if not defined VSVARSPATH goto :syntax
+@if not exist "%VSVARSPATH%" goto :notfound
+
+:execute
+@call "%VSVARSPATH%"
+@goto :eof
+
+:syntax
+@echo. 1>&2
+@echo Fatal: invalid command line arguments 1>&2
+@echo. 1>&2
+@echo   Syntax: %NAME% [-9^|-10] 1>&2
+@goto :eof
+
+:notfound
+@echo. 1>&2
+@echo Fatal: not found file "%VSVARSPATH%" 1>&2
+@goto :eof
+
+:eof
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.