Change option --refresh to --clean

This commit is contained in:
Antonin Décimo
2014-08-19 18:49:13 +02:00
parent 478d385412
commit 530ee0f3de
3 changed files with 5 additions and 5 deletions

View File

@@ -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. `--package-version` Set the version of your package.
#### OTHERS #### 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. One can replace the Love files there.
`--debug` Dump the scripts variables without making releases. `--debug` Dump the scripts variables without making releases.

View File

@@ -128,8 +128,8 @@ Update the love-android-sdl2.git repository used in the cache.
Set the version of your package. Set the version of your package.
.SH OTHERS .SH OTHERS
.TP .TP
.B \-\-refresh .B \-\-clean
Refresh the cache located in \fI~/.cache/love-release\fR. Clean the cache located in \fI~/.cache/love-release\fR.
One can replace the Love files there. One can replace the Love files there.
.TP .TP
.B \-\-debug .B \-\-debug

View File

@@ -72,7 +72,7 @@ LOVE_GT_090=$(float_test "$LOVE_VERSION_MAJOR >= 0.9")
# Global variables # Global variables
ARGS=( "$@" ) 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) SCRIPT_ARGS=$(printf '%s\n' $SCRIPT_ARGS | sort -u)
PROJECT_FILES= PROJECT_FILES=
@@ -117,7 +117,7 @@ do
LOVE_VERSION_MAJOR=$(echo "$LOVE_VERSION" | grep -Eo '^[0-9]+\.?[0-9]*') LOVE_VERSION_MAJOR=$(echo "$LOVE_VERSION" | grep -Eo '^[0-9]+\.?[0-9]*')
LOVE_GT_080=$(float_test "$LOVE_VERSION_MAJOR >= 0.8") LOVE_GT_080=$(float_test "$LOVE_VERSION_MAJOR >= 0.8")
LOVE_GT_090=$(float_test "$LOVE_VERSION_MAJOR >= 0.9") LOVE_GT_090=$(float_test "$LOVE_VERSION_MAJOR >= 0.9")
elif [ "$OPTOPT" = "refresh" ]; then elif [ "$OPTOPT" = "clean" ]; then
rm -rf "$MAIN_CACHE_DIR" rm -rf "$MAIN_CACHE_DIR"
fi fi
done done