1. 09 Dec, 2021 1 commit
  2. 20 Nov, 2021 3 commits
  3. 15 Nov, 2021 1 commit
  4. 27 Oct, 2021 1 commit
  5. 26 Oct, 2021 1 commit
  6. 12 Mar, 2021 1 commit
  7. 10 Jan, 2019 1 commit
  8. 08 Oct, 2018 3 commits
  9. 27 Jun, 2018 2 commits
  10. 08 Apr, 2018 2 commits
    • Luke Shumaker's avatar
      Consistently use "$(dirname "$(readlink -e "$0")")" · 0cf2ac49
      Luke Shumaker authored and Eli Schwartz's avatar Eli Schwartz committed
      This does correct handling of
       - executing a program by symlink
       - any weird characters in the full path
       - I'm sure there's another case I thought about when I originally did
         this.
      0cf2ac49
    • Luke Shumaker's avatar
      Fixup quoting around variables, especially arrays · 5b4b19cd
      Luke Shumaker authored and Eli Schwartz's avatar Eli Schwartz committed
      Search for unquoted variables using the command:
      
          grep -Prn --exclude-dir=.git '(?<!["=]|\[\[ |\[\[ -[zn] )\$(?!{?#|\(|\? )'
      
      and ignore a bunch of false positives.
      
      You may verify that the only differences between the lines removed and
      lines added are double-quotes:
      
              diff -u \
                <(git show|sed -n 's/^-//p'|grep -v '^-- a/'|sed 's/"//g') \
                <(git show|sed -n 's/^+//p'|grep -v '^++ b/'|sed 's/"//g')
      5b4b19cd
  11. 16 Mar, 2018 1 commit
    • Luke Shumaker's avatar
      Update messages to make fuller use of printf formatters · 33aae318
      Luke Shumaker authored and Eli Schwartz's avatar Eli Schwartz committed
      These are things that were (IMO) missed in 5afac1ed.  I found them using:
      
          git grep -E '(plain|msg|msg2|warning|error|die) "[^"]*\$'
      
      I went a little above-and-beyond for escaping strings for the error
      messages in db-functions' arch_repo_add and arch_repo_remove.  The
      code should explain itself, but I wanted to point it out, as it's more than
      the usual "slap %s in there, and move the ${...} to the right".
      33aae318
  12. 26 Feb, 2018 1 commit
  13. 20 Feb, 2018 1 commit
    • Eli Schwartz's avatar
      Fix overloading PKGEXT to mean two things. · 07e6a91d
      Eli Schwartz authored
      PKGEXT is a makepkg variable referring to a fixed filename suffix, but
      we were also using it to mean a bash glob referring to candidate
      filenames. This is wrong, so rename it to PKGEXTS which is more
      descriptive of its purpose.
      
      Exclude the testsuite from this change, as the testsuite actually uses
      PKGEXT for its intended purpose. Fix the testsuite to consistently use
      PKGEXT, as it hardcoded the file extension in several cases, and pin
      its value to .pkg.tar.xz
      07e6a91d
  14. 15 Feb, 2018 3 commits
    • Eli Schwartz's avatar
      Use more bashisms · b61a7148
      Eli Schwartz authored
      Fix numerous instances of POSIX `[ ... ]`, including reliance on ugly
      deprecated constructs like POSIX `-a`. Since we require bash regardless,
      it makes sense to take full advantage of it.
      
      bash `[[ ... ]]` does not require quoting variables as the shell
      natively recognizes them as variables rather than expanded strings.
      
      Use shell arithmetic rather than test, when checking numerical values.
      b61a7148
    • Eli Schwartz's avatar
      Use modern bash to append to strings/arrays. · f4f9d1a0
      Eli Schwartz authored
      Rather than using ugly hacks like arr[${#arr[*]}]="foo", bash 3.1 has
      the += operator.
      
      Update strings to use the same operator while we are at it.
      f4f9d1a0
    • Eli Schwartz's avatar
      Update messages to make full use of printf formatters · 5afac1ed
      Eli Schwartz authored
      libmakepkg messaging functions provide automatic access to gettext
      (which we do not currently make use of) in addition to cleanly
      separating data from message strings.
      
      In order for this to work properly, pass argv correctly from die() to
      libmakepkg's error()
      5afac1ed
  15. 18 Apr, 2017 1 commit
  16. 27 Oct, 2012 1 commit
  17. 28 Jul, 2012 1 commit
  18. 16 Jun, 2012 1 commit
  19. 10 Jun, 2012 2 commits
  20. 29 Apr, 2012 1 commit
  21. 19 Dec, 2011 1 commit
  22. 13 Aug, 2011 2 commits
  23. 02 Apr, 2011 1 commit
  24. 23 Mar, 2011 1 commit
  25. 15 Jan, 2011 1 commit
  26. 11 Sep, 2010 1 commit
    • Pierre Schmitz's avatar
      Use local config instead of guessing by hostname · f121126f
      Pierre Schmitz authored
      Using the hostname to decide which repos to use is not releiable and hard to test.
      Instead use config.local to configure these.
      
      config files for sigurd and gerolde were added which can be copied or symlinked to config.local
      on the specific host.
      f121126f
  27. 02 Sep, 2010 1 commit
  28. 17 Aug, 2010 1 commit
  29. 15 Aug, 2010 2 commits