File: wrapper.irc

package info (click to toggle)
epic4 1%3A2.2-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 3,600 kB
  • ctags: 5,377
  • sloc: ansic: 55,723; makefile: 656; sh: 158; perl: 30
file content (26 lines) | stat: -rw-r--r-- 846 bytes parent folder | download | duplicates (11)
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