blob: 42d74a639cab00ae971caa5733bb5d2b26575acc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
@ECHO OFF
SETLOCAL
PUSHD %~dp0
astyle.exe --version 1>&2 2>NUL
IF %ERRORLEVEL% NEQ 0 (
ECHO ERROR: Astyle wasn't found!
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
)
rem current command
astyle.exe^
--indent=spaces=4 --style=kr --indent-switches --indent-namespaces --indent-col1-comments^
--pad-header --pad-oper --unpad-paren --align-pointer=type --align-reference=type^
--add-brackets --lineend=windows --preserve-date --keep-one-line-blocks --keep-one-line-statements^
--convert-tabs --suffix=none --ignore-exclude-errors --ignore-exclude-errors-x --recursive^
--exclude=FileVersionInfo.cpp --exclude=FileVersionInfo.h --exclude=LineNumberEdit.cpp^
--exclude=LineNumberEdit.h --exclude=Struct.h --exclude=atl --exclude=avisynth^
--exclude=detours --exclude=dx --exclude=lglcd --exclude=ogg --exclude=qt^
--exclude=realmedia --exclude=vd2 --exclude=winddk --exclude=inttypes.h^
--exclude=MediaInfoDLL.h --exclude=unrar.h --exclude=Version.h --exclude=Version_rev.h^
--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_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 --exclude=HScrollListBox.cpp --exclude=HScrollListBox.h ..\*.h ..\*.cpp
IF %ERRORLEVEL% NEQ 0 ECHO. & ECHO ERROR: Something went wrong!
:END
POPD
ECHO Press any key to close this window...
PAUSE >NUL
ENDLOCAL
EXIT /B
|