Package: mr
Version: 0.12
Severity: normal
Tags: patch
I'm trying out mr on a solaris machine, and running into bashisms in
mr's default configuration.
[EMAIL PROTECTED] ~]$ mr register 546
sh: syntax error at line 24: `delta=$' unexpected
mr register: unknown repository type
this occurs at line 1131 of mr (in the default configuration file
block)
delta=$(perl -wle 'print -f shift() ? int((-M _) * 24) : 9999' "$flagfile")
Here is a patch for various bashisms. It may not completely eliminate
all bashisms. In particular I only tried to fix the stuff I needed to work with
svn.
--- bin/mr (revision 4157)
+++ bin/mr (working copy)
@@ -1128,7 +1128,7 @@
if [ -z "$flagfile" ]; then
error "cannot determine flag filename"
fi
- delta=$(perl -wle 'print -f shift() ? int((-M _) * 24) : 9999'
"$flagfile")
+ delta=`perl -wle 'print -f shift() ? int((-M _) * 24) : 9999'
"$flagfile"`
if [ "$delta" -lt "$2" ]; then
exit 0
else
@@ -1185,7 +1185,7 @@
git_bare_log = git log "$@"
svn_register =
- url=$(LANG=C svn info . | grep -i ^URL: | cut -d ' ' -f 2)
+ url=`LANG=C svn info . | grep -i '^URL:' | cut -d ' ' -f 2`
if [ -z "$url" ]; then
error "cannot determine svn url"
fi
--Ken
-- System Information:
Debian Release: lenny/sid
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.21-1ken (SMP w/1 CPU core; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
-- no debconf information
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]