#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 Precise Pangolin: executable 'gdk-pixbuf-query-loaders' is not in $PATH...
#note: /etc/rc.d/rc.update runs this.
if [ ! -e usr/bin/gdk-pixbuf-query-loaders ];then
 #it is actually at usr/lib/gdk-pixbuf-2.0/
 GPQL="`find usr/lib -type f -executable -name gdk-pixbuf-query-loaders | head -n 1`"
 if [ "$GPQL" ];then
  mkdir -p usr/bin
  mv -f $GPQL usr/bin/
 fi
fi

