update scripts

- script file extension considered harmful
- adding missing license on scripts
  they are brand new and not covered by GPL
This commit is contained in:
Thomas Debesse 2018-03-17 23:16:48 +01:00
parent d6dcf1157d
commit 0dcc9b3fa7
7 changed files with 15 additions and 3 deletions

View File

@ -5,7 +5,7 @@ compiler:
- gcc
before_install:
- sudo -s tools/travis_update_packages.sh
- sudo -s tools/travis_update_packages
script:
- cmake -DWITH_QSTAT=/usr/bin/quakestat -DCMAKE_C_FLAGS=-Werror .

View File

@ -563,7 +563,7 @@ add_custom_command (TARGET translation
install (TARGETS xqf DESTINATION "${CMAKE_INSTALL_PREFIX}/bin")
# Query script
install (PROGRAMS ${CMAKE_SOURCE_DIR}/tools/qstat_savage.sh DESTINATION "${PACKAGE_DATA_DIR}/tools")
install (PROGRAMS ${CMAKE_SOURCE_DIR}/tools/qstat_savage DESTINATION "${PACKAGE_DATA_DIR}/tools")
# UI
if (GUI MATCHES GTK2)

View File

@ -1060,7 +1060,7 @@ static struct stat_conn *stat_update_master_qstat (struct stat_job *job, struct
/* savage hack */
if (m->type == SAS_SERVER) {
argv[argi++] = PACKAGE_DATA_DIR "/tools/qstat_savage.sh";
argv[argi++] = PACKAGE_DATA_DIR "/tools/qstat_savage";
argv[argi++] = "-sam";
argv[argi++] = m->url;
argv[argi++] = NULL;

View File

@ -1,5 +1,8 @@
#! /bin/sh
# Author: Thomas Debesse
# License: ISC
if [ "x${1}" = 'x-h' -o "x${1}" = '--help' -o "x${1}" = 'x' ]
then
echo "Usage: ${0} [XQF's source root directory]"

View File

@ -1,5 +1,8 @@
#! /bin/sh
# Author: Thomas Debesse
# License: ISC
#
# This script automatically updates translation template from the source code of XQF
#

View File

@ -1,5 +1,8 @@
#! /bin/sh
# Author: Thomas Debesse
# License: ISC
if [ "x${1}" = 'x' -o "x${1}" = 'x--help' ]
then
printf 'Usage: %s -sam http://masterserver.savage.s2games.com/gamelist_full.dat\n' "${0}"

View File

@ -1,5 +1,8 @@
#! /bin/sh
# Author: Thomas Debesse
# License: ISC
# please run this script as root user
# please use tabs for indentation (heredocs starting with <<-EOF need tabs)