Adjusting obtaining of the date string in snapshots.sh to new git log date format.

This commit is contained in:
Daniel Baumann 2008-04-25 09:00:10 +02:00
parent bd807ecc54
commit d0533ecf81
1 changed files with 1 additions and 1 deletions

View File

@ -87,7 +87,7 @@ do
# Getting revision
cd "${TEMPDIR}"/${PACKAGE}
REVISION="$(git log | grep -m1 Date | awk -FDate: '{ print $2 }' | sed -e 's/+.*$//')"
REVISION="$(git log | grep -m1 Date | awk -FDate: '{ print $2 }' | awk '{ print $1 ",", $3, $2, $5, $4, $6 }')"
REVISION="$(date -d "${REVISION}" +%Y%m%d.%H%M%S)"
# Check for existing package