Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-common
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Core Modules
dune-common
Commits
a1033cb0
Commit
a1033cb0
authored
16 years ago
by
Christian Engwer
Browse files
Options
Downloads
Patches
Plain Diff
extract version and maintainer
[[Imported from SVN: r5166]]
parent
dc4faf69
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bin/dunemodules.inc
+4
-0
4 additions, 0 deletions
bin/dunemodules.inc
with
4 additions
and
0 deletions
bin/dunemodules.inc
+
4
−
0
View file @
a1033cb0
...
...
@@ -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
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment