File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -237,6 +237,9 @@ usage() {
237
237
echo " --small Prioritize small size over speed and usability; don't build manpages"
238
238
echo " --full-static Build a full static FFmpeg binary (eg. glibc, pthreads etc...) **only Linux**"
239
239
echo " Note: Because of the NSS (Name Service Switch), glibc does not recommend static links."
240
+ echo " --skip-install Don't install FFmpeg, FFprobe, and FFplay binaries to your system"
241
+ echo " --auto-install Install FFmpeg, FFprobe, and FFplay binaries to your system"
242
+ echo " Note: Without --skip-install or --auto-install the script will prompt you to install."
240
243
echo " "
241
244
}
242
245
@@ -286,6 +289,20 @@ while (($# > 0)); do
286
289
CONFIGURE_OPTIONS+=(" --enable-small" " --disable-doc" )
287
290
MANPAGES=0
288
291
fi
292
+ if [[ " $1 " == " --skip-install" ]]; then
293
+ SKIPINSTALL=yes
294
+ if [[ " $AUTOINSTALL " == " yes" ]]; then
295
+ echo " Error: The option --skip-install cannot be used with --auto-install"
296
+ exit 1
297
+ fi
298
+ fi
299
+ if [[ " $1 " == " --auto-install" ]]; then
300
+ AUTOINSTALL=yes
301
+ if [[ " $SKIPINSTALL " == " yes" ]]; then
302
+ echo " Error: The option --auto-install cannot be used with --skip-install"
303
+ exit 1
304
+ fi
305
+ fi
289
306
shift
290
307
;;
291
308
* )
You can’t perform that action at this time.
0 commit comments