summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Mitchell <kevmitch@gmail.com>2014-09-25 14:13:08 -0700
committerKevin Mitchell <kevmitch@gmail.com>2014-09-25 14:13:08 -0700
commitb5bd4ad24a9374d562d2f8e6b84505dfc251bcb2 (patch)
treea789f08a245457f796a3656fe3d681aa61438497
parent9c3b457c10effc17bd671bdd2a5e79005848d4d3 (diff)
downloadmpv-build-b5bd4ad24a9374d562d2f8e6b84505dfc251bcb2.tar.bz2
mpv-build-b5bd4ad24a9374d562d2f8e6b84505dfc251bcb2.tar.xz
replace tabs with spaces in debian-update-versions
-rwxr-xr-xscripts/debian-update-versions19
1 files changed, 9 insertions, 10 deletions
diff --git a/scripts/debian-update-versions b/scripts/debian-update-versions
index ae24849..bea6ce4 100755
--- a/scripts/debian-update-versions
+++ b/scripts/debian-update-versions
@@ -2,10 +2,10 @@
get_version()
{
- (
+ (
cd $1
- VERSION=$(git describe --tags | sed 's/^[^0-9]*//')
- echo 1:${VERSION}
+ VERSION=$(git describe --tags | sed 's/^[^0-9]*//')
+ echo 1:${VERSION}
)
}
@@ -13,16 +13,16 @@ get_timestamp_commit()
{
(
cd $1
- TIMESTAMP=$(git log -1 --date=short --format=%cd | sed 's/-/./g')
- COMMIT=$(git rev-parse --short HEAD)
- echo 2:${TIMESTAMP}.${COMMIT}
+ TIMESTAMP=$(git log -1 --date=short --format=%cd | sed 's/-/./g')
+ COMMIT=$(git rev-parse --short HEAD)
+ echo 2:${TIMESTAMP}.${COMMIT}
)
}
do_subst() {
sed -e "0,/^mpv (.*)/s/(.*)/($1)/" \
- -e "s/^ \* local build.*/ \* local build with ffmpeg $2, libass $3/" \
- -e"s/\(^ -- Local User <localuser@localhost>\).*/\1 $(date -R)/" debian/changelog.TEMPLATE > debian/changelog
+ -e "s/^ \* local build.*/ \* local build with ffmpeg $2, libass $3/" \
+ -e"s/\(^ -- Local User <localuser@localhost>\).*/\1 $(date -R)/" debian/changelog.TEMPLATE > debian/changelog
}
do_version_all() {
@@ -30,7 +30,7 @@ do_version_all() {
}
do_timestamp_commit_all() {
- do_subst $(get_timestamp_commit mpv) $(get_timestamp_commit ffmpeg) $(get_timestamp_commit libass)
+ do_subst $(get_timestamp_commit mpv) $(get_timestamp_commit ffmpeg) $(get_timestamp_commit libass)
}
case "$1" in
@@ -46,4 +46,3 @@ case "$1" in
exit 0
;;
esac
-