From c3f89cc850352288c6d4b726098374fb7ce0463b Mon Sep 17 00:00:00 2001 From: Michael Hanke Date: Thu, 3 Sep 2009 11:07:11 -0400 Subject: [PATCH] Adjust path for new location of tools. --- tools/nd_adddist | 2 +- tools/nd_build | 2 +- tools/nd_cmdsettings.sh | 2 ++ tools/nd_gitbuild | 2 +- tools/nd_updatedist | 2 +- 5 files changed, 6 insertions(+), 4 deletions(-) diff --git a/tools/nd_adddist b/tools/nd_adddist index f0d8f6f..9699dd8 100755 --- a/tools/nd_adddist +++ b/tools/nd_adddist @@ -1,6 +1,6 @@ #!/bin/bash -. /home/cowbuilder/bin/nd_cmdsettings.sh +. /home/cowbuilder/neurodebian.git/tools/nd_cmdsettings.sh # common options opts="--distribution $dist --debootstrap debootstrap --aptcache $aptcache" diff --git a/tools/nd_build b/tools/nd_build index 6bd6d88..549e24d 100755 --- a/tools/nd_build +++ b/tools/nd_build @@ -31,7 +31,7 @@ EOT exit 1 fi -. /home/cowbuilder/bin/nd_cmdsettings.sh +. /home/cowbuilder/neurodebian.git/tools/nd_cmdsettings.sh # common options opts="--distribution $dist --aptcache $aptcache --buildplace $buildplace" diff --git a/tools/nd_cmdsettings.sh b/tools/nd_cmdsettings.sh index 9fe51fa..d34ade1 100755 --- a/tools/nd_cmdsettings.sh +++ b/tools/nd_cmdsettings.sh @@ -1,6 +1,8 @@ family=$1 dist=$2 +set -e + if [ -z "$family" ]; then echo "You need to provide a distribution family ('debian', 'ubuntu'); prefix with 'nd+' to enable the NeuroDebian repository." exit 1 diff --git a/tools/nd_gitbuild b/tools/nd_gitbuild index f891e5f..a80af07 100755 --- a/tools/nd_gitbuild +++ b/tools/nd_gitbuild @@ -1,6 +1,6 @@ #!/bin/bash -. /home/cowbuilder/bin/nd_cmdsettings.sh +. /home/cowbuilder/neurodebian.git/tools/nd_cmdsettings.sh # common options opts="--distribution $dist --aptcache $aptcache --buildplace $buildplace" diff --git a/tools/nd_updatedist b/tools/nd_updatedist index fc2dedd..81f511f 100755 --- a/tools/nd_updatedist +++ b/tools/nd_updatedist @@ -1,6 +1,6 @@ #!/bin/bash -. /home/cowbuilder/bin/nd_cmdsettings.sh +. /home/cowbuilder/neurodebian.git/tools/nd_cmdsettings.sh # common options opts="--distribution $dist --aptcache $aptcache --buildplace $buildplace" -- 2.39.5