diff options
author | jlam <jlam@pkgsrc.org> | 2003-08-30 20:22:49 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2003-08-30 20:22:49 +0000 |
commit | 2920a32c71bae3a6a02b2c5c0576d9a60b9a0594 (patch) | |
tree | d334e2fd95050def4488e848ea48612e6f9103a4 /x11/xterm/INSTALL | |
parent | 2ebf5a7dc8b33d5f29466890b65a69e886f19281 (diff) | |
download | pkgsrc-2920a32c71bae3a6a02b2c5c0576d9a60b9a0594.tar.gz |
Prepare for pkgviews by making sure that passing VIEW-INSTALL or
VIEW-DEINSTALL to the INSTALL/DEINSTALL scripts don't cause errors.
Diffstat (limited to 'x11/xterm/INSTALL')
-rw-r--r-- | x11/xterm/INSTALL | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/x11/xterm/INSTALL b/x11/xterm/INSTALL index 36c63f64133..fad096a3545 100644 --- a/x11/xterm/INSTALL +++ b/x11/xterm/INSTALL @@ -1,6 +1,6 @@ #!/bin/sh # -# $NetBSD: INSTALL,v 1.2 2001/12/17 14:47:02 tron Exp $ +# $NetBSD: INSTALL,v 1.3 2003/08/30 20:23:08 jlam Exp $ PKGNAME=$1 STAGE=$2 @@ -9,7 +9,7 @@ CONFLICTS="bin/resize bin/xterm lib/app-defaults/XTerm share/man/man1/resize.1 s case ${STAGE} in PRE-INSTALL) - cd @PREFIX@ + cd ${PKG_PREFIX} for FILE in $CONFLICTS do if [ -f $FILE ] @@ -20,7 +20,7 @@ PRE-INSTALL) ;; POST-INSTALL) - cd @PREFIX@/lib/X11/etc + cd ${PKG_PREFIX}/lib/X11/etc TERMINFO=@LOCALBASE@/share/lib/terminfo export TERMINFO /usr/5bin/tic xterm.terminfo @@ -30,7 +30,7 @@ DEINSTALL) ;; POST-DEINSTALL) - cd @PREFIX@ + cd ${PKG_PREFIX} for FILE in $CONFLICTS do if [ -f ${FILE}.openwin ] @@ -39,10 +39,5 @@ POST-DEINSTALL) fi done ;; - -*) - echo "Unexpected argument: ${STAGE}" - exit 1 - ;; esac exit 0 |