@@ -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
* )
@@ -1120,13 +1137,16 @@ echo ""
1120
1137
INSTALL_NOW=0
1121
1138
if [[ " $AUTOINSTALL " == " yes" ]]; then
1122
1139
INSTALL_NOW=1
1140
+ echo " Automatically installing these binaries because the --auto-install option was used or AUTOINSTALL=yes was run."
1123
1141
elif [[ ! " $SKIPINSTALL " == " yes" ]]; then
1124
1142
read -r -p " Install these binaries to your $INSTALL_FOLDER folder? Existing binaries will be replaced. [Y/n] " response
1125
1143
case $response in
1126
1144
" " | [yY][eE][sS] | [yY])
1127
1145
INSTALL_NOW=1
1128
1146
;;
1129
1147
esac
1148
+ else
1149
+ echo " Skipping install of these binaries because the --skip-install option was used or SKIPINSTALL=yes was run."
1130
1150
fi
1131
1151
1132
1152
if [ " $INSTALL_NOW " = 1 ]; then
0 commit comments