home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.eri.u-tokyo.ac.jp
/
2014.03.ftp.eri.u-tokyo.ac.jp.zip
/
ftp.eri.u-tokyo.ac.jp
/
pub
/
DOS
/
misc
/
hterm.lzh
/
INSTALL.BAT
next >
Wrap
DOS Batch File
|
1990-11-22
|
4KB
|
215 lines
rem generated by bj1.1.1
ECHO OFF
REM
REM install.bat: hterm install program
REM (generated by Batch Jack; structured batch preprocessor)
REM
CLS
ECHO
#########################################################
ECHO # #
ECHO #
INSTALL.BAT - hterm 2.6 installer
#
ECHO # #
ECHO #########################################################
echo
bin\batchcom p > S.$
IF NOT EXIST S.$ GOTO H1
GOTO H2
:H1
ECHO
ECHO Can't execute 'BATCHCOM' needed for installation procedure.
GOTO END1
:H2
echo
IF M%1==M GOTO H3
GOTO H4
:H3
ECHO Install directory name is not specified.
ECHO usage: install directory
GOTO exit
:H4
:macherr
echo
ECHO Your machine type
echo
ECHO 1. PC-9801 or PC-286 series
ECHO 2. PC-98XA
ECHO 3. AX machines
ECHO 4. IBM-PC or clone
ECHO 5. J3100 series
echo
bin\batchcom 0 "
Please select [12345]
"
echo
SET P=
IF ERRORLEVEL 5 GOTO H16
GOTO H17
:H16
IF ERRORLEVEL 6 GOTO H18
GOTO H19
:H18
GOTO macherr
:H19
ECHO ... Target machine is J3100 series.
SET P=J3
GOTO H5
:H17
IF ERRORLEVEL 4 GOTO H20
GOTO H21
:H20
ECHO ... Target machine is IBM-PC or clone.
SET P=PC
GOTO H5
:H21
IF ERRORLEVEL 3 GOTO H22
GOTO H23
:H22
ECHO ... Target machine is AX.
SET P=AX
GOTO H5
:H23
IF ERRORLEVEL 2 GOTO H24
GOTO H25
:H24
ECHO ... Target machine is PC-98XA.
SET P=XA
GOTO H5
:H25
IF ERRORLEVEL 1 GOTO H26
GOTO H27
:H26
ECHO ... Target machine is PC-9801 or PC-286 series.
SET P=98
GOTO H5
:H27
IF ERRORLEVEL 0 GOTO H28
GOTO H29
:H28
GOTO macherr
GOTO H5
:H29
:H5
IF EXIST %1\hterm.db GOTO H30
GOTO H31
:H30
del %1\hterm.db
:H31
:langerr
echo
ECHO Which do you like Japanese or English for hterm help system.
echo
ECHO 1. Japanese
ECHO 2. English
echo
bin\batchcom 0 "
Please select [12]
"
echo
IF ERRORLEVEL 2 GOTO H37
GOTO H38
:H37
IF ERRORLEVEL 3 GOTO H39
GOTO H40
:H39
GOTO langerr
:H40
ECHO copying help database file 'hterm.db'
copy bin\ahterm.db %1
ren %1\ahterm.db hterm.db
GOTO H32
:H38
IF ERRORLEVEL 1 GOTO H41
GOTO H42
:H41
ECHO copying help database file 'hterm.db'
copy bin\jhterm.db %1
ren %1\jhterm.db hterm.db
GOTO H32
:H42
IF ERRORLEVEL 0 GOTO H43
GOTO H44
:H43
GOTO langerr
GOTO H32
:H44
:H32
ECHO copying hterm executable file 'hterm.exe'
IF EXIST %1\hterm.exe GOTO H45
GOTO H46
:H45
del %1\hterm.exe
:H46
copy bin\hterm.%P% %1
ren %1\hterm.%P% hterm.exe
ECHO copying windows3.0 pif file 'hterm.pif'
IF EXIST %1\hterm.pif GOTO H47
GOTO H48
:H47
ren %1\hterm.pif htermpif.old
:H48
ECHO rename old hterm.pif to htermpif.old
copy bin\hterm.pif %1
IF %P%==PC GOTO H49
GOTO H50
:H49
ECHO copying hemacs executable file 'hemacs.exe'
IF EXIST %1\hemacs.exe GOTO H51
GOTO H52
:H51
del %1\hemacs.exe
:H52
copy bin\hemacs.%P% %1
ren %1\hemacs.%P% hemacs.exe
:H50
ECHO copying font file 'a14k14.hft'
copy bin\a14k14.hft %1
IF %P%==98 GOTO H53
GOTO H54
:H53
ECHO copying hkey executable 'hkey.exe'
copy bin\hkey.98 %1\hkey.exe
ECHO copying hkeyset executable 'hkeyset.exe'
copy bin\hkeyset.98 %1\hkeyset.exe
:H54
IF %P%==XA GOTO H55
GOTO H56
:H55
ECHO copying hkey executable 'hkey.exe'
copy bin\hkey.xa %1\hkey.exe
ECHO copying hkeyset executable 'hkeyset.exe'
copy bin\hkeyset.xa %1\hkeyset.exe
:H56
IF EXIST %1\hterm.set GOTO H57
GOTO H58
:H57
IF EXIST %1\htermset.old GOTO H59
GOTO H60
:H59
del %1\htermset.old
:H60
ECHO renaming old %1\hterm.set to htermset.old
ren %1\hterm.set htermset.old
:H58
IF EXIST %HOME%\hterm.set GOTO H61
GOTO H62
:H61
IF EXIST %HOME%\htermset.old GOTO H63
GOTO H64
:H63
del %HOME%\htermset.old
:H64
ECHO renaming old %HOME%\hterm.set to htermset.old
ren %HOME%\hterm.set htermset.old
:H62
echo
ECHO
INSTALL has done.
echo
echo
ECHO If you have old hterm.set anywhere, remove and rebuild it.
ECHO Manuals of hterm exist in doc directory.
ECHO amanual.doc is a manual in English and jmanual.doc is in Japanese.
echo
ECHO Enjoy!
:end1
del S.$
REM *-------------------------------------------------------------------*
REM ! end of all
REM *-------------------------------------------------------------------*
:exit