File: wrapper.irc

package info (click to toggle)
epic4 1%3A3.0-2.2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,756 kB
  • sloc: ansic: 56,285; makefile: 631; sh: 161; perl: 30
file content (26 lines) | stat: -rw-r--r-- 846 bytes parent folder | download | duplicates (12)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# wrapper.irc
#
# Some scripts require things like being in a directory in your LOAD_PATH
# ~/.such as irc or similar locations.  In order to accomidate these
# scripts installed globally, it may be necessary to load a wrapper script
# first.  This wrapper will add a pair of directories to your path.  For
# most scripts, changing the name of the first variable should do the trick.

^assign _wrapper.name #SCRIPT#
^assign _wrapper.conf /etc/epic4
^assign _wrapper.dir /usr/share/epic4

unless (match($_wrapper.conf/$_wrapper.name $split(: $LOAD_PATH))) {
  ^set LOAD_PATH $LOAD_PATH:$_wrapper.conf/$_wrapper.name
}
unless (match($_wrapper.dir/$_wrapper.name $split(: $LOAD_PATH))) {
  ^set LOAD_PATH $LOAD_PATH:$_wrapper.dir/$_wrapper.name
}


## Anything else your script needs, put it here...


load $_wrapper.name\-real.irc
^purge _wrapper