]> git.donarmstrong.com Git - neurodebian.git/commitdiff
Move args checks into each script.
authorMichael Hanke <michael.hanke@gmail.com>
Thu, 3 Sep 2009 20:26:23 +0000 (16:26 -0400)
committerMichael Hanke <michael.hanke@gmail.com>
Thu, 3 Sep 2009 20:26:23 +0000 (16:26 -0400)
tools/nd_adddist
tools/nd_backport
tools/nd_build
tools/nd_cmdsettings.sh
tools/nd_gitbuild
tools/nd_updatedist

index f31a29b374434930fbd903d2e5b2572e85d4bdf2..0d9ab920d495652de5cdb6f2ddd6ff48022cd49d 100755 (executable)
@@ -1,5 +1,21 @@
 #!/bin/bash
 
+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
+fi
+
+if [ -z "$dist" ]; then
+  echo "You need to provide a distribution codename (e.g. 'lenny', 'squeeze')."
+  exit 1
+fi
+
+
 . /home/neurodebian/neurodebian.git/tools/nd_cmdsettings.sh
 
 # common options
index 03ef7867635e0d1b8d29f2537390e4057884cd8e..039b1f42169f5ab3ab64f1c91c30af981d2815fe 100755 (executable)
@@ -1,5 +1,21 @@
 #!/bin/bash
 
+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
+fi
+
+if [ -z "$dist" ]; then
+  echo "You need to provide a distribution codename (e.g. 'lenny', 'squeeze')."
+  exit 1
+fi
+
+
 set -e
 set -u
 
index 7fa26c3ad6989c9ca29992b7b4d8e975ba931d3f..08ac6e2fcee0f1ca2cf8917394ae13aaba84c320 100755 (executable)
@@ -31,6 +31,21 @@ EOT
 exit 1
 fi
 
+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
+fi
+
+if [ -z "$dist" ]; then
+  echo "You need to provide a distribution codename (e.g. 'lenny', 'squeeze')."
+  exit 1
+fi
+
 . /home/neurodebian/neurodebian.git/tools/nd_cmdsettings.sh
 
 # common options
index 92871d433b38e8094c1e6eb435e547d8aacbd6ba..34239333197fa1c661dbd2bfe6790071f503102e 100755 (executable)
@@ -3,16 +3,6 @@ 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
-fi
-
-if [ -z "$dist" ]; then
-  echo "You need to provide a distribution codename (e.g. 'lenny', 'squeeze')."
-  exit 1
-fi
-
 # basic settings
 cowbuilderroot="/home/neurodebian"
 buildplace="${cowbuilderroot}/build"
index 4fae395688fbe224ef86688a4c10ac4aefb5eac0..ddec36d7b7d790aeafb43ea169c8b2a0d11930d5 100755 (executable)
@@ -1,5 +1,20 @@
 #!/bin/bash
 
+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
+fi
+
+if [ -z "$dist" ]; then
+  echo "You need to provide a distribution codename (e.g. 'lenny', 'squeeze')."
+  exit 1
+fi
+
 . /home/neurodebian/neurodebian.git/tools/nd_cmdsettings.sh
 
 # common options
index 432f9bc47eb08e5ab49066f5175db7964ca014f7..e4cc9aa4b26c6e8de10ab0fc7f526a533666cb94 100755 (executable)
@@ -1,5 +1,20 @@
 #!/bin/bash
 
+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
+fi
+
+if [ -z "$dist" ]; then
+  echo "you need to provide a distribution codename (e.g. 'lenny', 'squeeze')."
+  exit 1
+fi
+
 . /home/neurodebian/neurodebian.git/tools/nd_cmdsettings.sh
 
 # common options