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

9 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