<commit_before>#! /bin/sh

# Script to generate the file include/compiledata.h.
# Called by main Makefile.
#
# Author: <NAME>, 29/2/2000

COMPILEDATA=$1
CXX=$2
CXXOPT=$3
CXXDEBUG=$4
CXXFLAGS=$5
SOFLAGS=$6
LDFLAGS=$7
SOEXT=$8
SYSLIBS=$9
shift
LIBDIR=$9
shift
ROOTLIBS=$9
shift
RINTLIBS=$9
shift
INCDIR=$9
shift
CUSTOMSHARED=$9
shift
CUSTOMEXE=$9
shift
ARCH=$9
shift
ROOTBUILD=$9
shift

MACOSXTARGET=""

if [ "$INCDIR" = "$ROOTSYS/include" ]; then
   INCDIR=\$ROOTSYS/include
fi
if [ "$LIBDIR" = "$ROOTSYS/lib" ]; then
   LIBDIR=\$ROOTSYS/lib
fi

if [ "$ARCH" = "macosx" ]; then
   macosx_minor=`sw_vers -productVersion | cut -d'.' -f2`
   SOEXT="so"
   if [ $macosx_minor -ge 3 ]; then
      SOFLAGS="-bundle $OPT -flat_namespace -undefined dynamic_lookup"
      MACOSXTARGET="MACOSX_DEPLOYMENT_TARGET=10.3"
   else
      SOFLAGS="-bundle $OPT -flat_namespace -undefined suppress"
   fi
   LDFLAGS=`echo $LDFLAGS | sed  -e "s/ -flat_namespace / /" -e "s/ -$OPT / /" `<commit_msg>use the MacOS X command sw_vers in a backward compatible way.<commit_after>#! /bin/sh

# Script to generate the file include/compiledata.h.
# Called by main Makefile.
#
# Author: <NAME>, 29/2/2000

COMPILEDATA=$1
CXX=$2
CXXOPT=$3
CXXDEBUG=$4
CXXFLAGS=$5
SOFLAGS=$6
LDFLAGS=$7
SOEXT=$8
SYSLIBS=$9
shift
LIBDIR=$9
shift
ROOTLIBS=$9
shift
RINTLIBS=$9
shift
INCDIR=$9
shift
CUSTOMSHARED=$9
shift
CUSTOMEXE=$9
shift
ARCH=$9
shift
ROOTBUILD=$9
shift

MACOSXTARGET=""

if [ "$INCDIR" = "$ROOTSYS/include" ]; then
   INCDIR=\$ROOTSYS/include
fi
if [ "$LIBDIR" = "$ROOTSYS/lib" ]; then
   LIBDIR=\$ROOTSYS/lib
fi

if [ "$ARCH" = "macosx" ]; then
   macosx_minor=`sw_vers | sed -n 's/ProductVersion:[[:blank:]]*[0-9]*.\([0-9]*\).[0-9]*/\1/p'`
   SOEXT="so"
   if [ $macosx_minor -ge 3 ]; then
      SOFLAGS="-bundle $OPT -flat_namespace -undefined dynamic_lookup"
      MACOSXTARGET="MACOSX_DEPLOYMENT_TARGET=10.3"
   else
      SOFLAGS="-bundle $OPT -flat_namespace -undefined suppress"
   fi
   LDFLAGS=`echo $LDFLAGS | sed  -e "s/ -flat_namespace / /" -e "s/ -$OPT / /" `
{'fraction_non_alphanumeric': 0.16454456415279137, 'fraction_numerical': 0.031341821743388835, 'mean_word_length': 3.9708029197080292, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6168150', 'n_tokens_mistral': 867, 'n_tokens_neox': 824, 'n_words': 191}