diff options
author | XhmikosR <xhmikosr@users.sourceforge.net> | 2012-06-12 19:33:18 +0400 |
---|---|---|
committer | XhmikosR <xhmikosr@users.sourceforge.net> | 2012-06-12 19:33:18 +0400 |
commit | 5e40c94c64e74c708be74f5898fe221a0b9aebe2 (patch) | |
tree | e35af723cf046e6644eb29f4865dfcc2a72092b1 | |
parent | d01b88f01402c386d65747f0a6918a6b87166997 (diff) |
update astyle.bat to optionally open astyle's webpage if astyle isn't found
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@5103 10f7b99b-c216-0410-bff0-8a66a9350fd8
-rw-r--r-- | docs/astyle.bat | 13 | ||||
-rw-r--r-- | src/YASM.bat | 3 |
2 files changed, 9 insertions, 7 deletions
diff --git a/docs/astyle.bat b/docs/astyle.bat index a357ba65e..27ee2755c 100644 --- a/docs/astyle.bat +++ b/docs/astyle.bat @@ -7,7 +7,9 @@ astyle.exe --version 1>&2 2>NUL IF %ERRORLEVEL% NEQ 0 (
ECHO ERROR: Astyle wasn't found!
- ECHO Visit http://astyle.sourceforge.net/ for download and details.
+ CHOICE /C yn /CS /M "Do you want to visit its webpage now"
+ IF ERRORLEVEL 2 ECHO. & GOTO END
+ START "" http://astyle.sourceforge.net/
GOTO END
)
@@ -25,12 +27,12 @@ astyle.exe^ --exclude=thirdparty --exclude=resource.h --exclude=simd.h --exclude=simd_common.h^
--exclude=libmpeg2.h --exclude=libmpeg2.cpp --exclude=attributes.h --exclude=MPEG2Dec.h^
--exclude=MPEG2Dec.cpp --exclude=idctref.cpp --exclude=idctfpu.cpp --exclude=vd_asm.cpp^
- --exclude=vd.cpp --exclude=vd.h --exclude=deinterlace.cpp --exclude=mmintrin64.c^
+ --exclude=vd_asm.h --exclude=vd.cpp --exclude=vd.h --exclude=deinterlace.cpp --exclude=mmintrin64.c^
--exclude=simd_instructions.h --exclude=DeCSS --exclude=ffImgfmt.cpp --exclude=ffImgfmt.h^
--exclude=H264RandomAccess.cpp --exclude=H264RandomAccess.h --exclude=array_allocator.h^
- --exclude=char_t.h ..\*.h ..\*.cpp
+ --exclude=char_t.h --exclude=HScrollListBox.cpp --exclude=HScrollListBox.h ..\*.h ..\*.cpp
-rem TODO: use --indent=spaces=4 --style=kr --add-brackets --pad-header --pad-oper --convert-tabs
+rem TODO: --indent=spaces=4 --style=kr --add-brackets --pad-header --pad-oper --convert-tabs
rem maybe TODO: --align-pointer=type --align-reference=type: there is a problem when the type isn't known like *dump
rem --unpad-paren: HANDLE ()-> HANDLE() while the space should be kept
@@ -41,6 +43,7 @@ IF %ERRORLEVEL% NEQ 0 ( :END
POPD
-PAUSE
+ECHO Press any key to close this window...
+PAUSE >NUL
ENDLOCAL
EXIT /B
diff --git a/src/YASM.bat b/src/YASM.bat index 155f4a239..4516d4290 100644 --- a/src/YASM.bat +++ b/src/YASM.bat @@ -1,13 +1,12 @@ @ECHO OFF
PUSHD %~dp0
-
IF EXIST "..\build.user.bat" (
CALL "..\build.user.bat"
) ELSE (
IF DEFINED MSYS SET MPCHC_MSYS=%MSYS%
)
+POPD
SET PATH=%PATH%;%MPCHC_MSYS%\bin
-POPD
yasm.exe %*
|