From 360d38f6ddfa44a730326841238c3bff255ac459 Mon Sep 17 00:00:00 2001 From: Kevin Mitchell Date: Sun, 8 Mar 2020 00:37:51 -0800 Subject: debian: use spaces instead of tabs in debian-update-versions --- scripts/debian-update-versions | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/scripts/debian-update-versions b/scripts/debian-update-versions index af59632..a04742c 100755 --- a/scripts/debian-update-versions +++ b/scripts/debian-update-versions @@ -4,20 +4,20 @@ get_version() { ( cd $1 > /dev/null - VERSION=1:$(git name-rev --name-only --tags HEAD | sed -e 's/^[^0-9]*//' -e 's/\^0$//') + VERSION=1:$(git name-rev --name-only --tags HEAD | sed -e 's/^[^0-9]*//' -e 's/\^0$//') if [ "$VERSION" = "1:" ]; then - TIMESTAMP=$(git log -1 --date=short --format=%cd | sed 's/-/./g') - COMMIT=$(git rev-parse --short HEAD) + TIMESTAMP=$(git log -1 --date=short --format=%cd | sed 's/-/./g') + COMMIT=$(git rev-parse --short HEAD) VERSION="2:${TIMESTAMP}.${COMMIT}" fi - echo ${VERSION} + echo ${VERSION} ) } do_subst() { sed -e "0,/^mpv (.*)/s/(.*)/($1)/" \ - -e "s/^ \* local build.*/ \* local build with ffmpeg $2, libass $3/" \ - -e"s/\(^ -- Local User \).*/\1 $(date -R)/" debian/changelog.TEMPLATE > debian/changelog + -e "s/^ \* local build.*/ \* local build with ffmpeg $2, libass $3/" \ + -e"s/\(^ -- Local User \).*/\1 $(date -R)/" debian/changelog.TEMPLATE > debian/changelog } do_subst $(get_version mpv) $(get_version ffmpeg) $(get_version libass) -- cgit v1.2.3