scripts/functions: Use stat correctly on non-GNU (BSD/Darwin) systems.
Call to get the directory mode depending on $CT_SYS_OS
yann.morin.1998@anciens.enib.fr:
CT_SYS_OS has changed on Linuxsystem, it only gets the kernel name "Linux",
and not the system name, 'GNU/'.
1 --- binutils/libiberty/Makefile.in.mps 2004-05-13 15:53:17.000000000 +0200
2 +++ binutils/libiberty/Makefile.in 2004-05-13 15:52:53.000000000 +0200
3 @@ -224,6 +224,7 @@ $(TARGETLIB): $(REQUIRED_OFILES) $(EXTRA
4 $(AR) $(AR_FLAGS) $(TARGETLIB) \
5 $(REQUIRED_OFILES) $(EXTRA_OFILES) $(LIBOBJS); \
6 $(RANLIB) $(TARGETLIB); \
7 + cp $(TARGETLIB) ../ ; \