summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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()