Don't do camel case in filenames

This commit is contained in:
Eelco Dolstra 2013-06-02 23:30:46 +02:00
parent 66c695e1c3
commit 8e246a835a

View file

@ -97,9 +97,9 @@ if ! [ -d "$inputDir" ]; then
revCount="$(cd "$inputDirTmp" && (git rev-list '[% input.revision %]' | wc -l))" revCount="$(cd "$inputDirTmp" && (git rev-list '[% input.revision %]' | wc -l))"
rm -rf "$inputDirTmp/.git" rm -rf "$inputDirTmp/.git"
mv "$inputDirTmp" "$inputDir" mv "$inputDirTmp" "$inputDir"
echo -n $revCount > "$tmpDir/[% input.name %]/revCount" echo -n $revCount > "$tmpDir/[% input.name %]/rev-count"
else else
revCount="$(cat "$tmpDir/[% input.name %]/revCount")" revCount="$(cat "$tmpDir/[% input.name %]/rev-count")"
fi fi
args+=(--arg '[% input.name %]' "{ outPath = $inputDir; rev = \"[% input.revision %]\"; shortRev = \"[% input.revision.substr(0, 7) %]\"; revCount = \"$revCount\"; }") args+=(--arg '[% input.name %]' "{ outPath = $inputDir; rev = \"[% input.revision %]\"; shortRev = \"[% input.revision.substr(0, 7) %]\"; revCount = \"$revCount\"; }")
@ -119,9 +119,9 @@ if ! [ -d "$inputDir" ]; then
revCount="$(cd "$inputDirTmp" && (hg log -r '[% input.revision %]' --template "{rev}"))" revCount="$(cd "$inputDirTmp" && (hg log -r '[% input.revision %]' --template "{rev}"))"
rm -rf "$inputDirTmp/.hg" rm -rf "$inputDirTmp/.hg"
mv "$inputDirTmp" "$inputDir" mv "$inputDirTmp" "$inputDir"
echo -n $revCount > "$tmpDir/[% input.name %]/revCount" echo -n $revCount > "$tmpDir/[% input.name %]/rev-count"
else else
revCount="$(cat "$tmpDir/[% input.name %]/revCount")" revCount="$(cat "$tmpDir/[% input.name %]/rev-count")"
fi fi
args+=(--arg '[% input.name %]' "{ outPath = $inputDir; rev = \"[% input.revision %]\"; revCount = \"$revCount\"; }") args+=(--arg '[% input.name %]' "{ outPath = $inputDir; rev = \"[% input.revision %]\"; revCount = \"$revCount\"; }")