# HG changeset patch # User Paul Boddie # Date 1482245729 -3600 # Node ID ef246d02f7cffce9751b348f40e42022287a80fa # Parent d0bf1870b447f4c9ff0b87125a3e77c6339a0774 Added descriptions and copyright information to the shell script tools. diff -r d0bf1870b447 -r ef246d02f7cf tools/fix.sh --- a/tools/fix.sh Mon Dec 19 23:39:20 2016 +0100 +++ b/tools/fix.sh Tue Dec 20 15:55:29 2016 +0100 @@ -1,5 +1,24 @@ #!/bin/sh +# This tool fixes permissions on data stores and published data, making sure +# that the imip-agent can update the directories involved and that the +# permissions persist. +# +# Copyright (C) 2015, 2016 Paul Boddie +# +# This program is free software; you can redistribute it and/or modify it under +# the terms of the GNU General Public License as published by the Free Software +# Foundation; either version 3 of the License, or (at your option) any later +# version. +# +# This program is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +# details. +# +# You should have received a copy of the GNU General Public License along with +# this program. If not, see . + DIRNAME=`dirname "$0"` if [ -e "$DIRNAME/config.sh" ]; then diff -r d0bf1870b447 -r ef246d02f7cf tools/i18n_format.sh --- a/tools/i18n_format.sh Mon Dec 19 23:39:20 2016 +0100 +++ b/tools/i18n_format.sh Tue Dec 20 15:55:29 2016 +0100 @@ -1,5 +1,23 @@ #!/bin/sh +# This tool compiles textual messages from the message catalogues for +# imip-agent using the gettext software. +# +# Copyright (C) 2015, 2016 Paul Boddie +# +# This program is free software; you can redistribute it and/or modify it under +# the terms of the GNU General Public License as published by the Free Software +# Foundation; either version 3 of the License, or (at your option) any later +# version. +# +# This program is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +# details. +# +# You should have received a copy of the GNU General Public License along with +# this program. If not, see . + if ! which msgfmt > /dev/null 2>&1 ; then exit 1 fi diff -r d0bf1870b447 -r ef246d02f7cf tools/i18n_messages.sh --- a/tools/i18n_messages.sh Mon Dec 19 23:39:20 2016 +0100 +++ b/tools/i18n_messages.sh Tue Dec 20 15:55:29 2016 +0100 @@ -1,5 +1,23 @@ #!/bin/sh +# This tool extracts textual messages from the imip-agent program files, using +# the gettext software to merge updated messages with the existing catalogues. +# +# Copyright (C) 2015, 2016 Paul Boddie +# +# This program is free software; you can redistribute it and/or modify it under +# the terms of the GNU General Public License as published by the Free Software +# Foundation; either version 3 of the License, or (at your option) any later +# version. +# +# This program is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +# details. +# +# You should have received a copy of the GNU General Public License along with +# this program. If not, see . + # Obtain messages from the Python files. find imiptools imipweb -type f -name '*.py' \ diff -r d0bf1870b447 -r ef246d02f7cf tools/init.sh --- a/tools/init.sh Mon Dec 19 23:39:20 2016 +0100 +++ b/tools/init.sh Tue Dec 20 15:55:29 2016 +0100 @@ -1,5 +1,25 @@ #!/bin/sh +# This tool initialises a deployment of imip-agent, creating data stores and +# published data directories, creating and initialising databases, and setting +# filesystem permissions. It is configured using the contents of the config.sh +# script. +# +# Copyright (C) 2015, 2016 Paul Boddie +# +# This program is free software; you can redistribute it and/or modify it under +# the terms of the GNU General Public License as published by the Free Software +# Foundation; either version 3 of the License, or (at your option) any later +# version. +# +# This program is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +# details. +# +# You should have received a copy of the GNU General Public License along with +# this program. If not, see . + DIRNAME=`dirname "$0"` CONFIG="$DIRNAME/config.sh" diff -r d0bf1870b447 -r ef246d02f7cf tools/init_user.sh --- a/tools/init_user.sh Mon Dec 19 23:39:20 2016 +0100 +++ b/tools/init_user.sh Tue Dec 20 15:55:29 2016 +0100 @@ -1,5 +1,23 @@ #!/bin/sh +# This tool initialises users within data stores and published data +# directories. It is configured using the contents of the config.sh script. +# +# Copyright (C) 2015, 2016 Paul Boddie +# +# This program is free software; you can redistribute it and/or modify it under +# the terms of the GNU General Public License as published by the Free Software +# Foundation; either version 3 of the License, or (at your option) any later +# version. +# +# This program is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +# details. +# +# You should have received a copy of the GNU General Public License along with +# this program. If not, see . + DIRNAME=`dirname "$0"` if [ -e "$DIRNAME/config.sh" ]; then diff -r d0bf1870b447 -r ef246d02f7cf tools/install.sh --- a/tools/install.sh Mon Dec 19 23:39:20 2016 +0100 +++ b/tools/install.sh Tue Dec 20 15:55:29 2016 +0100 @@ -1,5 +1,23 @@ #!/bin/sh +# This tool installs the imip-agent software and message resources. It is +# configured by the contents of the config.sh script. +# +# Copyright (C) 2014, 2015, 2016 Paul Boddie +# +# This program is free software; you can redistribute it and/or modify it under +# the terms of the GNU General Public License as published by the Free Software +# Foundation; either version 3 of the License, or (at your option) any later +# version. +# +# This program is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +# details. +# +# You should have received a copy of the GNU General Public License along with +# this program. If not, see . + DIRNAME=`dirname "$0"` if [ -e "$DIRNAME/config.sh" ]; then