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

# i don't recall why, but there may be reason why these should be in both
# /usr/bin and /bin (some scripts unfortunately have the paths hardwired)...
# ah, it might have been my 'unipup' experiment, that loaded /usr as a sfs
# and needed to have these usable before /usr got loaded.

rXARGSFILE="`find ./ -type f -name xargs | head -n 1`"
rFINDFILE="`find ./ -type f -name find | head -n 1`"

if [ "$rXARGSFILE" != "./bin/xargs" ];then
 rm ./bin/xargs 2>/dev/null
 mv ${rXARGSFILE} bin/xargs
fi
ln -snf  ../../bin/xargs usr/bin/xargs

if [ "$rFINDFILE" != "./bin/find" ];then
 rm ./bin/find 2>/dev/null
 mv ${rFINDFILE} bin/find
fi
ln -snf  ../../bin/find usr/bin/find

