aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2026-09-25 03:31:11 -0400
committerB. Watson <urchlay@slackware.uk>2026-09-25 03:31:11 -0400
commit4d57bd62f0b11b09e70375f196cf5d63c92ed49a (patch)
tree767894497f885f3ab6f9db2f706b628251ac8a74
parent9996aef00bc85494e6b983596ff49fa8a43bae51 (diff)
downloadsbo-maintainer-tools-4d57bd62f0b11b09e70375f196cf5d63c92ed49a.tar.gz
sbrun: add to "make man", add --man option.
-rw-r--r--Makefile7
-rwxr-xr-xsbrun16
2 files changed, 14 insertions, 9 deletions
diff --git a/Makefile b/Makefile
index dc822e9..0097eed 100644
--- a/Makefile
+++ b/Makefile
@@ -14,7 +14,7 @@ MAN1DIR=$(MANDIR)/man1
DOCDIR=$(PREFIX)/doc/$(PROJ)-$(VERSION)
DOCS=README QUICKSTART TODO pre-commit-sbolint NEWS CREDITS
-SCRIPTS=sbopkglint sbolint sbofixinfo sbodl explodepkg.sbopkglint find_installed_orphans find_installed_removed
+SCRIPTS=sbopkglint sbolint sbofixinfo sbodl explodepkg.sbopkglint find_installed_orphans find_installed_removed sbrun upkg
all:
@echo "Use 'make install PREFIX=<path>' to install $(PROJ)."
@@ -40,7 +40,7 @@ install: man
clean:
rm -f sbopkglint.1 sbolint.1 sbofixinfo.1 sbodl.1
-man: sbopkglint.1 sbolint.1 sbofixinfo.1 sbodl.1
+man: sbopkglint.1 sbolint.1 sbofixinfo.1 sbodl.1 sbrun.1
sbolint.1: sbolint
./sbolint --man > sbolint.1
@@ -54,6 +54,9 @@ sbofixinfo.1: sbofixinfo
sbodl.1: sbodl
./sbodl --man > sbodl.1
+sbrun.1: sbrun
+ ./sbrun --man > sbrun.1
+
version:
sh update-version.sh $(VERSION)
diff --git a/sbrun b/sbrun
index 88373d6..f3b24c7 100755
--- a/sbrun
+++ b/sbrun
@@ -1,5 +1,7 @@
#!/bin/bash
+VERSION=0.0.1
+
# TODO: distcc masquerade dir, pump mode
# TODO: fix interactive shell option
# TODO: maybe change the cpufreq governor?
@@ -218,7 +220,7 @@ if [ "$1" = "--help" ]; then
elif [ "$1" = "--long-help" ]; then
long_help ; exit 0
elif [ "$1" = "--man" ]; then
- die "--man not yet supported"
+ exec pod2man --stderr -s1 -csbo-maintainer-tools -r$VERSION $0 ; exit 0
fi
# save original args, as we're going to permute them, below
@@ -717,18 +719,18 @@ do any of these things:
- check source file md5sums.
- allow building multiple packages at once (queue files), though it
- will call 'sbqrun' with the -q/-Q options (and sbqrun calls sbrun
- for each dependency).
+will call 'sbqrun' with the -q/-Q options (and sbqrun calls sbrun
+for each dependency).
- install/upgrade/remove packages (it *just* builds them, though it will
- call 'upkg' with the -i option).
+call 'upkg' with the -i option).
- sync the repo, or even have any concept of a repo (it only deals
- with a single SlackBuild script, in the current directory).
+with a single SlackBuild script, in the current directory).
- anything to do with .info files. Nothing about sbrun is SBo-specific,
- it'll work with Pat's or AlienBOB's or anyone else's scripts (which
- is why it's called sbrun and not sborun).
+it'll work with Pat's or AlienBOB's or anyone else's scripts (which
+is why it's called sbrun and not sborun).
=head2 git integration