From 6ecd4e801d3b5cffb878a597f5eff5df25893b55 Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN" Date: Sat, 28 Jun 2014 13:10:23 +0200 Subject: scripts: another change needed for the Hg->git conversion Signed-off-by: "Yann E. MORIN" diff --git a/scripts/showSamples.sh b/scripts/showSamples.sh index 36ed7ae..ccb8382 100755 --- a/scripts/showSamples.sh +++ b/scripts/showSamples.sh @@ -1,9 +1,6 @@ #!/bin/sh # Yes, this is supposed to be a POSIX-compliant shell script. -echo "Broken, fix hg->git conversion first" >&2 -exit 1 - # Parses all samples on the command line, and for each of them, prints # the versions of the main tools @@ -151,7 +148,8 @@ dump_single_sample() { printf "| (//unknown//) " fi ) - sample_updated="$( hg log -l 1 --template '{date|shortdate}' "${sample_top}/samples/${sample}" )" + sample_updated="$( git log -n1 --pretty=format:'%ci' "${sample_top}/samples/${sample}" \ + |awk '{ print $1; }' )" printf "| ${sample_updated} " echo "|" fi -- cgit v0.10.2-6-g49f6