Skip to content
Snippets Groups Projects
  1. Oct 03, 2020
    • Gaël Bonithon's avatar
      xdt-autogen: Various small improvements · ec0295a9
      Gaël Bonithon authored
      - quoting
      - replace backticks with $()
      - replace 'test "x$var"' with 'test "$var"'
      - replace $(pwd) with $PWD
      - simplify the command to search for languages
      - do not use subshell when unneeded
      - do not use redirection when unneeded
      - directly test command exit codes instead of using $?
      - readability (useless ";", indenting)
      ec0295a9
    • Gaël Bonithon's avatar
      xdt-autogen: Properly handle whitespaces in filenames · 72483f0e
      Gaël Bonithon authored
      and more generally special characters different from '\1'.
      
      This is achieved by replacing the filename separator ' ' with '\1' in
      lookup_configure_ac_*(), and the default IFS=' \t\n' with IFS='\1', but
      only where necessary: the default IFS is usually required for things to
      go as expected.
      
      So we have to do an IFS round-trip substitution around each "for" loop
      on filenames, just before and just after pathname expansion by the
      shell.
      
      Additionally, when running $XDT_PROG_ACLOCAL, one has to define some
      new variables ACLOCAL_DIR and use conditional parameter expansion, to
      properly set the program flags:
      $XDT_PROG_ACLOCAL ${ACLOCAL_DIR:+-I "$ACLOCAL_DIR"}
      
      Finally, one has to take care of some non optional quoting
      (strictly speaking, some are optional in this commit, but I preferred
      not to cut as close as possible and to keep an overall coherence).
      72483f0e
    • Gaël Bonithon's avatar
      xdt-autogen: Use sed instead of tr to replace strings · 3e01e213
      Gaël Bonithon authored
      The purpose of the current code seems to be to replace the strings
      '\t', '\n' and '\\' by a single space ' ', not the characters
      "horizontal tab", "line feed" and "backslash" by a single space.
      
      So the right command to do this is sed, not tr, which doesn't do the
      job expected here.
      3e01e213
  2. Sep 18, 2020
  3. Jul 18, 2020
  4. Jul 12, 2020
  5. Jul 09, 2020
  6. Jul 08, 2020
  7. Jul 07, 2020
  8. Jun 24, 2020
  9. Jun 18, 2020
  10. Jun 16, 2020
  11. Jun 11, 2020
  12. Jun 04, 2020
  13. May 26, 2020
  14. May 18, 2020
  15. May 15, 2020
Loading