summaryrefslogtreecommitdiff
path: root/usr/src/pinyadmin
diff options
context:
space:
mode:
authorJulian Blake Kongslie <jblake@omgwallhack.org>2010-10-13 20:43:12 -0700
committerjblake+piny@omgwallhack.org <jblake@omgwallhack.org>2010-10-13 20:43:12 -0700
commit2f862e33447446116907c60ba1142369f70a99ab (patch)
treeda7ed59f81ba22a8347f3fcc4802aa23bbb3169b /usr/src/pinyadmin
parentca2a5d4df51dec985d00802426dc5f8fa47734d8 (diff)
downloadpiny-code-2f862e33447446116907c60ba1142369f70a99ab.tar.gz
piny-code-2f862e33447446116907c60ba1142369f70a99ab.zip
Rebuilding repo configs.
Diffstat (limited to 'usr/src/pinyadmin')
-rw-r--r--usr/src/pinyadmin/debian/control2
-rw-r--r--usr/src/pinyadmin/doc/rebuildrepo.latex16
-rw-r--r--usr/src/pinyadmin/doc/rmrepo.latex2
-rwxr-xr-xusr/src/pinyadmin/sbin/rebuildrepo14
4 files changed, 32 insertions, 2 deletions
diff --git a/usr/src/pinyadmin/debian/control b/usr/src/pinyadmin/debian/control
index db838bd..e8c2d70 100644
--- a/usr/src/pinyadmin/debian/control
+++ b/usr/src/pinyadmin/debian/control
@@ -7,7 +7,7 @@ Standards-version: 3.8.4
Package: pinyadmin
Architecture: all
-Depends: ${perl:Depends}, ${misc:Depends}, libpiny-perl (>= 0.13), moreutils
+Depends: ${perl:Depends}, ${misc:Depends}, libpiny-perl (>= 0.14), moreutils
Description: Administrative programs for piny
The command-line programs for day-to-day administrative tasks in the Piny
infrastructure.
diff --git a/usr/src/pinyadmin/doc/rebuildrepo.latex b/usr/src/pinyadmin/doc/rebuildrepo.latex
new file mode 100644
index 0000000..a2e0935
--- /dev/null
+++ b/usr/src/pinyadmin/doc/rebuildrepo.latex
@@ -0,0 +1,16 @@
+\usepackage{latex2man}
+
+\begin{Name}{8piny}{rebuildrepo}{Piny Team}{Piny}{rebuildrepo}
+
+\Prog{rebuildrepo} - rebuild a repo configuration
+
+\section{Synopsis}
+
+\Prog{rebuildrepo} \Arg{reponame} \Dots
+
+\section{Description}
+
+The \Prog{rebuildrepo} command rewrites all of the configuration files for
+the given repo and adjusts ownership and group membership of its files to a
+normalized state. It is needed to propagate certain kinds of changes;
+normally only the system administrator should run it.
diff --git a/usr/src/pinyadmin/doc/rmrepo.latex b/usr/src/pinyadmin/doc/rmrepo.latex
index a820d8f..12b58df 100644
--- a/usr/src/pinyadmin/doc/rmrepo.latex
+++ b/usr/src/pinyadmin/doc/rmrepo.latex
@@ -6,7 +6,7 @@
\section{Synopsis}
-\Prog{rmrepo} \Arg{reponame}
+\Prog{rmrepo} \Arg{reponame} \Dots
\section{Description}
diff --git a/usr/src/pinyadmin/sbin/rebuildrepo b/usr/src/pinyadmin/sbin/rebuildrepo
new file mode 100755
index 0000000..9d4e359
--- /dev/null
+++ b/usr/src/pinyadmin/sbin/rebuildrepo
@@ -0,0 +1,14 @@
+#!/usr/bin/perl
+
+use strict;
+use warnings;
+
+use Piny;
+
+foreach my $reponame ( @ARGV ) {
+
+ my $repo = Piny::Repo->new( $reponame );
+
+ $repo->rebuild;
+
+};