summaryrefslogtreecommitdiffstats
path: root/tools/meson-hwdb-update.sh (follow)
Commit message (Collapse)AuthorAgeFilesLines
* scripts: use 4 space indentationZbigniew Jędrzejewski-Szmek2019-04-121-12/+12
| | | | | | | | | | | | | | | | | | We had all kinds of indentation: 2 sp, 3 sp, 4 sp, 8 sp, and mixed. 4 sp was the most common, in particular the majority of scripts under test/ used that. Let's standarize on 4 sp, because many commandlines are long and there's a lot of nesting, and with 8sp indentation less stuff fits. 4 sp also seems to be the default indentation, so this will make it less likely that people will mess up if they don't load the editor config. (I think people often use vi, and vi has no support to load project-wide configuration automatically. We distribute a .vimrc file, but it is not loaded by default, and even the instructions in it seem to discourage its use for security reasons.) Also remove the few vim config lines that were left. We should either have them on all files, or none. Also remove some strange stuff like '#!/bin/env bash', yikes.
* Update UEFI URLs (#12260)Paul Menzel2019-04-091-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Use more secure https://www.uefi.org http://www.uefi.org directs to https://uefi.org/, so this saves one redirect. $ curl -I http://www.uefi.org HTTP/1.1 302 Found Server: nginx Date: Tue, 09 Apr 2019 14:54:46 GMT Content-Type: text/html; charset=iso-8859-1 Connection: keep-alive X-Content-Type-Options: nosniff Location: https://uefi.org/ Cache-Control: max-age=1209600 Expires: Tue, 23 Apr 2019 14:54:46 GMT Run the command below to update all occurrences. git grep -l http://www.uefi.org | xargs sed -i 's,http://www.uefi.org,https://www.uefi.org,' * Use https://uefi.org to save redirect Save one redirect by using the target location. $ curl -I https://www.uefi.org HTTP/1.1 301 Moved Permanently Server: nginx Date: Tue, 09 Apr 2019 14:55:42 GMT Content-Type: text/html; charset=iso-8859-1 Connection: keep-alive X-Content-Type-Options: nosniff Location: https://uefi.org/ Cache-Control: max-age=1209600 Expires: Tue, 23 Apr 2019 14:55:42 GMT Run the command below to update all occurrences. git grep -l https://www.uefi.org | xargs sed -i 's,https://www.uefi.org,https://uefi.org,'
* hwdb-update: make sure it works when run from mesonLennart Poettering2018-06-131-1/+3
| | | | | let's make the argument optional again, so that the command line "ninja -C build hwdb-update" runs works.
* tools/hwdb-update: allow downloads to failZbigniew Jędrzejewski-Szmek2018-03-021-0/+8
| | | | | sf.net is down, and linux-usb.org which is hosted there also fails. That's not nice, but there's not we can do about it now.
* tools/hwdb-update: print what is being executedZbigniew Jędrzejewski-Szmek2018-03-021-2/+4
|
* separate flags from shebangbleep_blop2017-12-251-1/+2
|
* meson-hwdb-update: fix undefined variable accessZbigniew Jędrzejewski-Szmek2017-12-141-2/+4
| | | | | | | I added the test if an optional parameter is not empty, but that doesn't work with -u. Provide an empty "fallback" value to fix the issue. Also group the update steps so that it's easier to see what is going on.
* hwdb: switch meson to use ids_parser.py (#6964)Zbigniew Jędrzejewski-Szmek2017-10-041-1/+1
| | | | Also drop the now-unused perl implementation (that doesn't do sorting), so it's incompatible anyway.
* hwdb: updateZbigniew Jędrzejewski-Szmek2017-10-021-1/+1
| | | | | http://www.uefi.org/uefi-pnp-export is returning an internal server error, so the previous version was used.
* meson-hwdb-update.sh: add -n param to skip downloadsZbigniew Jędrzejewski-Szmek2017-10-021-8/+10
| | | | Useful to experiment with the patching part w/o redownloading the files.
* meson: use "sh -eu" and make .sh +x, .py -xZbigniew Jędrzejewski-Szmek2017-04-241-1/+1
| | | | | | | | | Shell scripts should be executable so that meson reports their invocation succinctly (does not print 'sh' '-e'). Python scripts should not be executable so that meson does the detection of the right python binary itself. Add -u everywhere to catch potential errors.
* hwdb: use curl instead of wget, and regenerate patch after successful updateZbigniew Jędrzejewski-Szmek2017-04-241-7/+9
| | | | | | | | | | | | libcurl is already our build dependency, so using curl reduces the deps a bit, and curl also has a more modern codebase. Regenerating the patch makes it more likely that the patch will apply in the future. Also, update URLs which return 302 to the new location. (Patch suggested by Igor Gnatenko.)
* meson: add hwdb/update targetZbigniew Jędrzejewski-Szmek2017-04-241-0/+13