Skip to content

Commit

Permalink
Remove unused autodeploy.sh
Browse files Browse the repository at this point in the history
* Removed as it is no longer used, and redundant
* Moved some behavior to `install.sh`
* Other behavior moved to `prepare_freeciv.sh`
  • Loading branch information
mchenryc committed Aug 27, 2018
1 parent 3f6b7fd commit dac4e1f
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 78 deletions.
12 changes: 7 additions & 5 deletions freeciv/prepare_freeciv.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
#!/bin/sh
#!/bin/bash

if test "x$(dirname $0)" != "x." ; then
echo "Currently this script must be run on its own directory" >&2
exit 1
fi
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null && pwd)"

cd "${DIR}"

# Fix line endings on Windows
sed -i 's/\r$//' freeciv-web.project

. ./version.txt

Expand Down
2 changes: 0 additions & 2 deletions scripts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,3 @@ Freeciv-web scripts
* status-freeciv-web.sh - checks if Freeciv-web is running.

* update-wikipedia-docs.py - generates docs from wikipedia about techs, units and buildings.

* autodeploy.sh - script to build Freeciv-web nightly for a live server.
66 changes: 0 additions & 66 deletions scripts/autodeploy.sh

This file was deleted.

9 changes: 4 additions & 5 deletions scripts/install/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -290,11 +290,10 @@ setfacl -Rm d:u:tomcat8:rwX webapps/data

echo "==== Building freeciv ===="
echo "Please be patient"
# Fix line endings on Windows
sed -i 's/\r$//' "${basedir}"/freeciv/freeciv-web.project

cd "${basedir}"/freeciv && ./prepare_freeciv.sh
cd freeciv && make install
cd "${basedir}"/freeciv && \
./prepare_freeciv.sh && \
cd freeciv && make install || \
handle_error 5 "Failed to install freeciv"

echo "==== Building freeciv-web ===="
if [ ! -f "${basedir}"/publite2/settings.ini ]; then
Expand Down

0 comments on commit dac4e1f

Please sign in to comment.