summaryrefslogtreecommitdiff
path: root/support/pstools/cep/cop.bat
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /support/pstools/cep/cop.bat
Initial commit
Diffstat (limited to 'support/pstools/cep/cop.bat')
-rw-r--r--support/pstools/cep/cop.bat49
1 files changed, 49 insertions, 0 deletions
diff --git a/support/pstools/cep/cop.bat b/support/pstools/cep/cop.bat
new file mode 100644
index 0000000000..4657326d10
--- /dev/null
+++ b/support/pstools/cep/cop.bat
@@ -0,0 +1,49 @@
+:: This file belongs to the CEP package | Ten plik nale/zy do pakietu CEP
+:: This package is public domain | Pakiet stanowi dobro powszechne
+:: For more info see `0CEP_LIC.ENG' | Wi/ecej informacji w ,,0CEP_LIC.POL''
+:: ===========================================================================
+:: E: PS file compression program
+:: This program compresses any PS file using Postscript Level 2 methods.
+::
+:: P: Program do kompresji plik/ow PS.
+:: S/lu/zy on do pakowania oraz kodowania dowolnych plik/ow
+:: PostScriptowych za pomoc/a standardowych algorytm/ow
+:: Postscript-u Level 2.
+::
+@echo off
+if "%2"=="" goto USAGE
+if "%1"=="%2" goto USAGE
+if not exist %1 goto USAGE
+gawk32 -fcop.awk -vTMPSX=tmp.psx -vOUTF=%2 -vCVM=%3%4 %1
+if errorlevel==1 goto DONE
+SET DOS4G=quiet
+if exist tmp.psx call gs386.exe -q -dNODISPLAY tmp.psx
+if exist tmp.psx del tmp.psx
+echo .
+goto DONE
+::
+:USAGE
+echo E: USAGE:
+echo cop input_file output_file [options]
+echo the program recognizes the following options:
+echo 8 -- use ASCII85 coding (default)
+echo b or B -- use binary coding
+echo h or H -- use HEX (hexadecimal) coding
+echo r or R -- use RLE (RunLength) compression (default)
+echo l or L -- use LZW compression
+echo f or F -- use Flate compression (non-standard!)
+echo n or N -- don't compress
+echo (names of input_file and output_file must differ)
+echo.
+echo P: WYWO/LANIE:
+echo cop plik_wej/sciowy plik_wyj/sciowy [opcje]
+echo program rozpoznaje nast/epuj/ace opcje:
+echo 8 -- kodowanie ASCII85 (domy/slnie)
+echo b lub B -- kodowanie binarne
+echo h lub H -- kodowanie HEX -- szesnastkowe
+echo r lub R -- kompresja RLE -- RunLength (domy/slnie)
+echo l lub L -- kompresja LZW
+echo f lub F -- kompresja Flate (niestandardowa!)
+echo n lub N -- bez kompresji
+echo (nazwa pliku wyj/sciowego musi by/c r/o/zna od nazwy pliku wej/sciowego)
+:DONE