diff --git a/README.md b/README.md index a8c111e..706db4e 100644 --- a/README.md +++ b/README.md @@ -69,6 +69,8 @@ the script will use it to set the game icon on Windows. Starting with Love 0.8.0, a release is specially available for Windows x64. Starting with Love 0.9.0, Love no longer supports old x86 Macintosh. +`-x` Exclude file or directory. + #### MAC OS X `--maintainer-name` Set the maintainer’s name. Provide it for OS X CFBundleIdentifier. diff --git a/love-release.1 b/love-release.1 index 8c424e8..e4ff72e 100644 --- a/love-release.1 +++ b/love-release.1 @@ -79,6 +79,9 @@ Set the release directory. By default, a subdirectory called releases is created Love version. Default is 0.9.1. Starting with Love 0.8.0, a release is specially available for Windows x64. Starting with Love 0.9.0, Love no longer supports old x86 Macintosh. +.TP +.B \-x \fIfile\fR|\fIdirectory\fR +Exclude file or directory. .SH MAC OS X .TP .B \-\-maintainer\-name \fIname\fR diff --git a/love-release.sh b/love-release.sh index f188d68..03032b7 100755 --- a/love-release.sh +++ b/love-release.sh @@ -78,7 +78,7 @@ LOVE_GT_090=$(float_test "$LOVE_VERSION_MAJOR >= 0.9") # Global variables ARGS=( "$@" ) -SCRIPT_ARGS="$SCRIPT_ARGS h; n: r: v: config: clean help" +SCRIPT_ARGS="$SCRIPT_ARGS h; n: r: v: x: config: clean help" SCRIPT_ARGS=$(printf '%s\n' $SCRIPT_ARGS | sort -u) CONFIG=false CONFIG_FILE=config.ini @@ -158,6 +158,8 @@ do LOVE_VERSION_MAJOR=$(echo "$LOVE_VERSION" | grep -Eo '^[0-9]+\.?[0-9]*') LOVE_GT_080=$(float_test "$LOVE_VERSION_MAJOR >= 0.8") LOVE_GT_090=$(float_test "$LOVE_VERSION_MAJOR >= 0.9") + elif [ "$OPTOPT" = "x" ]; then + EXCLUDE_FILES="$OPTARG $EXCLUDE_FILES" elif [ "$OPTOPT" = "clean" ]; then missing_operands=false rm -rf "$MAIN_CACHE_DIR"