Bug fixes

- when arguments containing spaces where passed, following options would
  be ignored
- love-release was not marked as executable
- fix typos
This commit is contained in:
Antonin Décimo
2014-09-06 11:51:41 +02:00
parent dccf390820
commit c076e59a1a
3 changed files with 4 additions and 3 deletions

View File

@@ -4,7 +4,7 @@
### INSTALLATION ### INSTALLATION
Clone and run as root `install.sh`, or edit `install.sh` to choose Clone and run as root `install.sh`, or edit `install.sh` to choose
locations in user-space. locations in user-space.
Close and reopen your terminal to make completion available, or execute Close and reopen your terminal to make completion available, or execute :
`. /etc/bash_completion.d/love-release` `. /etc/bash_completion.d/love-release`
### SYNOPSIS ### SYNOPSIS

View File

@@ -15,6 +15,7 @@ COMPLETION_DIR=/etc/bash_completion.d
SED_ARG=$(echo "$INSTALL_DIR" | sed -e 's/[\/&]/\\&/g') SED_ARG=$(echo "$INSTALL_DIR" | sed -e 's/[\/&]/\\&/g')
mkdir -p "$BINARY_DIR" mkdir -p "$BINARY_DIR"
sed -e "s/INSTALL_DIR=/INSTALL_DIR=$SED_ARG/g" love-release.sh > "$BINARY_DIR"/love-release sed -e "s/INSTALL_DIR=/INSTALL_DIR=$SED_ARG/g" love-release.sh > "$BINARY_DIR"/love-release
chmod +x "$BINARY_DIR"/love-release
mkdir -p "$INSTALL_DIR" mkdir -p "$INSTALL_DIR"
cp ./README.md "$INSTALL_DIR" cp ./README.md "$INSTALL_DIR"
@@ -26,7 +27,7 @@ mkdir -p "$MANPAGE_DIR"
sed -e "s/scripts/$SED_ARG\/scripts/g" -e "s/config.ini/$SED_ARG\/config.ini/g" love-release.1 > "$MANPAGE_DIR"/love-release.1 sed -e "s/scripts/$SED_ARG\/scripts/g" -e "s/config.ini/$SED_ARG\/config.ini/g" love-release.1 > "$MANPAGE_DIR"/love-release.1
gzip -9 -f "$MANPAGE_DIR"/love-release.1 gzip -9 -f "$MANPAGE_DIR"/love-release.1
mkdir -p "COMPLETION_DIR" mkdir -p "$COMPLETION_DIR"
cp ./completion.sh "$COMPLETION_DIR"/love-release cp ./completion.sh "$COMPLETION_DIR"/love-release
echo "Done !" echo "Done !"

View File

@@ -196,7 +196,7 @@ do
PROJECT_FILES="$PROJECT_FILES $file" PROJECT_FILES="$PROJECT_FILES $file"
done done
set -- ${ARGS[@]} set -- "${ARGS[@]}"
unset OPTIND unset OPTIND
unset OPTOFS unset OPTOFS