Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/mpc-hc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKacper Michajłow <kasper93@gmail.com>2015-02-16 18:26:46 +0300
committerKacper Michajłow <kasper93@gmail.com>2015-02-17 01:41:08 +0300
commit3eaa44a8664ed275fa9c5e225c4893635809bdea (patch)
tree12230c99aad8eed3e73896813eca6b49cb407a6e /src/YASM.bat
parent5882f90c0fa0b1e8ab8891dbdaf42c1234430bf8 (diff)
Add common.bat file with common functions.
Diffstat (limited to 'src/YASM.bat')
-rwxr-xr-xsrc/YASM.bat10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/YASM.bat b/src/YASM.bat
index abdbe7379..7e0d9fc49 100755
--- a/src/YASM.bat
+++ b/src/YASM.bat
@@ -17,11 +17,9 @@ REM You should have received a copy of the GNU General Public License
REM along with this program. If not, see <http://www.gnu.org/licenses/>.
-IF EXIST "%~dp0..\build.user.bat" CALL "%~dp0..\build.user.bat"
-
-IF NOT DEFINED MPCHC_MSYS IF DEFINED MSYS SET MPCHC_MSYS=%MSYS%
-IF NOT EXIST "%MPCHC_MSYS%" EXIT /B 1
-
-SET PATH=%PATH%;%MPCHC_MSYS%\bin
+CALL "%~dp0..\common.bat" :SubSetPath
+IF %ERRORLEVEL% NEQ 0 EXIT /B
+CALL "%~dp0..\common.bat" :SubDoesExist yasm.exe
+IF %ERRORLEVEL% NEQ 0 EXIT /B
yasm.exe %*