mirror of
https://github.com/TangentFoxy/love-release.git
synced 2025-07-28 11:02:20 +00:00
Change option --refresh to --clean
This commit is contained in:
@@ -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.
|
||||||
|
|
||||||
|
@@ -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
|
||||||
|
@@ -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
|
||||||
|
Reference in New Issue
Block a user