#if the pkg created in packages-woof has something wrong, this file is a last
#resort to fix it. Current-dir is where this file FIXUPHACK is located.
#note: DISTRO_BINARY_COMPAT and DISTRO_FILE_PREFIX are visible here, exported in 2createpackages.
#140117 xARCHDIR, ARCHDIR and DISTRO_ARCHDIR_SYMLINKS exported in 2createpackages. 
#140117 note, 2createpackages may move /lib, /usr/lib, /usr/bin in template to ARCHDIR subdir.

#ubuntu names it as 'rxvt-xpm'...
#[ -e usr/bin/rxvt-xpm ] && ln -snf rxvt-xpm usr/bin/rxvt
if [ "$xARCHDIR" ];then #140117
 if [ -f usr/bin/${ARCHDIR}/rxvt-xpm ];then
  mv -f usr/bin/${ARCHDIR}/rxvt-xpm usr/bin/${ARCHDIR}/rxvt
 fi
fi
if [ -f usr/bin/rxvt-xpm ];then
 mv -f usr/bin/rxvt-xpm usr/bin/rxvt
fi
