Now downloads dependencies at installation time

This commit is contained in:
Antonin Décimo
2014-09-06 14:01:33 +02:00
parent c076e59a1a
commit deff81117d
4 changed files with 19 additions and 506 deletions

View File

@@ -21,7 +21,23 @@ mkdir -p "$INSTALL_DIR"
cp ./README.md "$INSTALL_DIR"
cp ./config.ini "$INSTALL_DIR"
cp -r ./scripts "$INSTALL_DIR"
cp -r ./include "$INSTALL_DIR"
mkdir -p "$INSTALL_DIR"/include
_PWD=$PWD
if [ -d "$INSTALL_DIR"/include/getopt ]; then
cd "$INSTALL_DIR"/include/getopt
git pull
cd "$_PWD"
else
git clone https://gist.github.com/MisterDA/7284755 "$INSTALL_DIR"/include/getopt
fi
if [ -d "$INSTALL_DIR"/include/bash_ini_parser ]; then
cd "$INSTALL_DIR"/include/bash_ini_parser
git pull
cd "$_PWD"
else
git clone https://github.com/rudimeier/bash_ini_parser "$INSTALL_DIR"/include/bash_ini_parser
fi
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