#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.

#get rid of the vmware dri driver...
if [ "$xARCHDIR" ];then #140117
 [ -f usr/lib/${ARCHDIR}/dri/vmwgfx_dri.so ] && rm -f usr/lib/${ARCHDIR}/dri/vmwgfx_dri.so
fi
[ -f usr/lib/dri/vmwgfx_dri.so ] && rm -f usr/lib/dri/vmwgfx_dri.so

#raring pup has this...
if [ "$xARCHDIR" ];then #140117
 [ -f usr/lib/${ARCHDIR}/gallium-pipe/pipe_vmwgfx.so ] && rm -f usr/lib/${ARCHDIR}/gallium-pipe/pipe_vmwgfx.so
fi
[ -f usr/lib/gallium-pipe/pipe_vmwgfx.so ] && rm -f usr/lib/gallium-pipe/pipe_vmwgfx.so

