commit 70a906f35d07524f9bda908cf8105a43b9c2ec34
Author: Sérgio M. Basto <sergio(a)serjux.com>
Date: Thu Mar 8 04:12:21 2018 +0000
Update vlmc-snapshot.sh
vlmc-snapshot.sh | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/vlmc-snapshot.sh b/vlmc-snapshot.sh
index d72e968..9238c3d 100755
--- a/vlmc-snapshot.sh
+++ b/vlmc-snapshot.sh
@@ -12,11 +12,12 @@ cleanup() {
unset CDPATH
pwd=$(pwd)
-date=$(date +%Y%m%d)
package=vlmc
pushd "$tmp"
-git clone
git://git.videolan.org/vlmc.git
+git clone
https://code.videolan.org/videolan/vlmc.git
cd $package
+date=$(git log -1 --format=%cd --date=short | tr -d \-)
git archive --prefix="${package}-${date}/" --format=tar master | bzip2 >
"$pwd"/${package}-${date}.tar.bz2
popd
+sed -i "s|^%global date .*|%global date $date|" vlmc.spec