3
0
Fork 0
forked from mirrors/nixpkgs

Hint at usage if called without parameters

svn path=/nixpkgs/trunk/; revision=22159
This commit is contained in:
Michael Raskin 2010-06-05 21:14:01 +00:00
parent 6c4cb05613
commit 5d10c4f9b9

View file

@ -6,6 +6,11 @@ own_dir="$(cd "$(dirname "$0")"; sh -c pwd)"
source "$own_dir/snippets.sh" source "$own_dir/snippets.sh"
[ -z "$1" ] && {
echo "Specify main expression filename."
exit 1;
}
main_file="$1" main_file="$1"
main_dir="$(cd "$(dirname "$main_file")" ; sh -c pwd)" main_dir="$(cd "$(dirname "$main_file")" ; sh -c pwd)"
file_name="$(basename "$main_file")" file_name="$(basename "$main_file")"