diff --git a/README.md b/README.md
index 28d57cd..8126177 100644
--- a/README.md
+++ b/README.md
@@ -2,13 +2,13 @@
Here you will be introduced on how to get data into oastat and how to get the data out again. Oastat can read both from file or pipe and can write output to either an SQL server or an XML file.
-Homepage: https://github.com/sago007/oastat/
+Homepage:
## Building
### Dependencies
-* CppDb - http://cppcms.com/sql/cppdb/
+* CppDb -
* libgcrypt
* boost_program_options
@@ -36,32 +36,32 @@ This will create the scripts for PostgreSQL, MySQL and SQLite
The general arguments are like this:
- oastat -f FILENAME --backend BACKEND --dbarg ARGUMENTS
+`oastat -f FILENAME --backend BACKEND --dbarg ARGUMENTS`
- * FILENAME is the file to be processed. If this is blank (like "") stdin will be read instead.
- * BACKEND is the name of the backend, in this case "Xml"
- * ARGUMENTS is the argument list to the backend in case of Xml-backend the possible arguments are outputdir and possible a post process script.
+* FILENAME is the file to be processed. If this is blank (like "") stdin will be read instead.
+* BACKEND is the name of the backend, in this case "Xml"
+* ARGUMENTS is the argument list to the backend in case of Xml-backend the possible arguments are outputdir and possible a post process script.
Running on a file:
- ./oastat -f "~/.openarena/baseoa/games.log" --backend "Xml" --dbarg "outputdir ~/oastat"
+`./oastat -f "~/.openarena/baseoa/games.log" --backend "Xml" --dbarg "outputdir ~/oastat"`
Reading from stdin:
- tail -f "~/.openarena/baseoa/games.log" | ./oastat -f "" --backend "Xml" --dbarg "outputdir ~/oastat"
+`tail -f "~/.openarena/baseoa/games.log" | ./oastat -f "" --backend "Xml" --dbarg "outputdir ~/oastat"`
This will generate XML-files in the choosen output dir in this case *~/oastat*
### Writing to database
The recommended backend is CppDb. Writing to a MySQL server is done like this:
- oastat --backend "CppDb" --dbarg "mysql:database=oastat;user=;password="
+`oastat --backend "CppDb" --dbarg "mysql:database=oastat;user=;password="`
See for details on how to create the connection string.
## Windows version
-A precompiled version for Windows can be found at: https://files.poulsander.com/~poul19/public_files/oastat/
-This version is compiled on a Debian system using MXE (http://mxe.cc/).
+A precompiled version for Windows can be found at:
+This version is compiled on a Debian system using MXE ().
The windows version only has support for XMl output and sqlite. The reason it does not support mySQL and PostgreSQL is because I was not able to compile a version of cppdb that supported it.
@@ -71,9 +71,9 @@ The Windows version includes two scripts:
The windows version cannot read from stdin or use the "--tail" command but it does demonstrate the duplicate check.
-For looking at the sqlite-file generated I recommend Sqliteman (http://sqliteman.com/)
+For looking at the sqlite-file generated I recommend Sqliteman ()
## License
The program is licences under GNU GPL v2 or any later version. See COPYING for details.
-The Windows version may include files from CPPDB (http://cppcms.com/sql/cppdb/) that are licensed under the Boost Software License 1.0 or The MIT license at your opinion.
+The Windows version may include files from CPPDB () that are licensed under the Boost Software License 1.0 or The MIT license at your opinion.
The windows version may also be packed with sqlite3.exe that are in the public domain.
diff --git a/sql/create_tables/create_specific.sh b/sql/create_tables/create_specific.sh
index 3b40a2e..68301e6 100755
--- a/sql/create_tables/create_specific.sh
+++ b/sql/create_tables/create_specific.sh
@@ -1,3 +1,4 @@
+#! /bin/bash
cat oastat_create_tables_common.sql | grep -v "RESTRICT2MYSQL" | sed -e 's/SERIAL/BIGSERIAL/g' -e 's/DATETIME/TIMESTAMP/g' -e 's/unsigned//g' > oastat_create_tables_posgrel.sql
cat oastat_create_tables_common.sql | grep -v "RESTRICT2POSTGRESQL" | sed -e 's/PRIMARY KEY//g' -e 's/unique//g' > oastat_create_tables_mysql.sql
cat oastat_create_tables_common.sql | grep -v "ALTER TABLE" | grep -v "ADD CONSTRAINT" | grep -v "RESTRICT2MYSQL" | grep -v "RESTRICT2POSTGRESQL" | sed -e 's/SERIAL/INTEGER/g' -e "s/now()/date('now')/g" -e 's/unique/PRIMARY KEY/g' > oastat_create_tables_sqlite.sql
diff --git a/src/mxe-build.sh b/src/mxe-build.sh
index da294a2..a76dd0b 100755
--- a/src/mxe-build.sh
+++ b/src/mxe-build.sh
@@ -1 +1,2 @@
-make USEDBIXX=0 CROSS=i686-pc-mingw32- PROGRAMNAME=oastat.exe
+#! /bin/bash
+make USEDBIXX=0 CROSS=i686-pc-mingw32- PROGRAMNAME=oastat.exe