This is the recommended way to install deplate
. Ruby and
rubygems
have to be installed.
While connected to the internet:
gem install deplategem
Offline after having downloaded the gem package:
gem install deplate-VERSION.gem
Copy the win32 executable to a directory included in the PATH variable.
On the command line, go to the root directory of the deplate sources, where setup.rb resides.
cd PATHTODEPLATE
See which options are available.
ruby setup.rb --help
Setup the ruby library and the bash or batch script (depending on RUBY_PLATFORM). Copy the ruby files to ruby’s site-lib directory, and the script to an appropriate directory in $PATH.
ruby setup.rb config ruby setup.rb setup ruby setup.rb install
or just:
ruby setup.rb
Check if the modules show up correctly. At the bottom of the help text, there is a list of available formatting backends and modules. If this list is empty, something went wrong.
deplate --help
In case something goes wrong, here are the starter scripts. As shell script
#!/usr/bin/env ruby require 'deplate' Deplate::Core.deplate
and as batch script:
@echo off ruby -rdeplate -e Deplate::Core.deplate -- %*
If you use an “older” version of MS Win & command.exe
instead of cmd.exe, you might have to replace %*
with
%1 %2 %3 %4 %5 %6 %7 %8 %9
.
In case you want to customize deplate, you should also build the api documentation.
rdoc -S -N lib/deplate
This will install the following files/directories:
[RUBY_BIN]/deplate[.bat]
[RUBY_SITELIB]/deplate.rb
[RUBY_SITELIB]/deplate/...
setup.rb
doesn’t provide an automatic uninstall
routine. In order to remove deplate
from your harddisk, you
can either remove these directories and files by hand or you could try
the following command:
rm -fv `cat InstalledFiles`
This requires of course that you keep the file “InstalledFiles” which is generated during installation.