home *** CD-ROM | disk | FTP | other *** search
- ; $VER: TextRead install 37.16 (7.11.92)
- FailAt 21
-
- Echo "*E[0;0H*E[J*E[1m*E[32mTextRead 1.03*E[31m Installation Script*n*E[0m"
-
- cd libs
-
- set prog powerpacker.library
- Version >NIL: LIBS:$prog version 35 344
- set result $rc
- set ny `version $prog`
- If $result eq 5
- Echo "*nVersion of $prog already installed:*E[1m"
- Version LIBS:$prog
- Echo "*E[0m"
- ask "Do you want to upgrade to $ny (y/N) ?"
- If WARN
- Copy $prog LIBS:$prog
- Echo "*n$ny copied to your LIBS: directory."
- EndIf
- endif
- if $result eq 10
- echo "You don't have $prog. Copying..."
- Copy $prog LIBS:$prog
- endif
- if $result eq 0
- echo "Your $prog is up to date."
- endif
-
- set prog reqtools.library
- Version >NIL: LIBS:$prog version 38 693
- set result $rc
- set ny `version $prog`
- If $result eq 5
- Echo "*nVersion of $prog already installed:*E[1m"
- Version LIBS:$prog
- Echo "*E[0m"
- ask "Do you want to upgrade to $ny (y/N) ?"
- If WARN
- Copy $prog LIBS:$prog
- Echo "*n$ny copied to your LIBS: directory."
- EndIf
- endif
- if $result eq 10
- echo "You don't have $prog. Copying..."
- Copy $prog LIBS:$prog
- endif
- if $result eq 0
- echo "Your $prog is up to date."
- endif
-
- cd /
- set ny `version TextRead`
- Ask "*nInstall $ny (y/N) ?"
- If WARN
- set dir "SYS:Utilities"
- echo "*nEnter full path to directory where TextRead is to be installed."
- echo "Press <RETURN> to install in SYS:Utilities."
- echo "Path: " NOLINE
- set >nil: <* dir ?
-
- set temp "TextRead"
- Version >NIL: "$dir$temp"
- If NOT ERROR
- Echo "*nVersion of TextRead already installed:*E[1m"
- Version SYS:Utilities/TextRead
- Echo "*E[0m"
- ask "Proceed (y/N)?"
- if NOT WARN
- skip ok
- endif
- else
- Version >NIL: "$dir/$temp"
- If NOT ERROR
- Echo "*nVersion of TextRead already installed:*E[1m"
- Version SYS:Utilities/TextRead
- Echo "*E[0m"
- ask "Proceed (y/N)"
- if NOT WARN
- skip ok
- endif
- EndIf
- EndIf
- unset temp
- set current `cd`
- cd >nil: "$dir"
- if FAIL
- Ask "Directory doesn't exists. Want to create it (y/N)?"
- if WARN
- makedir "$dir"
- if ERROR
- skip error
- endif
- copy Drawer.noinfo $dir.info
- echo "Created $dir"
- echo "Created Icon for $dir"
- else
- skip ok
- endif
- endif
- cd "$current"
- unset current
-
- Copy TextRead "$dir"
- if FAIL
- skip error
- endif
- Copy TextRead.info "$dir"
- if FAIL
- skip error
- endif
- Echo "*nTextRead 1.03 (37.16) copied to " NOLINE
- get dir
- Copy TextRead.doc "$dir"
- if FAIL
- skip error
- endif
- Copy TextRead.doc.info "$dir"
- if FAIL
- skip error
- endif
- Echo "TextRead.doc copied to " NOLINE
- get dir
- Copy TextRead.prefs "$dir"
- if FAIL
- skip error
- endif
- Copy TextRead.prefs.info "$dir"
- if FAIL
- skip error
- endif
- Echo "TextRead.prefs copied to " NOLINE
- get dir
- unset dir
- endif
-
- lab ok
- Echo "*nInstallation complete."
- skip exit
- lab error
- Echo "*n*E[1mInstallation failed.*E[0m"
- lab exit
- unset ny
- unset prog
- unset result
- Avail >NIL: FLUSH
- Echo "Close Window!"
- EndCLI >NIL:
-