2005-02-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+ * clcommit.m4sh: Test whether the shell understands `read -r'. Use as
+ `$read_r' if available, so `\' is preserved in commit notices.
+
* HACKING (Editing `.m4sh' Files): Document preferred function
header layout.
* config/ltmain.m4sh (func_win32_libid, func_infer_tag)
sendmail_to=
exit_cmd=:
+# try to find out whether read supports -r
+if echo bt | tr b '\\' | { read -r line; test "X$line" = 'X\t'; } 2>/dev/null
+then
+ read_r='read -r'
+else
+ read_r=read
+fi
+
# Locations for important files:
signature_file=
log_dir="`func_mktempdir`"
func_verbose "$progname: checking for conflicts..."
if $opt_tla; then
if ( $TLA changes |
- while read line; do
+ while $read_r line; do
echo "$line"
echo "$line" >&3
done | grep '^C'
if test -f CVS/Entries; then
if ( $CVS $cvs_flags -q -n update $update_flags ${1+"$@"} |
- while read line; do
+ while $read_r line; do
echo "$line"
echo "$line" >&3
done | grep '^C'
if $opt_first; then
skipping=:
$SED 's,^,+,' < ${ChangeLog-ChangeLog} |
- while read line; do
+ while $read_r line; do
case "$line" in
"+") if $skipping; then skipping=false; else break; fi;;
"+ "*)
cmd="$CVS $cvs_flags diff -u"
fi
$cmd ${ChangeLog-ChangeLog} |
- while read line; do
+ while $read_r line; do
case $line in
"--- "*) :;;
"-"*)