Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/LAVFilters.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHendrik Leppkes <h.leppkes@gmail.com>2013-09-02 17:01:57 +0400
committerHendrik Leppkes <h.leppkes@gmail.com>2013-09-02 17:01:57 +0400
commitd3e2781fa0f59ca03e9bdcaf21dc151b8b066afc (patch)
tree127bf515ef15025df047da8ea444de27f06cddd4 /build_ffmpeg.sh
parente161e0f91454be6ad20a33568822ceda178cd444 (diff)
Add a "quick" option to the build scripts to avoid a full rebuild
Diffstat (limited to 'build_ffmpeg.sh')
-rw-r--r--build_ffmpeg.sh42
1 files changed, 28 insertions, 14 deletions
diff --git a/build_ffmpeg.sh b/build_ffmpeg.sh
index 8e23697a..db97ed1b 100644
--- a/build_ffmpeg.sh
+++ b/build_ffmpeg.sh
@@ -1,12 +1,24 @@
#!/bin/sh
-if [ "${1}" == "x64" ]; then
- arch=x86_64
- archdir=x64
-else
- arch=x86
- archdir=Win32
-fi
+arch=x86
+archdir=Win32
+clean_build=true
+
+for opt in "$@"
+do
+ case "$opt" in
+ x64 | amd64)
+ arch=x86_64
+ archdir=x64
+ ;;
+ quick)
+ clean_build=false
+ ;;
+ *)
+ echo "Unknown Option $opt"
+ exit 1
+ esac
+done
make_dirs() (
if [ ! -d bin_${archdir}/lib ]; then
@@ -108,17 +120,19 @@ make_dirs
cd ffmpeg
-clean
+if $clean_build ; then
+ clean
-## run configure, redirect to file because of a msys bug
-configure > config.out 2>&1
-CONFIGRETVAL=$?
+ ## run configure, redirect to file because of a msys bug
+ configure > config.out 2>&1
+ CONFIGRETVAL=$?
-## show configure output
-cat config.out
+ ## show configure output
+ cat config.out
+fi
## Only if configure succeeded, actually build
-if [ ${CONFIGRETVAL} -eq 0 ]; then
+if ! $clean_build || [ ${CONFIGRETVAL} -eq 0 ]; then
build &&
strip_libs &&
copy_libs