Fix issues with sed. Fix typo in github url.

This commit is contained in:
Antonin Décimo
2014-08-27 22:28:52 +02:00
parent b708ae13bb
commit bcdda5ac7e
3 changed files with 4 additions and 6 deletions

View File

@@ -132,7 +132,7 @@ See [developer.gnome.org](https://developer.gnome.org/integration-guide/stable/b
### SEE ALSO
[https://www.love2d.org](https://www.love2d.org)
[https://www.love2d.org/wiki/Game_Distribution](https://www.love2d.org/wiki/Game_Distribution)
[https://www.github.org/MisterDA/love-release](https://www.github.org/MisterDA/love-release)
[https://www.github.com/MisterDA/love-release](https://www.github.com/MisterDA/love-release)
### THANKS
The work done on Debian packaging is highly inspired by what [josefnpat](http://josefnpat.com/) did.

View File

@@ -13,8 +13,7 @@ MANPAGE_DIR=/usr/share/man/man1
SED_ARG=$(echo "$INSTALL_DIR" | sed -e 's/[\/&]/\\&/g')
mkdir -p "$BINARY_DIR"
cp ./love-release.sh "$BINARY_DIR"/love-release
sed -i -e "s/INSTALL_DIR=/INSTALL_DIR=$SED_ARG/g" "$BINARY_DIR"/love-release
sed -e "s/INSTALL_DIR=/INSTALL_DIR=$SED_ARG/g" love-release.sh > "$BINARY_DIR"/love-release
mkdir -p "$INSTALL_DIR"
cp ./README.md "$INSTALL_DIR"
@@ -23,8 +22,7 @@ cp -r ./scripts "$INSTALL_DIR"
cp -r ./include "$INSTALL_DIR"
mkdir -p "$MANPAGE_DIR"
cp love-release.1 "$MANPAGE_DIR"/love-release.1
sed -i -e "s/scripts/$SED_ARG\/scripts/g" -e "s/config.ini/$SED_ARG\/config.ini/g" "$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
echo "Done !"

View File

@@ -173,4 +173,4 @@ for more informations.
.br
.I https://www.love2d.org/wiki/Game_Distribution
.br
.I https://www.github.org/MisterDA/love-release
.I https://www.github.com/MisterDA/love-release