x264-mksrctarball.sh 414 B

123456789101112131415161718
  1. #!/bin/bash
  2. git clone https://code.videolan.org/videolan/x264.git
  3. cd x264
  4. git checkout stable
  5. VERSION="git_$(git log --format="%ad_%h" --date=short | head -n 1 | tr -d -)"
  6. LONGDATE="$(git log -1 --format=%cd --date=format:%c )"
  7. cd ..
  8. mv x264 x264-$VERSION
  9. tar --exclude-vcs -cf x264-$VERSION.tar x264-$VERSION
  10. plzip -9 -v x264-$VERSION.tar
  11. touch -d "$LONGDATE" x264-$VERSION.tar.lz
  12. rm -rf x264-$VERSION