2012-05-31 15:20:28 +08:00
|
|
|
@echo off
|
|
|
|
|
|
2012-05-18 12:44:56 +08:00
|
|
|
@rem vim:ts=4:sw=4
|
|
|
|
|
@rem
|
2012-05-17 21:56:29 +08:00
|
|
|
@rem Copyright (c) 2008-2009 solvethis
|
|
|
|
|
@rem Copyright (c) 2010-2012 Casper Ti. Vector
|
|
|
|
|
@rem Public domain.
|
|
|
|
|
|
|
|
|
|
set GS=gswin32c
|
|
|
|
|
set GSOPTS=-q -dSAFER -dNOPAUSE -dBATCH -sDEVICE=pdfwrite
|
|
|
|
|
set WIDTHOPT=-dDEVICEWIDTHPOINTS=
|
|
|
|
|
set HEIGHTOPT=-dDEVICEHEIGHTPOINTS=
|
|
|
|
|
set OUTPUTOPT=-sOutputFile=
|
|
|
|
|
|
|
|
|
|
if "%1"=="" goto pdf
|
|
|
|
|
if "%1"=="clean" (goto clean) else (goto usage)
|
|
|
|
|
|
|
|
|
|
:pdf
|
|
|
|
|
%GS% %GSOPTS% %WIDTHOPT%400 %HEIGHTOPT%400 %OUTPUTOPT%pkulogo.pdf -f pkulogo.eps
|
|
|
|
|
%GS% %GSOPTS% %WIDTHOPT%525 %HEIGHTOPT%150 %OUTPUTOPT%pkuword.pdf -f pkuword.eps
|
|
|
|
|
goto end
|
|
|
|
|
|
|
|
|
|
:clean
|
|
|
|
|
del pkulogo.pdf pkuword.pdf
|
|
|
|
|
goto end
|
|
|
|
|
|
|
|
|
|
:usage
|
|
|
|
|
echo %0 [pdf] [clean]
|
|
|
|
|
|
|
|
|
|
:end
|
|
|
|
|
|