Commit 09215bc9 authored by Shidel's avatar Shidel
Browse files

updated build script for FD-NLS support

parent b2fc2a3c
doc/slicer/LICENSE
\ No newline at end of file
BSD 2-Clause License
Copyright (c) 2019-2020, Jerome Shidel
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
doc/slicer/README.md
\ No newline at end of file
# SLICER
### File Slicer *for [FreeDOS](http://www.freedos.org)*
A simple file archiving and slicing/spanning program for DOS. Slicer is very
similar to tar. However, it has different primary focus and objectives.
**Copyright (c) 2019-2020, Jerome Shidel. All rights reserved.**
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
### How is *File Slicer* different?
Unlike other archiving utilities, *File Slicer* is more of a multi-language group
based file resource splitter, archiver and installer hybrid utility.
*Hunh?*
When files are added to an archive, they may be given group tags. These tags
can be used to pull only specific classes of files from the archive. For
example, if storing a program, you could tag source files as ***src*** and store
binaries ungrouped. Then on extraction, the binaries would always get extracted.
But, the sources files would only get extracted if the ***src*** group is is
requested.
Then the multi-language thing... Language specific text can be embedded into an
archive. This text may be displayed automatically during the extraction of an
archive and also supports group tags. So, you could embed English and Spanish
text at the start of a ***src*** group that gets displayed when the ***src***
group begins extraction.
Installer kinda stuff. Well, only to the extent that multi-language text can
be flagged whith the **/M** switch to require user acceptance. This would allow
a license to be displayed and accepted before a group is extracted.
A file splitter thingy. It always works in splitting mode. The size for each
file is defined when an archive is created and cannot be changed unless it
is re-sliced. The primary archive file always ends in **SAF** and additional files
are numbered **001** and up. The first portion of primary archive file's header is
in pure text and can be viewed by simply using the type command. If any
additional non-language specific text was appended to the header using the **/m**
switch, it will be shown as well.
......@@ -2,5 +2,6 @@
set APP=slicer
deltree /Y *.ZIP *.OBJ *.TPU *.EXE ENGLISH.INC *.TMP >NUL
rem deltree /Y ENGLISH.INC >NUL
deltree /Y *.ZIP *.OBJ *.TPU *.EXE *.TMP >NUL
deltree /Y QCrt\PASCAL\*.OBJ QCrt\PASCAL\*.TPU >NUL
\ No newline at end of file
@echo off
if "%APP%" == "" goto error
if "%FDNLS%" == "" goto error
if not "%1" == "" goto %1
if not "%1" == "" goto Error
goto Start
......@@ -12,8 +15,6 @@ goto Done
:Start
set APP=slicer
set TPV=TP70
set ASM=NASM
set TPC=TPC
......@@ -21,10 +22,12 @@ if exist %DOSDIR%\LINKS\%ASM%.BAT set ASM=call %ASM%
if exist %DOSDIR%\LINKS\%TPC%.BAT set TPC=call %TPC%
REM Create Embedded English Language Translation
type NLS\%APP%.EN | grep -iv "^;" | vstr /I/B/N >ENGLISH.TMP
echo ..\..\%FDNLS%\%APP%\%APP%.EN
if not exist ..\..\%FDNLS%\%APP%\%APP%.EN goto NoEnglish
set OUT=ENGLISH.INC
if exist %OUT% goto HaveEnglish
if not exist NLS\%APP%.EN goto NoEnglish
type ..\..\%FDNLS%\%APP%\%APP%.EN | grep -iv "^;" | vstr /I/B/N >ENGLISH.TMP
echo { Embedded English language translation messages }>%OUT%
echo procedure BuiltInEnglish; assembler;>>%OUT%
......@@ -57,10 +60,12 @@ echo end;
set LINE=
set COUNT=
set MESSAGE=
deltree /y ENGLISH.TMP
xdel /y ENGLISH.TMP
goto HaveEnglish
:NoEnglish
echo Unable to locate English Translations.
goto error
:HaveEnglish
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment