<commit_before>setlocal
call settings.bat

call fetch.bat http://www.gaia-gis.it/gaia-sins/freexl-1.0.0g.zip freexl-1.0.0g

cd freexl-1.0.0g

if "%COMPILER%" == "MINGW" (
   echo "Sorry, MINGW is not supported for now"
   exit /b 1
)

"%SEDC%" -i nmake.opt -e s@INSTDIR=.*@INSTDIR=\$\(PREFIX\)@"

if "%Variant%" == "Debug" (
   "%SEDC%" -i nmake.opt -e "s@\/MD @\/MDd \/Zi @"
   "%SEDC%" -i nmake.opt -e "s@\/Ox@@"
)

"%SEDC%" -i makefile.vc -e "s@C:\\\\OSGeo4W@$(PREFIX)@g"
"%SEDC%" -i makefile.vc -e "s@C:\\\\OSGeo4w@$(PREFIX)@g"

"%SEDC%" -i config-msvc.h -e "s@HAVE_UNISTD_H@HAVE_NOT_UNISTD_H@g"

"%SEDC%" -i "src/freexl.c" -e "s@round (double@round_old (double@"
"%SEDC%" -i "src/freexl.c" -e "s@lround (double@lround_old (double@"

nmake -f makefile.vc install
%ER%<commit_msg>support FreeXL on MinGW+MSYS<commit_after>setlocal
call settings.bat

call fetch.bat http://www.gaia-gis.it/gaia-sins/freexl-1.0.0g.zip freexl-1.0.0g

cd freexl-1.0.0g

if "%COMPILER%" == "MINGW" (
  if NOT EXIST Makefile (bash -c "./configure --prefix=%PREFIX:\=/%")
  %ER%
  bash -c "make install"
  %ER%
) else (
"%SEDC%" -i nmake.opt -e "s@INSTDIR=.*@INSTDIR=\$\(PREFIX\)@"

if "%Variant%" == "Debug" (
   "%SEDC%" -i nmake.opt -e "s@\/MD @\/MDd \/Zi @"
   "%SEDC%" -i nmake.opt -e "s@\/Ox@@"
)

"%SEDC%" -i makefile.vc -e "s@C:\\\\OSGeo4W@$(PREFIX)@g"
"%SEDC%" -i makefile.vc -e "s@C:\\\\OSGeo4w@$(PREFIX)@g"

"%SEDC%" -i config-msvc.h -e "s@HAVE_UNISTD_H@HAVE_NOT_UNISTD_H@g"

"%SEDC%" -i "src/freexl.c" -e "s@round (double@round_old (double@"
"%SEDC%" -i "src/freexl.c" -e "s@lround (double@lround_old (double@"

nmake -f makefile.vc install
%ER%
)

{'fraction_non_alphanumeric': 0.2483221476510067, 'fraction_numerical': 0.014032946918852958, 'mean_word_length': 3.4686648501362396, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '5063575', 'n_tokens_mistral': 840, 'n_tokens_neox': 825, 'n_words': 160}