mirror of git://gcc.gnu.org/git/gcc.git
gcc_release (maybe_build_tarfile): Don't build a tarfile if the first directory doesn't exist.
* gcc_release (maybe_build_tarfile): Don't build a tarfile if the first directory doesn't exist. From-SVN: r172827
This commit is contained in:
parent
f103fa7a35
commit
3b6e9676fe
|
@ -1,3 +1,8 @@
|
||||||
|
2011-04-21 Jakub Jelinek <jakub@redhat.com>
|
||||||
|
|
||||||
|
* gcc_release (maybe_build_tarfile): Don't build a tarfile if
|
||||||
|
the first directory doesn't exist.
|
||||||
|
|
||||||
2011-03-14 Jakub Jelinek <jakub@redhat.com>
|
2011-03-14 Jakub Jelinek <jakub@redhat.com>
|
||||||
|
|
||||||
* crontab: Enable 4.7 snapshots, switch 4.6 snapshots to
|
* crontab: Enable 4.7 snapshots, switch 4.6 snapshots to
|
||||||
|
|
|
@ -253,13 +253,7 @@ build_tarfile() {
|
||||||
maybe_build_tarfile() {
|
maybe_build_tarfile() {
|
||||||
dest=$1
|
dest=$1
|
||||||
shift
|
shift
|
||||||
dir_exists=0
|
if [ $# != 0 -a -d "$1" ]; then
|
||||||
for maybe_dir in "$@"; do
|
|
||||||
if [ -d "$maybe_dir" ]; then
|
|
||||||
dir_exists=1
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
if [ $dir_exists = 1 ]; then
|
|
||||||
build_tarfile "$dest" "$@"
|
build_tarfile "$dest" "$@"
|
||||||
else
|
else
|
||||||
echo "Not building $dest tarfile"
|
echo "Not building $dest tarfile"
|
||||||
|
|
Loading…
Reference in New Issue