mirror of
https://github.com/TangentFoxy/love-release.git
synced 2025-07-29 03:22:19 +00:00
Now downloads dependencies at installation time
This commit is contained in:
18
install.sh
18
install.sh
@@ -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
|
||||
|
Reference in New Issue
Block a user