test/get_build_ffmpegtest.sh
raw| 1 | #!/bin/bash |
| 2 | |
| 3 | : >> "$filelist" |
| 4 | |
| 5 | if [ -d ffmpeg/.git ]; then |
| 6 | cd ffmpeg |
| 7 | git reset --hard |
| 8 | xargs -r rm -f < "$filelist" |
| 9 | else |
| 10 | git clone https://git.ffmpeg.org/ffmpeg.git ffmpeg |
| 11 | cd ffmpeg |
| 12 | fi |
| 13 | : > "$filelist" |
| 14 | ./configure --disable-stripping |
| 15 | ncpus=$(ls -1 /sys/bus/cpu/devices | wc -l) |
| 16 | make -j${ncpus} |