[riot-commits] [RIOT-OS/RIOT] a70ee0: make: centralize wget/curl & unzip/7z feature test

René Kijewski kijewski at mi.fu-berlin.de
Thu Aug 21 21:23:31 CEST 2014


  Branch: refs/heads/master
  Home:   https://github.com/RIOT-OS/RIOT
  Commit: a70ee0f0220a6da162503f953f850098079eb4e2
      https://github.com/RIOT-OS/RIOT/commit/a70ee0f0220a6da162503f953f850098079eb4e2
  Author: René Kijewski <rene.kijewski at fu-berlin.de>
  Date:   2014-08-21 (Thu, 21 Aug 2014)

  Changed paths:
    M Makefile.buildtests
    M Makefile.include
    M Makefile.vars
    M boards/x86-multiboot-common/Makefile.include
    M pkg/Makefile.http
    M pkg/openwsn/Makefile
    M pkg/tlsf/Makefile

  Log Message:
  -----------
  make: centralize wget/curl & unzip/7z feature test

With many open PRs that could benefit from loading SDKs when needed,
instead adding vast amounts of code to RIOTs master, this PR provides
the "functions" `$(DOWNLOAD_TO_STDOUT)`, `$(DOWNLOAD_TO_FILE)`, and
`$(UNZIP_HERE)`.

The first "function" takes one argument, the URL from where to download
the content. It is then piped to stdout. To be used e.g. with `tar xz`.

The second "function" taken two arguments, the destination file name,
and the source URL. If the previous invocation was interrupted, then the
download gets continued, if possible.

The last "function" takes one argument, the source ZIP file. The file
gets extracted into the cwd, so best use this "function" with
`cd $(SOME_WHERE) &&`.

The clumsy name `$(UNZIP_HERE)` is taken because the program "unzip"
takes the environment variable `UNZIP` as the source file, even if
another file name was given on the command line. The rationale for that
is that the hackers of "unzip" hate their users. Also they sacrifice
hamsters to Satan.


  Commit: b22c2f4ab5ee6c17929c9aa72967fff731110456
      https://github.com/RIOT-OS/RIOT/commit/b22c2f4ab5ee6c17929c9aa72967fff731110456
  Author: René Kijewski <kijewski at mi.fu-berlin.de>
  Date:   2014-08-21 (Thu, 21 Aug 2014)

  Changed paths:
    M Makefile.buildtests
    M Makefile.include
    M Makefile.vars
    M boards/x86-multiboot-common/Makefile.include
    M pkg/Makefile.http
    M pkg/openwsn/Makefile
    M pkg/tlsf/Makefile

  Log Message:
  -----------
  Merge pull request #1431 from Kijewski/wget-for-everyone-woooohooooo

make: centralize wget/curl & unzip/7z feature test


Compare: https://github.com/RIOT-OS/RIOT/compare/8ed9704261bb...b22c2f4ab5ee


More information about the commits mailing list