Difference between revisions of "Autostart/Server"
From #openttdcoop wiki
m (New page: This is the brother of Autostart for servers, it does help you to manage your OpenTTD server and keep them compatible with Autostart. Source: http://svn.openttdcoop.org/tools/ottdserv...) |
m (→Development) |
||
| Line 13: | Line 13: | ||
=== Development === | === Development === | ||
| + | ====Usage==== | ||
| + | <pre> | ||
| + | OpenTTD Server Maintain Tool $THISREV | ||
| − | Default | + | Usage: update <name> -a -c -f -g -h -p <patch> -r [revision] -s -v -w ... |
| + | Name name of the file (requirement) | ||
| + | Options:-a updating Autopilot | ||
| + | -c [proper] \"clean\" revert (optional make mrproper) | ||
| + | -f, --force force action | ||
| + | -g updating #openttdcoop NewGRF package | ||
| + | -h this help | ||
| + | -p FILE patching current source with patch FILE | ||
| + | -r [0000] updating source to revision 0000, if no revision | ||
| + | is given, it will update to FINGER revision. | ||
| + | -s <PORT> setup new server | ||
| + | -v version of this script | ||
| + | -w write FINGER file | ||
| + | --CONFARGS additional arguments to ./configure | ||
| + | --FINGER URL to FINGER file, which should be compiled here | ||
| + | (Default: finger.openttd.org) | ||
| + | --PORT <PORT> changing port to <PORT> | ||
| + | --REPO the OpenTTD repo (Default: $OTTDREPO) | ||
| + | --PATH path for bundle (Default: $BUNDLEPATH) | ||
| + | </pre> | ||
| + | ====Default config==== | ||
<pre> | <pre> | ||
# CONFIG: | # CONFIG: | ||
Latest revision as of 16:18, 21 September 2008
This is the brother of Autostart for servers, it does help you to manage your OpenTTD server and keep them compatible with Autostart.
Source: http://svn.openttdcoop.org/tools/ottdserver/
The script is called "update", but it does more then just update:
- Setup a new Server
- Update to specifig revision
- update GRFPack
- update Autopilot, repo for custom commands
- self update
- Webconfigurator
Development
Usage
OpenTTD Server Maintain Tool $THISREV
Usage: update <name> -a -c -f -g -h -p <patch> -r [revision] -s -v -w ...
Name name of the file (requirement)
Options:-a updating Autopilot
-c [proper] \"clean\" revert (optional make mrproper)
-f, --force force action
-g updating #openttdcoop NewGRF package
-h this help
-p FILE patching current source with patch FILE
-r [0000] updating source to revision 0000, if no revision
is given, it will update to FINGER revision.
-s <PORT> setup new server
-v version of this script
-w write FINGER file
--CONFARGS additional arguments to ./configure
--FINGER URL to FINGER file, which should be compiled here
(Default: finger.openttd.org)
--PORT <PORT> changing port to <PORT>
--REPO the OpenTTD repo (Default: $OTTDREPO)
--PATH path for bundle (Default: $BUNDLEPATH)
Default config
# CONFIG: ROOTDIR="$HOME/openttd" WEBROOT="$HOME/public_html" # #openttdcoop OTTDCOOPREPO="https://svn.openttdcoop.org" BRANCHAUTOPILOT="tools/autopilot/branches/ap+" BRANCHGRFPACK="grfpack/tags" BRANCHCONFIG="tools/webconfig" GRFVERURL="http://www.openttdcoop.org/newgrfs/VERSION" # OpenTTD DEFREPO="svn://svn.openttd.org/trunk" DEFBUNDLEPATH="nightlies/trunk" DEFFINGER="http://finger.openttd.org/versions.txt" GAMEDIR="bin" DIRMODE="g+w" NEEDSBUILDING= CONFARGS=