Skip to content

Commit 3a9027c

Browse files
committed
---
yaml --- r: 54113 b: refs/heads/dist-snap c: 6647150 h: refs/heads/master i: 54111: 0b2784a v: v3
1 parent 2db12de commit 3a9027c

File tree

3 files changed

+8
-9
lines changed

3 files changed

+8
-9
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
99
refs/heads/incoming: 44d4d6de762f3f9aae1fedcf454c66b79b3ad58d
10-
refs/heads/dist-snap: 218093d912b3725251e7a97d44f03321ba856ce6
10+
refs/heads/dist-snap: 664715065737384a380a7d424ca63551f6788d2a
1111
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1212
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
1313
refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0

branches/dist-snap/configure

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

407407
if [ ! -z "$CFG_PANDOC" ]
408408
then
409-
PV_MAJOR_MINOR=$(pandoc --version | grep '^pandoc ' |
410-
# extract the first 2 version fields, ignore everything else
411-
sed 's/pandoc \([0-9]*\)\.\([0-9]*\).*/\1 \2/')
412-
413-
# these patterns are shell globs, *not* regexps
414-
PV_MAJOR=${PV_MAJOR_MINOR% *}
415-
PV_MINOR=${PV_MAJOR_MINOR#* }
409+
PANDOC_VER_LINE=$(pandoc --version | grep '^pandoc ')
410+
PANDOC_VER=${PANDOC_VER_LINE#pandoc }
411+
PV_MAJOR_MINOR=${PANDOC_VER%.[0-9]*}
412+
PV_MAJOR=${PV_MAJOR_MINOR%%[.][0-9]*}
413+
PV_MINOR=${PV_MAJOR_MINOR#[0-9]*[.]}
414+
PV_MINOR=${PV_MINOR%%[.][0-9]*}
416415
if [ "$PV_MAJOR" -lt "1" ] || [ "$PV_MINOR" -lt "8" ]
417416
then
418417
step_msg "pandoc $PV_MAJOR.$PV_MINOR is too old. disabling"

branches/dist-snap/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)