rendered paste body#!/bin/sh# Some kind of buildscript for x264rm -rf x264-32bitrm -rf x264-64bitrm -rf x264-pureif [ "$1" = "clean" ]then rm -rf x264 git clone git://git.videolan.org/x264.git exit 1fi# Update the x264 codebasecd x264git pullcd ..# Make the needed folderscp -r x264-32bitcp -r x264-64bitcp -r x264-pure# Pure x264 64bitcd x264-pure./configure --cross-prefix=x86_64-pc-mingw32- --host=x86_64-pc-mingw32make fprofiled VIDS="../saisoku.y4m"md5sum x264.exe | awk '{print $1}' >x264.md5cd ..# x264 Patched 32bitcd x264-32bit# Patchingpatch -p1 < ../x264_win_zone_parse_fix_06.diff > ../patching_log_32bit.txtpatch -p1 < ../x264_hrd_pd_interlace.16.1247.VFRManiac.diff >> ../patching_log_32bit.txt./configuremake fprofiled VIDS="../saisoku.y4m"# x264 Patched 64bitcd ..cd x264-64bitpatch -p1 < ../x264_win_zone_parse_fix_06.diff > ../patching_log_64bit.txtpatch -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"