Added files for creating independent Tex2RTF distributions
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16386 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
25
utils/tex2rtf/distrib/distrib.rsp
Normal file
25
utils/tex2rtf/distrib/distrib.rsp
Normal file
@@ -0,0 +1,25 @@
|
||||
docs/*.tex
|
||||
docs/*.sty
|
||||
docs/*.bib
|
||||
docs/*.hpj
|
||||
docs/*.ini
|
||||
docs/*.txt
|
||||
docs/*.cnt
|
||||
docs/*.eps
|
||||
docs/*.bmp
|
||||
docs/*.gif
|
||||
docs/*.wmf
|
||||
docs/*.shg
|
||||
docs/makefile.vc
|
||||
|
||||
tex2rtf.exe
|
||||
tex2rtf.chm
|
||||
lacheck.exe
|
||||
lacheck.txt
|
||||
readme.txt
|
||||
licence.txt
|
||||
lgpl.txt
|
||||
gpl.txt
|
||||
tex2rtf.exe.manifest
|
||||
tex2rtf_src.zip
|
||||
|
38
utils/tex2rtf/distrib/innobott.txt
Normal file
38
utils/tex2rtf/distrib/innobott.txt
Normal file
@@ -0,0 +1,38 @@
|
||||
; For debug beta only
|
||||
; Source: c:\winnt\system32\msvcrtd.dll; DestDir: {sys}\; DestName: msvcrtd.dll; CopyMode: onlyifdoesntexist; Flags: uninsneveruninstall
|
||||
|
||||
[Tasks]
|
||||
|
||||
Name: desktopicon; Description: "Create a &desktop icon"; GroupDescription: "Additional icons:"
|
||||
|
||||
[Icons]
|
||||
Name: {group}\Tex2RTF TEX2RTFVERSION; Filename: {app}\tex2rtf.exe; WorkingDir: {app}; IconFilename: {app}\tex2rtf.exe; IconIndex: 0
|
||||
Name: {group}\Tex2RTF Help; Filename: {app}\tex2rtf.chm; WorkingDir: {app}; IconIndex: 0; Flags: useapppaths
|
||||
Name: {group}\Tex2RTF Licence; Filename: {app}\licence.txt; WorkingDir: {app}; IconIndex: 0; Flags: useapppaths
|
||||
Name: {userdesktop}\Tex2RTF TEX2RTFVERSION; Filename: {app}\tex2rtf.exe; WorkingDir: {app}; IconFilename: {app}\tex2rtf.exe; IconIndex: 0; Tasks: desktopicon
|
||||
|
||||
[Registry]
|
||||
|
||||
[UninstallDelete]
|
||||
|
||||
[InstallDelete]
|
||||
|
||||
[Run]
|
||||
Filename: "{app}\tex2rtf.exe"; Description: "Launch Tex2RTF"; Flags: postinstall nowait skipifsilent
|
||||
|
||||
[UninstallRun]
|
||||
|
||||
|
||||
; ==============================================
|
||||
; The lines below are used by ScriptMaker
|
||||
; They are not required by Inno Setup
|
||||
; DO NOT DELETE THEM or you may be unable to reload the script
|
||||
|
||||
;[ScriptSetup]
|
||||
;VerNum=TEX2RTFVERSION
|
||||
;InnoVer=1.3
|
||||
;AddVerTo=AppVerName
|
||||
;SetupFilename=setup.exe
|
||||
;OutputFolder=C:\wx2dev\wxWindows\deliver
|
||||
;CopyrightText=Copyright <20> Julian Smart, 2002
|
||||
|
47
utils/tex2rtf/distrib/innotop.txt
Normal file
47
utils/tex2rtf/distrib/innotop.txt
Normal file
@@ -0,0 +1,47 @@
|
||||
; Inno Setup Script
|
||||
; Created with ScriptMaker Version 1.3.22
|
||||
; 14 February 2001 at 10:38
|
||||
|
||||
[Setup]
|
||||
MinVersion=4.0,4.0
|
||||
AppName=Tex2RTF TEX2RTFVERSION
|
||||
AppId=Tex2RTF
|
||||
CreateUninstallRegKey=1
|
||||
UsePreviousAppDir=1
|
||||
UsePreviousGroup=1
|
||||
AppVersion=TEX2RTFVERSION
|
||||
AppVerName=Tex2RTF TEX2RTFVERSION
|
||||
AppCopyright=Copyright <20> Julian Smart and others, 2002
|
||||
; BackColor=$FF0000
|
||||
; BackColor2=$000000
|
||||
BackColor=$800000
|
||||
BackColor2=$C71F1F
|
||||
BackColorDirection=toptobottom
|
||||
WindowShowCaption=1
|
||||
WindowStartMaximized=1
|
||||
WindowVisible=1
|
||||
WindowResizable=1
|
||||
UninstallLogMode=Append
|
||||
DirExistsWarning=auto
|
||||
UninstallFilesDir={app}
|
||||
DisableDirPage=0
|
||||
DisableStartupPrompt=1
|
||||
CreateAppDir=1
|
||||
DisableProgramGroupPage=0
|
||||
AlwaysCreateUninstallIcon=1
|
||||
Uninstallable=1
|
||||
UninstallIconName=Uninstall Tex2RTF TEX2RTFVERSION
|
||||
UninstallDisplayName=Tex2RTF TEX2RTFVERSION
|
||||
DefaultDirName={pf}\Tex2RTF
|
||||
DefaultGroupName=Tex2RTF TEX2RTFVERSION
|
||||
MessagesFile=compiler:default.isl
|
||||
DiskSpanning=0
|
||||
DiskSize=1457664
|
||||
DiskClusterSize=512
|
||||
ReserveBytes=0
|
||||
UseSetupLdr=1
|
||||
LicenseFile=c:\wx2dev\wxWindows\utils\tex2rtf\docs\licence.txt
|
||||
InfoAfterFile=c:\wx2dev\wxWindows\utils\tex2rtf\docs\readme.txt
|
||||
SourceDir=c:\wx2dev\wxWindows\deliver\tex2rtf
|
||||
OutputDir=c:\wx2dev\wxWindows\deliver
|
||||
|
70
utils/tex2rtf/distrib/makeinno.bat
Executable file
70
utils/tex2rtf/distrib/makeinno.bat
Executable file
@@ -0,0 +1,70 @@
|
||||
@echo off
|
||||
Rem Make an Inno Setup distribution list, where files and dirs are represented by
|
||||
Rem sections like this:
|
||||
Rem [Dirs]
|
||||
Rem Name: {app}\backgrounds
|
||||
Rem
|
||||
Rem [Files]
|
||||
Rem Source: C:\dir\file.htm; DestDir: {app}\; DestName: file.htm
|
||||
|
||||
set tex2rtf=%WXWIN%\utils\tex2rtf
|
||||
|
||||
Rem Generate a list of all files in the distribution.
|
||||
Rem We have to be in the right directory already.
|
||||
dir /BS >& %TEMP%\files1.tmp
|
||||
|
||||
Rem Now we iterate through the list of files, writing out the middle section of
|
||||
Rem the file.
|
||||
Rem We have to remove the first part of the path,
|
||||
Rem by truncating the start by the size of the current directory.
|
||||
|
||||
set sz=%@EVAL[%@LEN[%_CWD]+1]
|
||||
set len=%@LINES[%TEMP\files1.tmp]
|
||||
|
||||
erase /Y %TEMP\files2.tmp
|
||||
|
||||
Rem Add directories
|
||||
echo. >> %temp\files2.tmp
|
||||
echo [Dirs] >> %temp\files2.tmp
|
||||
|
||||
do i = 0 to %len by 1
|
||||
set line=%@LINE[%TEMP\files1.tmp,%i]
|
||||
Rem Skip files.
|
||||
if not isdir %line enddo
|
||||
set sz2=%@LEN[%line]
|
||||
set n=%@EVAL[%sz2-%sz]
|
||||
set line2=%@SUBSTR[%line,%sz,%n]
|
||||
if "%line2%" == "" enddo
|
||||
|
||||
echo Name: {app}\%line2 >> %TEMP\files2.tmp
|
||||
enddo
|
||||
|
||||
echo. >>%TEMP\files2.tmp
|
||||
|
||||
Rem Add files
|
||||
|
||||
echo. >> %temp\files2.tmp
|
||||
echo [Files] >> %temp\files2.tmp
|
||||
|
||||
do i = 0 to %len by 1
|
||||
set line=%@LINE[%TEMP\files1.tmp,%i]
|
||||
Rem Skip directories.
|
||||
if isdir %line enddo
|
||||
set sz2=%@LEN[%line]
|
||||
set n=%@EVAL[%sz2-%sz]
|
||||
set line2=%@SUBSTR[%line,%sz,%n]
|
||||
set filename=%@FILENAME[%line2]
|
||||
set dirname=%@PATH[%line2]
|
||||
|
||||
echo Source: %line; DestDir: {app}\%dirname; DestName: %filename >> %TEMP\files2.tmp
|
||||
enddo
|
||||
|
||||
Rem Concatenate the 3 sections
|
||||
cat %tex2rtf%\distrib\innotop.txt %TEMP%\files2.tmp %tex2rtf%\distrib\innobott.txt > %tex2rtf%\distrib\tex2rtf.iss
|
||||
|
||||
erase /Y %TEMP\files1.tmp
|
||||
rem erase /Y %TEMP\files2.tmp
|
||||
|
||||
goto end
|
||||
|
||||
:end
|
48
utils/tex2rtf/distrib/src.rsp
Normal file
48
utils/tex2rtf/distrib/src.rsp
Normal file
@@ -0,0 +1,48 @@
|
||||
Makefile.in
|
||||
|
||||
src/*.cpp
|
||||
src/*.h
|
||||
src/makefile.vc
|
||||
src/makefile.bcc
|
||||
src/makefile.dos
|
||||
src/makefile.b32
|
||||
src/makefile.wat
|
||||
src/makefile.unx
|
||||
src/makefile.vms
|
||||
src/makefile.g95
|
||||
src/makengui.nt
|
||||
src/Makefile.in
|
||||
src/*.dsp
|
||||
src/*.dsw
|
||||
src/*.xbm
|
||||
src/*.xpm
|
||||
src/*.sty
|
||||
src/*.ini
|
||||
lib/dummy
|
||||
src/*.bmp
|
||||
src/*.ico
|
||||
src/*.def
|
||||
src/*.rc
|
||||
|
||||
tools/*.*
|
||||
|
||||
distrib/*.sh
|
||||
distrib/*.bat
|
||||
distrib/*.txt
|
||||
distrib/*.rsp
|
||||
distrib/tex2rtf.exe.manifest
|
||||
|
||||
docs/*.tex
|
||||
docs/*.sty
|
||||
docs/*.bib
|
||||
docs/*.hpj
|
||||
docs/*.ini
|
||||
docs/*.txt
|
||||
docs/*.cnt
|
||||
docs/*.eps
|
||||
docs/*.bmp
|
||||
docs/*.gif
|
||||
docs/*.wmf
|
||||
docs/*.shg
|
||||
docs/makefile.vc
|
||||
|
23
utils/tex2rtf/distrib/tex2rtf.exe.manifest
Normal file
23
utils/tex2rtf/distrib/tex2rtf.exe.manifest
Normal file
@@ -0,0 +1,23 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<assembly
|
||||
xmlns="urn:schemas-microsoft-com:asm.v1"
|
||||
manifestVersion="1.0">
|
||||
<assemblyIdentity
|
||||
processorArchitecture="x86"
|
||||
version="5.1.0.0"
|
||||
type="win32"
|
||||
name="tex2rtf.exe"/>
|
||||
<description>Foo program</description>
|
||||
<dependency>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity
|
||||
type="win32"
|
||||
name="Microsoft.Windows.Common-Controls"
|
||||
version="6.0.0.0"
|
||||
publicKeyToken="6595b64144ccf1df"
|
||||
language="*"
|
||||
processorArchitecture="x86"/>
|
||||
</dependentAssembly>
|
||||
</dependency>
|
||||
</assembly>
|
||||
|
1
utils/tex2rtf/distrib/tex2rtfversion.txt
Normal file
1
utils/tex2rtf/distrib/tex2rtfversion.txt
Normal file
@@ -0,0 +1 @@
|
||||
2.01
|
120
utils/tex2rtf/distrib/zipdistinno.bat
Executable file
120
utils/tex2rtf/distrib/zipdistinno.bat
Executable file
@@ -0,0 +1,120 @@
|
||||
@echo off
|
||||
rem Zip up a distribution of Tex2RTF using Inno Setup.
|
||||
Rem This batch file requires the 4DOS/4NT command processor.
|
||||
set src=%WXWIN%\utils\tex2rtf
|
||||
set dest=%WXWIN%\deliver
|
||||
set inno=1
|
||||
set ReleaseDir=Release
|
||||
|
||||
if "%src%" == "" goto usage
|
||||
if "%dest%" == "" goto usage
|
||||
|
||||
if "%1" == "innoonly" set inno=1
|
||||
if "%1" == "innoonly" goto dounzip
|
||||
if "%1" == "inno" set inno=1
|
||||
|
||||
echo About to archive Tex2RTF
|
||||
echo From %src%
|
||||
echo To %dest%
|
||||
echo CTRL-C if this is not correct.
|
||||
pause
|
||||
|
||||
erase /E %dest%\tex2rtf.zip
|
||||
erase /E %dest%\tex2rtf_setup.exe
|
||||
erase /E %dest\tex2rtf_src.zip
|
||||
|
||||
if direxist %dest%\tex2rtf erase /sxzy %dest%\tex2rtf\
|
||||
|
||||
Rem *** First, determine version from symbols.h
|
||||
call ming2952
|
||||
echo `#include <stdio.h>` > tex2rtfver.c
|
||||
echo `#include "symbols.h"` >> tex2rtfver.c
|
||||
echo `int main() { printf("%.2f", TEX2RTF_VERSION_NUMBER); }` >> tex2rtfver.c
|
||||
gcc tex2rtfver.c -I%src%\src -o tex2rtfver.exe
|
||||
tex2rtfver.exe > tex2rtfversion.txt
|
||||
set ver=%@LINE[tex2rtfversion.txt,0]
|
||||
echo %ver%
|
||||
erase tex2rtfver.exe tex2rtfver.c
|
||||
set ver_filename=%ver%
|
||||
|
||||
echo Updating docs...
|
||||
call msvc6
|
||||
|
||||
pushd %src%\docs
|
||||
erase /Y tex2rtf_contents.html
|
||||
nmake -f makefile.vc htmlhelp htb
|
||||
popd
|
||||
|
||||
cd %src%
|
||||
echo Zipping source...
|
||||
|
||||
zip32 -@ %src%\tex2rtf_src.zip < %src%\distrib\src.rsp
|
||||
|
||||
echo Adding files...
|
||||
|
||||
copy %src%\src\%ReleaseDir%\tex2rtf.exe %src%
|
||||
copy %src%\docs\licence.txt %src%
|
||||
copy %src%\docs\lgpl.txt %src%
|
||||
copy %src%\docs\gpl.txt %src%
|
||||
copy %src%\docs\readme.txt %src%
|
||||
copy %src%\docs\tex2rtf.chm %src%
|
||||
copy %src%\distrib\tex2rtf.exe.manifest %src%
|
||||
copy %src%\tools\lacheck.exe %src%
|
||||
copy %src%\tools\lacheck.txt %src%
|
||||
Rem goto end
|
||||
|
||||
upx %src%\tex2rtf.exe
|
||||
|
||||
zip -@ %dest%\tex2rtf.zip < %src%\distrib\distrib.rsp
|
||||
zip -j -u %dest%\tex2rtf.zip %src%\tex2rtf.exe
|
||||
|
||||
:dounzip
|
||||
|
||||
cd %dest%
|
||||
|
||||
mkdir tex2rtf
|
||||
cd tex2rtf
|
||||
unzip32 -o ..\tex2rtf.zip
|
||||
|
||||
cd %dest%
|
||||
|
||||
echo inno = %inno%
|
||||
|
||||
Rem Skip Inno Setup setup if inno is 0.
|
||||
if "%inno%" == "0" goto end
|
||||
|
||||
set tex2rtfver=%ver%
|
||||
|
||||
echo ver is %ver%
|
||||
echo tex2rtfver is %tex2rtfver%
|
||||
|
||||
echo Calling 'makeinno' to generate tex2rtf.iss...
|
||||
cd %dest%\tex2rtf
|
||||
call %src%\distrib\makeinno.bat
|
||||
|
||||
sed -e "s/TEX2RTFVERSION/%tex2rtfver%/g" %src%\distrib\tex2rtf.iss > %TEMP%\tex2rtf.iss
|
||||
|
||||
move %TEMP%\tex2rtf.iss %src%\distrib\tex2rtf.iss
|
||||
|
||||
rem Now invoke Inno Setup install on the new tex2rtf.iss
|
||||
set innocmd="C:\Program Files\Inno Setup 2\compil32.exe" /cc %src%\distrib\tex2rtf.iss
|
||||
echo Invoking %innocmd%...
|
||||
cd %dest%
|
||||
start "Inno Setup" /w %innocmd%
|
||||
|
||||
Rem Rename to give it a version
|
||||
move setup.exe tex2rtf_%ver_filename%_setup.exe
|
||||
|
||||
Rem clean up files
|
||||
cd %src%
|
||||
erase /EFY *.bmp *.htm *.exe *.hlp *.cnt *.txt *.rtf *.doc *.gif *.jpg *.manifest *.chm
|
||||
|
||||
cd %dest%
|
||||
|
||||
echo Tex2RTF archived.
|
||||
goto end
|
||||
|
||||
:usage
|
||||
echo Tex2RTF distribution.
|
||||
|
||||
:end
|
28
utils/tex2rtf/distrib/zipsrc.bat
Executable file
28
utils/tex2rtf/distrib/zipsrc.bat
Executable file
@@ -0,0 +1,28 @@
|
||||
@echo off
|
||||
rem Zip up a source distribution of Tex2RTF and associated apps.
|
||||
set src=c:\wx2dev\wxWindows\utils\tex2rtf
|
||||
set dest=%src\deliver
|
||||
if "%src" == "" goto usage
|
||||
if "%dest" == "" goto usage
|
||||
echo About to archive Tex2RTF
|
||||
echo From %src
|
||||
echo To %dest
|
||||
echo CTRL-C if this is not correct.
|
||||
pause
|
||||
|
||||
erase %dest\tex2rtf_src.zip
|
||||
|
||||
cd %src
|
||||
echo Zipping...
|
||||
|
||||
zip32 -@ %dest\tex2rtf_src.zip < %src\tex2rtf\distrib\src.rsp
|
||||
|
||||
cd %dest
|
||||
|
||||
echo Tex2RTF source archived.
|
||||
goto end
|
||||
|
||||
:usage
|
||||
echo Tex2RTF source distribution.
|
||||
|
||||
:end
|
27
utils/tex2rtf/distrib/zipsrc.sh
Normal file
27
utils/tex2rtf/distrib/zipsrc.sh
Normal file
@@ -0,0 +1,27 @@
|
||||
#!/bin/sh
|
||||
# Zip up StoryLines source
|
||||
|
||||
expandlines()
|
||||
{
|
||||
toexpand=$1
|
||||
outputfile=$2
|
||||
|
||||
rm -f $outputfile
|
||||
touch $outputfile
|
||||
for line in `cat $toexpand` ; do
|
||||
if [ $line != "" ]; then
|
||||
ls $line >> $outputfile
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
CAFEDIR=$CAFE
|
||||
STDIR=$CAFE/storylines
|
||||
COMMONDIR=$CAFE/common
|
||||
|
||||
cd $CAFE
|
||||
expandlines $STDIR/distrib/src.rsp temp.txt
|
||||
zip -@ $CAFEDIR/deliver/storylines_src.zip < temp.txt
|
||||
expandlines $CAFEDIR/distrib/src.rsp temp.txt
|
||||
zip -u -@ $CAFEDIR/deliver/storylines_src.zip < temp.txt
|
||||
rm temp.txt
|
Reference in New Issue
Block a user