summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--util/board_status/to-wiki/README4
-rwxr-xr-xutil/board_status/to-wiki/push-to-wiki.sh3
2 files changed, 4 insertions, 3 deletions
diff --git a/util/board_status/to-wiki/README b/util/board_status/to-wiki/README
index 2bdff5a6af..0a0d591c87 100644
--- a/util/board_status/to-wiki/README
+++ b/util/board_status/to-wiki/README
@@ -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
diff --git a/util/board_status/to-wiki/push-to-wiki.sh b/util/board_status/to-wiki/push-to-wiki.sh
index fb011c1cc1..58e2cbb064 100755
--- a/util/board_status/to-wiki/push-to-wiki.sh
+++ b/util/board_status/to-wiki/push-to-wiki.sh
@@ -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