summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2012-01-22 02:25:33 (EST)
committer P. J. McDermott <pjm@nac.net>2012-01-22 02:25:33 (EST)
commit5786cc61824d7758bc8dca7003e86b7188f4e52d (patch)
tree8277b06097aaefd81ee452bfa9e3496d1d57e6e1
parentb1a6a77bc6b61bacb78c777da5a8b2c78beb97c3 (diff)
Document '-r' option of opkbuild.
-rw-r--r--man/opkbuild.18
-rw-r--r--src/opkbuild2
2 files changed, 8 insertions, 2 deletions
diff --git a/man/opkbuild.1 b/man/opkbuild.1
index 24c8a65..cb15549 100644
--- a/man/opkbuild.1
+++ b/man/opkbuild.1
@@ -1,12 +1,18 @@
.\" Author: Patrick "P. J." McDermott
-.TH opkbuild 1 "2012-01-19" "opkhelper-0.1.0" "opkg Build Helper Tools"
+.TH opkbuild 1 "2012-01-22" "opkhelper-0.1.0" "opkg Build Helper Tools"
.SH NAME
opkbuild \- Build opkg packages.
.SH SYNOPSIS
.B opkbuild
+.RB [ -r
+.IR assume-uid0-cmd ]
.SH DESCRIPTION
.B opkbuild
builds binary packages from a source package.
+.SH OPTIONS
+.TP
+.BI \-r \ assume-uid0-cmd
+Assume user ID 0 using the specified command (default is `fakeroot').
.SH COPYRIGHT
Copyright (C) 2012 Patrick "P. J." McDermott
.sp
diff --git a/src/opkbuild b/src/opkbuild
index a3163ad..06c5a8c 100644
--- a/src/opkbuild
+++ b/src/opkbuild
@@ -23,7 +23,7 @@
print_usage()
{
- printf 'Usage: %s\n' "$1"
+ printf 'Usage: [-r assume-uid0-cmd] %s\n' "$1"
}
error()