Various little fixes

This commit is contained in:
Antonin Décimo
2014-08-19 16:29:29 +02:00
parent 5fb41ff660
commit 3c1af29321
4 changed files with 9 additions and 10 deletions

View File

@@ -23,9 +23,8 @@ If `lua` and a `conf.lua` file are found,
it will automatically detect which version your project uses.
If a `ProjectName.icns` file is provided,
the script will use it to set the game icon on MacOS.
If a `ProjectName.ico` file is provided, and that Wine
and Resource Hacker are installed, the script will use them
to set the game icon on Windows.
If a `ProjectName.ico` file is provided, and that Wine is installed,
the script will use it to set the game icon on Windows.
### OPTIONS
`-h` Print a short help
@@ -111,7 +110,7 @@ but if provided it can use them.
- if you want to create Windows icons (.ico), you can
- use [icoutils](http://www.nongnu.org/icoutils/) to create the icon,
- then [Wine](http://www.winehq.org/) and [Resource Hacker](http://www.angusj.com/resourcehacker/) to set the icon.
This last step can be automatically done, assuming Wine and Resource Hacker are installed.
This last step can be automatically done, assuming Wine is installed.
If you want to add icons in the debian package,
open it and put the icons in `/usr/share/icons/hicolor/YYxYY/apps/`,

View File

@@ -21,8 +21,7 @@ it will automatically detect which version your project uses.
If a \fIProjectName.icns\fR file is provided,
the script will use it to set the game icon on MacOS.
If a \fIProjectName.ico\fR file is provided, and that \fBWine\fR
and \fBResource Hacker\fR are installed, the script will use them
to set the game icon on Windows.
is installed, the script will use it to set the game icon on Windows.
.SH OPTIONS
.TP
.B \-h
@@ -147,7 +146,7 @@ If you want to create Windows icons (\fI.ico\fR),
you can use \fIicoutils\fR to create the icon,
then Wine and Resource Hacker to set the icon.
This last step can be automatically done,
assuming Wine and Resource Hacker are installed.
assuming Wine is installed.
.br
If you want to add icons in the debian package,
open it and put the icons in \fI/usr/share/icons/hicolor/YYxYY/apps/\fR,

View File

@@ -70,6 +70,7 @@ LOVE_GT_090=$(float_test "$LOVE_VERSION_MAJOR >= 0.9")
# Global variables
ARGS=( "$@" )
SCRIPT_ARGS="$SCRIPT_ARGS h; v: refresh help"
SCRIPT_ARGS=$(printf '%s\n' $SCRIPT_ARGS | sort -u)
PROJECT_FILES=
EXCLUDE_FILES=$(/bin/ls -A | grep "^[.]" | tr '\n' ' ')
@@ -161,10 +162,10 @@ remove_love_file ()
exit_module ()
{
if [ -z $2 ]; then
if [ -z "$2" ]; then
echo "Done !"
else
echo $2
echo -e "$2"
fi
exit $1
}

View File

@@ -9,7 +9,7 @@ do
PROJECT_ICO=$OPTARG
fi
done
EXCLUDE_FILES="$EXCLUDE_FILES $PROJECT_ICO test"
EXCLUDE_FILES="$EXCLUDE_FILES $PROJECT_ICO"
# Wine
FOUND_WINE=true