X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/15badc71ce964f6dae6428c9a4c0198fad5d4936..076c6cc342963b3befb80e6c2b5cb424d337ca1f:/tools/check_dist_archive diff --git a/tools/check_dist_archive b/tools/check_dist_archive index d2821499b8..963a4a3495 100755 --- a/tools/check_dist_archive +++ b/tools/check_dist_archive @@ -1,5 +1,11 @@ #!/bin/bash +# Copyright (c) 2013-2014. The SimGrid Team. +# All rights reserved. + +# This program is free software; you can redistribute it and/or modify it +# under the terms of the license (GNU LGPL) which comes with this package. + set -e if [ "$1" = "-batch" ]; then @@ -12,7 +18,7 @@ else fi if [ $# -lt 1 -o $# -gt 3 ]; then - cat <&2 <&2 exit 1 fi @@ -49,7 +55,7 @@ case "$myname" in esac if [ ! -r "$exclude" ]; then - printf 'File not found: %s\n' "$exclude" + printf 'File not found: %s\n' "$exclude" >&2 exit 1 fi @@ -97,7 +103,7 @@ EOF fi } -colordiff=$(type -p colordiff) +colordiff=$(type -p colordiff || true) colorless() { if [ -x "$colordiff" ]; then "$colordiff" | less -R -F -X