The branch, build-baikal has been updated via 1ac8f38b73abfa302c19e6eebe46335eed88526d (commit) from 550999a270a5c16f04109f84892b9308aab56f3d (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- ----------------------------------------------------------------------- Summary of changes: bin/x2goversion | 52 ++++++++++++++++++++++++++++++++++++---------------- 1 file changed, 36 insertions(+), 16 deletions(-) The diff of changes is: diff --git a/bin/x2goversion b/bin/x2goversion index e98e8ce..268d3f0 100755 --- a/bin/x2goversion +++ b/bin/x2goversion @@ -1,27 +1,47 @@ #!/bin/bash -X2GO_VERSIONS_BASEPATH="../share/x2go/versions" +# Copyright (C) 2007-2011 X2go Project - http://wiki.x2go.org +# +# 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 2 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, write to the +# Free Software Foundation, Inc., +# 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. +# +# Copyright (C) 2011 Oleksandr Shneyder <oleksandr.shneyder@obviously-nice.de> +# Copyright (C) 2011 Heinz-Markus Graesing <heinz-m.graesing@obviously-nice.de> + +X2GO_VERSIONS_BASEPATH="$(dirname $0)/../share/x2go/versions" get_version() { - cat "$1" | egrep -v "^#.*" | head -n1 | cut -d" " -f1 + cat "$1" | egrep -v "^#.*" | head -n1 | cut -d" " -f1 } if [ -n "$1" ]; then - X2GO_COMPONENT="$1" - X2GO_COMPONENT_VERFILE="${X2GO_VERSIONS_BASEPATH}/VERSION.${X2GO_COMPONENT}" + X2GO_COMPONENT="$1" + X2GO_COMPONENT_VERFILE="${X2GO_VERSIONS_BASEPATH}/VERSION.${X2GO_COMPONENT}" - if [ -f "${X2GO_COMPONENT_VERFILE}" ]; then - echo "$(get_version ${X2GO_COMPONENT_VERFILE})" - else - echo "Version information for X2go component '$X2GO_COMPONENT' is not available." >&1 - fi + if [ -f "${X2GO_COMPONENT_VERFILE}" ]; then + echo "$(get_version ${X2GO_COMPONENT_VERFILE})" + else + echo "Version information for X2go component '$X2GO_COMPONENT' is not available." >&1 + fi else - cd ${X2GO_VERSIONS_BASEPATH} - for compfile in `ls`; do - X2GO_COMPONENT="$(echo $compfile | cut -d"." -f2)" - X2GO_COMPONENT_VERSION="$(get_version $compfile)" - echo "${X2GO_COMPONENT}: ${X2GO_COMPONENT_VERSION}" - done - cd - + cd ${X2GO_VERSIONS_BASEPATH} + for compfile in `ls ${X2GO_VERSIONS_BASEPATH}`; do + X2GO_COMPONENT="$(echo $compfile | cut -d"." -f2)" + X2GO_COMPONENT_VERSION="$(get_version $compfile)" + echo "${X2GO_COMPONENT}: ${X2GO_COMPONENT_VERSION}" + done + cd - >/dev/null fi hooks/post-receive -- x2goserver.git (X2Go Server) This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "x2goserver.git" (X2Go Server).