# TSE Pro 4.48 - The SemWare Editor
# ============
# With all of the options available in Linux:
# vim, gVim, joe, pico, nano, Kate, Emacs, Notepadqq, Bluefish, ...
# as a former Qedit user a long, long time ago, this is mainly only
# here for posterity/curiosity about the modern version of it.
# Get it
cd
test -f installed/tse-linux-4.48.tgz &&
mv -f tse-linux-4.48.tgz .
test ! -f tse-linux-4.48.tgz &&
wget https://semware.com/files/tse-pro-install/tse-linux-4.48.tgz
# I won't get in to a religious discussion about ~ vs /usr/local vs /opt vs /var or
# whatever, adjust the path used here as you see fit...
# Remove old versions installed in a 'tse' directory under your home directory
test -d ~/tse && rm -r ~/tse
find -maxdepth 1 -type d -name "tse-linux-*" -exec rm -r {} \;
# Extract The SemWare Editor in to ~/tse/
mkdir -p -m 0700 ~/tse
cd ~/tse
tar xzvf ~/tse-linux-4.48.tgz
## If you want to be able to just run 'e', rather than '~/tse/e',
## add ~/tse to your PATH. Depending on your setup, you can do this
## via .bash_login or .bashrc or .profile
# test -d $HOME/tse && export PATH=$PATH:$HOME/tse
# Save the tarball for later
cd
mkdir -p -m 0700 installed
rm -f installed/tse-linux-*.tgz
mv -f tse-linux-4.48.tgz installed/