summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYann E. MORIN <yann.morin.1998@free.fr>2014-06-28 11:10:23 (GMT)
committerYann E. MORIN <yann.morin.1998@free.fr>2014-06-28 11:10:23 (GMT)
commit6ecd4e801d3b5cffb878a597f5eff5df25893b55 (patch)
tree9470f82a16a01899190c1c37b0ca4ccc3e9bb7c9
parent3ee0dadd33c47abea81fdb78d403e3f9f41b0786 (diff)
scripts: another change needed for the Hg->git conversion
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
-rwxr-xr-xscripts/showSamples.sh6
1 files changed, 2 insertions, 4 deletions
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