| # This file is part of the flashrom project. |
| # This program is free software; you can redistribute it and/or modify |
| # it under the terms of the GNU General Public License as published by |
| # the Free Software Foundation; either version 2 of the License, or |
| # (at your option) any later version. |
| # This program is distributed in the hope that it will be useful, |
| # but WITHOUT ANY WARRANTY; without even the implied warranty of |
| # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| # GNU General Public License for more details. |
| GETREVISION=$(dirname ${0})/getrevision.sh |
| if ${GETREVISION} -c; then |
| tmp=$(${GETREVISION} --revision) |
| if [ "$v" = unknown -a -r versioninfo.inc ]; then |
| v=$(sed -n 's/^VERSION = //p' versioninfo.inc) |
| if ${GETREVISION} -c flashprog.8.tmpl; then |
| tmp=$(${GETREVISION} --date flashprog.8.tmpl) |
| if [ "$d" = unknown -a -r versioninfo.inc ]; then |
| d=$(sed -n 's/^MAN_DATE = //p' versioninfo.inc) |
| return current/release flashprog version |
| return current/release date of the manual page |
| echo "Error: Only exactly one command allowed.">&2 |
| echo "Error: Invalid option: $1" |