diff --git a/test/scmver_01.clit b/test/scmver_01.clit index a8c64f0..4c7e637 100644 --- a/test/scmver_01.clit +++ b/test/scmver_01.clit @@ -1,6 +1,6 @@ #!/usr/bin/clitoris ## -*- shell-script -*- -$ (cd "${srcdir}"; git describe --dirty --abbrev=7) | \ +$ { cd "${srcdir}"; git describe --dirty --abbrev=7; } | \ sed -e 's/^v//' -e 's/-g/-/' -e 's/-/-git/' -e 'y/-/./' > "scmver_01.version" $ if test -s "scmver_01.version"; then \ yuck scmver "${srcdir}/"; \ diff --git a/test/scmver_02.clit b/test/scmver_02.clit index d70a765..cdac7af 100644 --- a/test/scmver_02.clit +++ b/test/scmver_02.clit @@ -1,6 +1,6 @@ #!/usr/bin/clitoris ## -*- shell-script -*- -$ (cd "${srcdir}"; git describe --abbrev=7 || true) > "scmver_02.version" +$ { cd "${srcdir}"; git describe --abbrev=7 || true; } > "scmver_02.version" $ if test -s "scmver_02.version"; then \ yuck scmver "${srcdir}/scmver_02.tmpl"; \ fi diff --git a/test/scmver_03.clit b/test/scmver_03.clit index 9ed04bc..4837c3c 100644 --- a/test/scmver_03.clit +++ b/test/scmver_03.clit @@ -1,10 +1,6 @@ #!/usr/bin/clitoris ## -*- shell-script -*- -$ if test -d "${srcdir}/.git"; then \ - yuck scmver "${srcdir}/" > ".test.ver"; \ - else \ - touch ".test.ver"; \ - fi +$ { yuck scmver "${srcdir}/" || true; } > ".test.ver" $ if test -s ".test.ver"; then \ yuck scmver -n --reference ".test.ver"; \ fi