home *** CD-ROM | disk | FTP | other *** search
- @echo off
- echo ──════[ R0SE's TIC Filegenerator ■ 0.22 ■ (C)0ded 1995-97 by R0SE ]═════──
- echo.
- goto norem
- ----------------------------------------------------------------------------
- - 12.95 0.01 rar initial creation
- 14.01.96 0.02 rar, added handling of namefile, bug: fild_diz fixed!
- added /ra option for Wolfgang Beck
- 02.02.96 0.03 rar, if exist filename added
- 10.02.96 0.03a rar, FILE_ID deleted if the file exists.
- 21.02.96 0.03b rar, added .EXE support
- 28.09.96 0.10 rar, added multiple CFG Files, DESC/LDESC, new crc32.exe
- 13.10.96 0.10 rar, CRC32 - now with REPLACES handling
- Dez. 96 0.20 rar, FREQ & REQUESTTIME added.
- 02.08.97 0.21 rar, added .TAZ (tar+gzip) handling
- 04.10.97 0.22 rar, angepasst an NDOS 7.00 (move)
- ----------------------------------------------------------------------------
-
- :norem
- if [%1] == [] goto error
- echo ■ Checking files for processing %1 ...
- if not exist %1 goto error
-
- if not exist %2.cfg goto normalcfg
- echo ■ Using config file %2.cfg
- copy %2.cfg rose.tic > nul
- goto cfgweiter
-
- :normalcfg
- echo ■ Using standard config file ROSETIC.CFG
- copy rosetic.cfg rose.tic > nul
-
- :cfgweiter
- if exist file_id.diz del file_id.diz > nul
-
- rem --- [EXT.BAT] ----------------------------------------------------------
- if exist ext~hlp.tmp\. rd ext~hlp~.tmp > nul
- md ext~hlp~.tmp > nul
- cd ext~hlp~.tmp > nul
- rem > %1
- ren *.* *.
- for %%a in (*.) do set namefile=%%a
- for %%a in (*.) do del %%a > nul
- cd ..
- rd ext~hlp~.tmp > nul
-
- if [%namefile%]==[] goto error
-
- rem --- [UNPACK.BAT] ------------------------------------------------------
- if not exist %namefile%.exe goto no_exe
- set E=EXE
- goto end
-
- :no_exe
- if not exist %namefile%.arj goto no_arj
- arj e %namefile% FILE_ID.DIZ > nul
- set E=ARJ
- goto end
-
- :no_arj
- if not exist %namefile%.lzh goto no_lha
- lha e %namefile% FILE_ID.DIZ > nul
- set E=LZH
- goto end
-
- :no_lha
- if not exist %namefile%.zip goto targzip
- pkunzip %namefile% FILE_ID.DIZ > nul
- set E=ZIP
- goto end
-
- :targzip
- rem GNU ZIP'ed tar archives
- if not exist %namefile%.taz goto no_zip
- gzip -dc %namefile%.taz | tar xvf - file_id.diz > nul
- set E=TAZ
- goto end
-
-
- :no_zip
- rem [Last in line]
- if not exist %namefile%.rar goto error
- rar e %namefile% FILE_ID.DIZ > nul
- set E=RAR
-
- rem --- [ Main ] ------------------------------------------------------
- :end
-
- if exist file_id.diz goto founddiz
- rem [hier eigenen Text einfügen]
-
- echo ■ No FILE_ID.DIZ found. Creating empty DESC entry!
- echo No description for %namefile% available! > file_id.diz
- echo DIZ insert by ROSE's TIC Maker >> file_id.diz
-
- :founddiz
-
- for %%a in (-ra -RA /ra /RA) do if [%%a]==[%2] goto RemoteA1
- for %%a in (-ra -RA /ra /RA) do if [%%a]==[%3] goto RemoteA1
-
- crc32 %namefile%.%E% >> rose.tic
- del file_id.diz > nul
- echo. >> rose.tic
- echo Created by ROSE's TIC Maker, request MAKETIC.RAR >> rose.tic
- copy rose.tic %namefile%.tic > nul
- del rose.tic > nul
- goto end2
-
- rem --- [RemoteAccess, 14.01.96] ---------------------------------------
- rem Fuer Wolfgang Beck
- :RemoteA1
-
- echo ■ Makeing now file %namefile%.TXT
- move file_id.diz %namefile%.txt >nul
- goto end2
-
- :error
-
- echo Usage: maketic archiv.ext [Cfg-File] [-ra or -RA]
- echo.
- echo Extension must be: .EXE/.ARJ/.ZIP./LZH/.RAR
- echo Cfg-File must end with .CFG and contains basic commands (default: ROSETIC.CFG)
- echo.
- echo The option -ra generates for Remote Access the file ARCHIVE.TXT
- goto final
-
- :end2
- echo ■ CleanUp, check %namefile%.TIC ...
- set e=
- set namefile=
- if exist ROSE.TIC del ROSE.TIC > nul
- if exist FILE_ID.DIZ del FILE_ID.DIZ > nul
-
- :final
- echo.
-