#!/bin/bash
-family=$1
-dist=$2
+if [ $# -eq 1 ]; then
+ family=${1%%-*}
+ dist=${1##*-}
+elif [ $# -ge 2 ]; then
+ family=$1
+ dist=$2
+fi
set -e
exit 1
fi
-. /etc/neurodebian/cmdsettings.sh
+. /etc/neurodebian/cmdsettings.sh "$family" "$dist"
# common options
opts="--distribution $dist --aptcache $aptcache --buildplace $buildplace"