sh: Format the git table in a single attribute set
This commit is contained in:
parent
dbdcfea019
commit
d2222f6868
@ -15,11 +15,13 @@ EOF
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo 'gitTable = {'
|
echo '{'
|
||||||
echo " # Auto-generated with $progname on $(date --rfc-3339=date)"
|
echo " # Auto-generated with $progname on $(date --rfc-3339=date) for repo:"
|
||||||
|
echo " # $1"
|
||||||
|
echo
|
||||||
git ls-remote $1 'garlic/*' |\
|
git ls-remote $1 'garlic/*' |\
|
||||||
sed 's@refs/heads/@@' |\
|
sed 's@refs/heads/@@' |\
|
||||||
awk '{printf "\"%s\" = \"%s\";\n", $2, $1}' |\
|
awk '{printf "\"%s\" = \"%s\";\n", $2, $1}' |\
|
||||||
column -t -o ' ' |\
|
column -t -o ' ' |\
|
||||||
sed 's/^/ /'
|
sed 's/^/ /'
|
||||||
echo '};'
|
echo '}'
|
||||||
|
Loading…
Reference in New Issue
Block a user