1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-19 03:52:17 +00:00
freebsd-ports/x11/xbindkeys/scripts/post-install
Ying-Chieh Liao 5098d66096 * added knob WITH_GUI
* added scripts/post-install
* bumped PORTREVISION, because xbindkeys_show does not work prior to
  these changes

PR:		36366
Submitted by:	maintainer
2002-03-27 14:06:50 +00:00

10 lines
365 B
Bash

#!/bin/sh
if [ ${WITH_GUI} ]
then
WISHPROGNAME=`ls $(echo $PATH | sed 's/:/ /g') 2> /dev/null | egrep '^wish(step)?(x|([0-9]+\.[0-9]+))([a-z][a-z])?$' | head -1`
sed -e "s/wish/${WISHPROGNAME}/" < ${WRKSRC}/xbindkeys_show > ${WRKSRC}/xbindkeys_show.fix
chmod a+x ${WRKSRC}/xbindkeys_show.fix
cp -p ${WRKSRC}/xbindkeys_show.fix ${PREFIX}/bin/xbindkeys_show
fi