source: abuse/tags/pd/abuse/abuse.in @ 49

Last change on this file since 49 was 49, checked in by Sam Hocevar, 11 years ago
  • Imported original public domain release, for future reference.
File size: 708 bytes
Line 
1#! /bin/sh
2
3[ -d ${HOME}/.abuse ] || mkdir ${HOME}/.abuse || exit 1
4
5prefix=@prefix@
6exec_prefix=@exec_prefix@
7ddir=@datadir@/abuse
8xdir=@libdir@/abuse
9
10mydir=`dirname $0`
11if [ -f ${mydir}/Makefile ]; then
12  ddir=`cd @srcdir@; pwd`
13  xdir=`cd ${mydir}; pwd`
14fi
15
16cd ${HOME}/.abuse || exit 1
17
18rm -f abuse.lsp art levels lisp register sfx light.tbl
19ln -s ${ddir}/abuse.lsp ${ddir}/art ${ddir}/levels ${ddir}/lisp \
20  ${ddir}/register ${ddir}/sfx ${ddir}/light.tbl . || exit 1
21
22trap "rm -f abuse.lsp art levels lisp register sfx light.tbl core end.mem fastload.dat sd_cache.tmp" 0 1 2 15
23
24PATH=${xdir}:${PATH}
25export PATH
26
27if [ x$TERM = xlinux ]; then
28  abuse.console ${1:+"$@"}
29else
30  abuse.x11R6 ${1:+"$@"}
31fi
Note: See TracBrowser for help on using the repository browser.