diff --git a/README.md b/README.md index 0e8b601..3eb5529 100644 --- a/README.md +++ b/README.md @@ -96,7 +96,7 @@ with eventual underscores (i.e. [a-zA-Z0-9\_]), otherwise you'll get errors. `--package-version` Set the version of your package. #### OTHERS -`--refresh` Refresh the cache located in `~/.cache/love-release`. +`--clean` Clean the cache located in `~/.cache/love-release`. One can replace the Love files there. `--debug` Dump the scripts variables without making releases. diff --git a/love-release.1 b/love-release.1 index aec5896..27c8a22 100644 --- a/love-release.1 +++ b/love-release.1 @@ -128,8 +128,8 @@ Update the love-android-sdl2.git repository used in the cache. Set the version of your package. .SH OTHERS .TP -.B \-\-refresh -Refresh the cache located in \fI~/.cache/love-release\fR. +.B \-\-clean +Clean the cache located in \fI~/.cache/love-release\fR. One can replace the Love files there. .TP .B \-\-debug diff --git a/love-release.sh b/love-release.sh index bcd03ce..2001174 100755 --- a/love-release.sh +++ b/love-release.sh @@ -72,7 +72,7 @@ LOVE_GT_090=$(float_test "$LOVE_VERSION_MAJOR >= 0.9") # Global variables ARGS=( "$@" ) -SCRIPT_ARGS="$SCRIPT_ARGS h; v: refresh help" +SCRIPT_ARGS="$SCRIPT_ARGS h; v: clean help" SCRIPT_ARGS=$(printf '%s\n' $SCRIPT_ARGS | sort -u) PROJECT_FILES= @@ -117,7 +117,7 @@ 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" = "refresh" ]; then + elif [ "$OPTOPT" = "clean" ]; then rm -rf "$MAIN_CACHE_DIR" fi done