public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] emacs r1341 - emacs-updater
@ 2009-08-09 19:29 Ulrich Mueller (ulm)
  0 siblings, 0 replies; only message in thread
From: Ulrich Mueller (ulm) @ 2009-08-09 19:29 UTC (permalink / raw
  To: gentoo-commits

Author: ulm
Date: 2009-08-09 19:29:01 +0000 (Sun, 09 Aug 2009)
New Revision: 1341

Modified:
   emacs-updater/ChangeLog
   emacs-updater/emacs-updater
   emacs-updater/emacs-updater.8
Log:
New option --package-manager-command.

Modified: emacs-updater/ChangeLog
===================================================================
--- emacs-updater/ChangeLog	2009-08-09 02:01:22 UTC (rev 1340)
+++ emacs-updater/ChangeLog	2009-08-09 19:29:01 UTC (rev 1341)
@@ -1,3 +1,9 @@
+2009-08-09  Ulrich Mueller  <ulm@gentoo.org>
+
+	* emacs-updater (OPTIONS): New option --package-manager-command.
+	(usage): Update help text.
+	* emacs-updater.8: Update.
+
 2009-06-04  Ulrich Mueller  <ulm@gentoo.org>
 
 	* Version 1.5 released.

Modified: emacs-updater/emacs-updater
===================================================================
--- emacs-updater/emacs-updater	2009-08-09 02:01:22 UTC (rev 1340)
+++ emacs-updater/emacs-updater	2009-08-09 19:29:01 UTC (rev 1341)
@@ -34,7 +34,7 @@
 usage() {
     sed -e 's/^X//' <<-EOF
 	Usage: ${0##*/} [OPTION]...
-	X  -a, --action <arg>[,<arg>]...
+	X  -a, --action ACTION[,ACTION]...
 	X                         specify actions, comma-separated list of:
 	X                         'sitedir': find site-init files not in the
 	X                           new-style location
@@ -47,10 +47,14 @@
 	X  -n, --nocolour, --nocolor
 	X                         disable colour in output
 	X  -p, --pretend          don't actually emerge packages
-	X  -P, --package-manager <arg>
-	X                         select a package manager. arg is one out of
+	X  -P, --package-manager PM
+	X                         select a package manager. PM is one out of
 	X                         'portage', 'pkgcore', or 'paludis'
 	X                         (default: automatically determined)
+	X      --package-manager-command CMD
+	X                         call CMD instead of the default package
+	X                         manager command. If CMD includes options
+	X                         the whole command string must be quoted
 	X  -h, --help             display this help and exit
 	EOF
     exit ${1}
@@ -85,7 +89,8 @@
 
 # Read in all command-line options and force English output
 OPTIONS=$(LC_ALL=C getopt -o a:ehnpP: \
-    --long action:,exact,help,nocolour,nocolor,pretend,package-manager: \
+    --long action:,exact,help,nocolour,nocolor,pretend \
+    --long package-manager:,package-manager-command: \
     -n 'emacs-updater' -- "$@")
 [ $? -eq 0 ] || usage 1
 
@@ -130,7 +135,7 @@
 	    esac
 	    shift 2
 	    ;;
-
+	--package-manager-command) PM_COMMAND=${2}; shift 2 ;;
 	--) shift; break ;;
     esac
 done

Modified: emacs-updater/emacs-updater.8
===================================================================
--- emacs-updater/emacs-updater.8	2009-08-09 02:01:22 UTC (rev 1340)
+++ emacs-updater/emacs-updater.8	2009-08-09 19:29:01 UTC (rev 1341)
@@ -2,7 +2,7 @@
 .\" Distributed under the terms of the GNU General Public License v2
 .\" $Id$
 .\"
-.TH emacs-updater 8 "June 2009" "Gentoo Linux"
+.TH emacs-updater 8 "August 2009" "Gentoo Linux"
 .SH NAME
 emacs-updater \- rebuild Emacs packages
 .SH SYNOPSIS
@@ -52,6 +52,11 @@
 is given, then the package manager is automatically determined.
 This is the default.
 .TP
+.BI --package-manager-command " CMD"
+Call CMD instead of the default package manager command.
+CMD may include options in which case the whole command string must be
+passed as a single argument (i.e. included in quotes).
+.TP
 .B -h, --help
 Display help and exit
 .SH ENVIRONMENT




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-08-09 19:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-09 19:29 [gentoo-commits] emacs r1341 - emacs-updater Ulrich Mueller (ulm)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox