#!/bin/sh # Some kind of buildscript for x264 rm -rf x264-32bit rm -rf x264-64bit rm -rf x264-pure if [ "$1" = "clean" ] then rm -rf x264 git clone git://git.videolan.org/x264.git exit 1 fi # Update the x264 codebase cd x264 git pull cd .. # Make the needed folders cp -r x264-32bit cp -r x264-64bit cp -r x264-pure # Pure x264 64bit cd x264-pure ./configure --cross-prefix=x86_64-pc-mingw32- --host=x86_64-pc-mingw32 make fprofiled VIDS="../saisoku.y4m" md5sum x264.exe | awk '{print $1}' >x264.md5 cd .. # x264 Patched 32bit cd x264-32bit # Patching patch -p1 < ../x264_win_zone_parse_fix_06.diff > ../patching_log_32bit.txt patch -p1 < ../x264_hrd_pd_interlace.16.1247.VFRManiac.diff >> ../patching_log_32bit.txt ./configure make fprofiled VIDS="../saisoku.y4m" # x264 Patched 64bit cd .. cd x264-64bit patch -p1 < ../x264_win_zone_parse_fix_06.diff > ../patching_log_64bit.txt patch -p1 < ../x264_hrd_pd_interlace.16.1247.VFRManiac.diff >> ../patching_log_64bit.txt #patch -p1 < ../x264_AutoVAQ.03.diff >> ../patching_log_avaq.txt ./configure --cross-prefix=x86_64-pc-mingw32- --host=x86_64-pc-mingw32 --extra-cflags="-march=core2" make fprofiled VIDS="../saisoku.y4m"