From a1033cb062172ec7357637d00ffb5b38ebcfe890 Mon Sep 17 00:00:00 2001 From: Christian Engwer <christi@dune-project.org> Date: Mon, 21 Apr 2008 14:13:55 +0000 Subject: [PATCH] extract version and maintainer [[Imported from SVN: r5166]] --- bin/dunemodules.inc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bin/dunemodules.inc b/bin/dunemodules.inc index 7e4c4cd74..395b6c923 100644 --- a/bin/dunemodules.inc +++ b/bin/dunemodules.inc @@ -42,6 +42,8 @@ parse_control() { fi local deps="$(echo $($GREP Depends: "$1" | cut -d ':' -f2))" local sugs="$(echo $($GREP Suggests: "$1" | cut -d ':' -f2))" + local vers="$(echo $($GREP Version: "$1" | cut -d ':' -f2))" + local main="$(echo $($GREP Maintainer: "$1" | cut -d ':' -f2))" local path="$(dirname "$1")" # create and check variable name from module name export module=$(fix_variable_name $name) @@ -61,7 +63,9 @@ parse_control() { # set status variables export HAVE_${module}=yes export PATH_${module}="$path" + export VERS_${module}="$vers" export NAME_${module}="$name" + export MAIN_${module}="$main" export DEPS_${module}="$deps" for name in $deps; do mod=$(fix_variable_name $name) -- GitLab