board-status: make push-to-wiki more flexible
Change-Id: I952a694f645caf9d9726965e39afc09c6fdce0e3 Signed-off-by: Patrick Georgi <pgeorgi@chromium.org> Reviewed-on: https://review.coreboot.org/13741 Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth <martinroth@google.com> Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
This commit is contained in:
parent
8a0dae628f
commit
2d5d552fa5
|
@ -18,8 +18,8 @@ To emit wiki-text, in the board-status repository's top-level directory, run
|
|||
|
||||
The output ends up on stdout, so you'll have to store it yourself, if you need it later.
|
||||
|
||||
`push-to-wiki.sh FILENAME` can be used to push a file into the wiki. The page name is hard coded
|
||||
in TITLE, while user credentials are looked up in ~/.wikiaccount, which should look like
|
||||
`push-to-wiki.sh FILENAME TITLE` can be used to push a file into the wiki.
|
||||
User credentials are looked up in ~/.wikiaccount, which should look like
|
||||
|
||||
USERNAME=user
|
||||
USERPASS=password
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
#!/bin/bash
|
||||
# $1: file containing text
|
||||
# $2: wiki page to update
|
||||
|
||||
. ~/.wikiaccount
|
||||
WIKIAPI="http://www.coreboot.org/api.php"
|
||||
TITLE="Supported_Motherboards"
|
||||
TITLE="$2"
|
||||
cookie_jar="$HOME/.wikicookiejar"
|
||||
#Will store file in wikifile
|
||||
|
||||
|
|
Loading…
Reference in New Issue