Skip to content

Commit c245347

Browse files
committed
---
yaml --- r: 139282 b: refs/heads/try2 c: 51eb7dc h: refs/heads/master v: v3
1 parent d1e0f06 commit c245347

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ refs/heads/snap-stage3: 78a7676898d9f80ab540c6df5d4c9ce35bb50463
55
refs/heads/try: 519addf6277dbafccbb4159db4b710c37eaa2ec5
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8-
refs/heads/try2: dcc88699d8f36ab35cf6b498d9d924526432db26
8+
refs/heads/try2: 51eb7dc8a719f6ae05a563109b3bbccee319263e
99
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try2/configure

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -444,12 +444,13 @@ fi
444444

445445
if [ ! -z "$CFG_PANDOC" ]
446446
then
447-
PANDOC_VER_LINE=$(pandoc --version | grep '^pandoc ')
448-
PANDOC_VER=${PANDOC_VER_LINE#pandoc }
449-
PV_MAJOR_MINOR=${PANDOC_VER%.[0-9]*}
450-
PV_MAJOR=${PV_MAJOR_MINOR%%[.][0-9]*}
451-
PV_MINOR=${PV_MAJOR_MINOR#[0-9]*[.]}
452-
PV_MINOR=${PV_MINOR%%[.][0-9]*}
447+
PV_MAJOR_MINOR=$(pandoc --version | grep '^pandoc ' |
448+
# extract the first 2 version fields, ignore everything else
449+
sed 's/pandoc \([0-9]*\)\.\([0-9]*\).*/\1 \2/')
450+
451+
# these patterns are shell globs, *not* regexps
452+
PV_MAJOR=${PV_MAJOR_MINOR% *}
453+
PV_MINOR=${PV_MAJOR_MINOR#* }
453454
if [ "$PV_MAJOR" -lt "1" ] || [ "$PV_MINOR" -lt "8" ]
454455
then
455456
step_msg "pandoc $PV_MAJOR.$PV_MINOR is too old. disabling"

branches/try2/src/libcore/run.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ fn with_dirp<T>(d: &Option<~str>,
182182
*
183183
* # Return value
184184
*
185-
* The process id
185+
* The process's exit code
186186
*/
187187
pub fn run_program(prog: &str, args: &[~str]) -> int {
188188
let pid = spawn_process(prog, args, &None, &None,

0 commit comments

Comments
 (0)