From 530ee0f3ded98b5f95ed6c2c54d3cc21384ac9f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonin=20D=C3=A9cimo?= Date: Tue, 19 Aug 2014 18:49:13 +0200 Subject: [PATCH] Change option --refresh to --clean --- README.md | 2 +- love-release.1 | 4 ++-- love-release.sh | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) 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