Mercurial > mplayer.hg
view version.sh @ 16520:8369ff5711de
10l: the directories specified with --with-xvid*dir were ignored.
Patch by Diego
Bug reported here: http://mplayerhq.hu/pipermail/mplayer-users/2005-September/055541.html
[MPlayer-users] CVS fails to compile (xvid related)
Giacomo Comes comes at naic.edu
Wed Sep 14 16:36:33 CEST 2005
Patch available here:
Date: Sep 10, 2005 8:45 PM
Subject: [MPlayer-dev-eng] [PATCH] XviD profile support
author | gpoirier |
---|---|
date | Mon, 19 Sep 2005 15:12:38 +0000 |
parents | 8fc10647e146 |
children | ff09faee7c14 |
line wrap: on
line source
#!/bin/sh OS=`uname -s` case "$OS" in CYGWIN*|Linux|MINGW*) last_cvs_update=`date -r CVS/Entries +%y%m%d-%H:%M 2>/dev/null` ;; Darwin|*BSD*) # BSD 'date -r' does not print modification time # LC_ALL=C sets month/day order and English language in the date string # The if in the awk call works around wrong day/month order. last_cvs_update=`LC_ALL=C ls -lT CVS/Entries | \ awk '{ \ day=$7; \ month=index(" JanFebMarAprMayJunJulAugSepOctNovDec", $6); \ if(month==0) { \ day=$6; \ month=index(" JanFebMarAprMayJunJulAugSepOctNovDec",$7); } \ printf("%s%.02d%.02d-%s", \ substr($9, 3, 2), (month+1)/3, day, substr($8, 0, 5)); \ }'` ;; *) last_cvs_update=`date +%y%m%d-%H:%M` ;; esac extra="" if test "$1" ; then extra="-$1" fi echo "#define VERSION \"dev-CVS-${last_cvs_update}${extra}\"" >version.h