[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
FYI: `./commit --rcfile' reads options from .clcommitrc [libtool--releas
From: |
Gary V. Vaughan |
Subject: |
FYI: `./commit --rcfile' reads options from .clcommitrc [libtool--release--2.0--patch-42] |
Date: |
Fri, 22 Oct 2004 19:02:16 +0100 (BST) |
User-agent: |
mailnotify/0.6 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Applied to branch-2-0.
* looking for address@hidden/libtool--release--2.0--patch-41 to compare with
* comparing to address@hidden/libtool--release--2.0--patch-41
M ChangeLog
M clcommit.m4sh
* modified files
Index: Changelog
from Gary V. Vaughan <address@hidden>
* clcommit.m4sh: Add --rcfile option.
--- orig/clcommit.m4sh
+++ mod/clcommit.m4sh
@@ -2,7 +2,7 @@
m4_divert_push([SCRIPT])#!/bin/sh
# @configure_input@
-# clcommit (GNU @PACKAGE@) version 0.15
+# clcommit (GNU @PACKAGE@) version 0.16
# Written by Gary V. Vaughan <address@hidden>
# and Alexandre Oliva <address@hidden>
@@ -28,27 +28,28 @@
# Usage: $progname [OPTION]... [--] [file|dir ...]
-# -C file --changelog=file extract commit message from specified ChangeLog
-# -zN --compress=N set compression level (0-9, 0=none, 9=max)
-# --debug enable verbose shell tracing
-# -n --dry-run don't commit anything
-# --fast same as --force --first
-# -F file --file=file read commit message from file
-# -1 --first extract first entry from ChangeLog, no cvs diff
-# -f --force don't check (unless *followed* by -n), and just
-# display commit message instead of running $PAGER
-# --from=addr override default from address in commit email
-# -l --local don't descend into subdirectories
-# -m msg --message=msg set commit message
-# --msg=msg same as -m
-# -q --quiet run cvs in quiet mode
-# -s addr --sendmail=addr send a commit email of the differences to ADDR
-# --signature[=file] add FILE to the end of the email (~/.signature)
-# -S TEXT --summary=TEXT specify a TEXT subject line for the commit email
-# -t --tla use tla as the scm (instead of cvs)
-# -v --verbose run in verbose mode
-# --version print version information
-# -h,-? --help print short or long help message
+# -C FILE --changelog=file extract commit message from specified
ChangeLog
+# -zN --compress=N set compression level (0-9, 0=none, 9=max)
+# --debug enable verbose shell tracing
+# -n --dry-run don't commit anything
+# --fast same as --force --first
+# -F file --file=file read commit message from file
+# -1 --first extract first entry from ChangeLog, no cvs
diff
+# -f --force don't check (unless *followed* by -n), and
just
+# display commit message instead of running
$PAGER
+# --from=addr override default from address in commit email
+# -l --local don't descend into subdirectories
+# -m msg --message=msg set commit message
+# --msg=msg same as -m
+# -r [FILE] --rcfile[=FILE] read default option from FILE [./.clcommitrc]
+# -q --quiet run cvs in quiet mode
+# -s addr --sendmail=addr send a commit email of the differences to ADDR
+# --signature[=FILE] add FILE to the end of the email
[~/.signature]
+# -S TEXT --summary=TEXT specify a TEXT subject line for the commit
email
+# -t --tla use tla as the scm (and cvs in a dual tree)
+# -v --verbose run in verbose mode
+# --version print version information
+# -h,-? --help print short or long help message
# This script eases checking in changes to CVS-maintained projects
# with ChangeLog files. It will check that there have been no
@@ -185,6 +186,23 @@
-q|--quiet) cvs_flags="$cvs_flags -q" ;;
+ -r|--rcfile) rc_file="./.clcommitrc"
+ if test $# -gt 0; then
+ case $1 in
+ -*) ;;
+ *) rc_file="$1"; shift ;;
+ esac
+ fi
+ if test -f "$rc_file"; then :; else
+ func_error "rcfile \`$rc_file' does not exist"
+ exit_cmd=exit
+ break
+ fi
+ # The funny quoting allows keeping one option per
+ # line in $rc_file:
+ eval set -- `echo \`cat $rc_file\`
\\\${1+\"address@hidden"}`
+ ;;
+
-s|--sendmail) test $# = 0 && func_missing_arg $opt && break
func_quote_for_eval "$1"
sendmail_to="$func_quote_for_eval_result"
@@ -225,7 +243,7 @@
;;
# Separate optargs to long options:
-
--message=*|--msg=*|--from=*|--file=*|--[[Cc]]hange[[Ll]]og=*|--compress=*|--summary=*|--sendmail=*|--signature=*)
+ --*=*)
arg=`echo "$opt" | $SED "$my_sed_long_arg"`
opt=`echo "$opt" | $SED "$my_sed_long_opt"`
set -- "$opt" "$arg" ${1+"$@"}
- --
Gary V. Vaughan ())_. address@hidden,gnu.org}
Research Scientist ( '/ http://tkd.kicks-ass.net
GNU Hacker / )= http://www.gnu.org/software/libtool
Technical Author `(_~)_ http://sources.redhat.com/autobook
_________________________________________________________
This patch notification generated by tlaapply version 0.9
http://tkd.kicks-ass.net/arch/address@hidden/cvs-utils--tla--1.0
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Darwin)
iD8DBQFBeUsnFRMICSmD1gYRAnmfAJ44zaWU0OugqrjT2BImRrCQNpoCWACfT9kd
Go6XR/z6T36MY1IrH4NCWcQ=
=4M0C
-----END PGP SIGNATURE-----
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- FYI: `./commit --rcfile' reads options from .clcommitrc [libtool--release--2.0--patch-42],
Gary V. Vaughan <=