Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-istl
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
Model registry
Operate
Environments
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-istl
Commits
691ac90c
Commit
691ac90c
authored
9 years ago
by
Christoph Grüninger
Browse files
Options
Downloads
Patches
Plain Diff
[cleanup] Remove leftover (?) file Doxydep
parent
eadefdb9
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
doc/doxygen/Doxydep
+0
-131
0 additions, 131 deletions
doc/doxygen/Doxydep
with
0 additions
and
131 deletions
doc/doxygen/Doxydep
deleted
100755 → 0
+
0
−
131
View file @
eadefdb9
#!/usr/bin/perl -w
use
strict
;
use
English
;
use
IO::
Handle
;
# OPTIONS
my
$defaulttarget
=
"
doxygen-tag
";
my
$USAGE
=
"
Doxydep <DOXYFILE> <DEPFILE> [TARGET]
"
.
"
\t
DOXYFILE: Configuration file for Doxygen
\n
"
.
"
\t
DEPFILE: Outfile for the dependencies
\n
"
.
"
\t
TARGT: Target for the Makefile (default=
$defaulttarget
)
";
my
$doxyname
=
shift
||
die
$USAGE
;
my
$depfile
=
shift
||
die
$USAGE
;
my
$target
;
$target
=
shift
;
if
(
!
$target
)
{
$target
=
$defaulttarget
};
# write an entry for DEPFILE
sub
addDep
($)
{
my
$dep
=
shift
;
if
(
defined
(
$dep
)
&&
!
$dep
eq
"")
{
print
DEPFILE
"
$target
:
$dep
\n\n
";
print
DEPFILE
"
$dep
:
\n\n
";
}
}
# get all files in a directory, except . and ..
sub
readDir
($)
{
my
$dir
=
shift
;
$dir
=~
s/\/$//
;
$dir
=
$dir
.
"
/
";
my
@entries
;
opendir
DIR
,
$dir
;
while
(
my
$f
=
readdir
DIR
)
{
if
(
$f
!~
/^\.\.?$/
)
{
push
(
@entries
,
$dir
.
$f
);
}
}
close
DIR
;
return
@entries
;
}
# find file matching the pattern
sub
findFiles
($$$)
{
my
$dir
=
shift
;
my
$pattern
=
shift
;
my
$recursive
=
shift
;
$pattern
=~
s/\*/\\w*/g
;
$pattern
=~
s/\?/\\w/g
;
my
@entries
;
push
(
@entries
,
readDir
(
$dir
));
my
@existing
;
while
(
my
$file
=
pop
(
@entries
))
{
if
((
-
d
$file
)
&&
(
$recursive
eq
"
YES
"
))
{
push
(
@entries
,
readDir
(
$file
));
}
next
unless
-
f
$file
;
next
if
(
$file
!~
/[\/^]$pattern$/
);
if
((
-
f
$file
)
&&
(
-
r
$file
))
{
push
@existing
,
$file
;
}
else
{
# warnen (nur nicht bei . und ..)
print
"
Warnung: ignoriere
$file
!
\n
";
}
}
return
@existing
;
};
# read all options from the Doxyfile into a hash
sub
parseDoxyfile
($)
{
my
$doxyname
=
shift
;
my
%doxyfile
=
();
open
DOXYFILE
,
$doxyname
||
die
"
Could not open
$doxyname
\n
";
while
(
<
DOXYFILE
>
)
{
chomp
;
next
if
(
/^\s*\#/
);
my
$input
=
$_
;
my
$tag
;
if
(
$input
=~
/^\s*(\S+)\s*=/
)
{
$tag
=
$
1
;
$doxyfile
{
$tag
}
=
"";
while
(
$input
=~
/\\\s*$/
)
{
$input
=~
s/\\\s*$//
;
$doxyfile
{
$tag
}
=
$doxyfile
{
$tag
}
.
$input
;
$input
=
DOXYFILE
->
getline
();
};
$input
=~
s/\\\s*$//
;
$doxyfile
{
$tag
}
=
$doxyfile
{
$tag
}
.
$input
;
$doxyfile
{
$tag
}
=~
s/\s+/ /g
;
$doxyfile
{
$tag
}
=~
s/^\s*$tag\s*=\s*//
;
}
}
close
DOXYFILE
;
return
%doxyfile
;
}
# WRITE DEPFILE
my
%doxyfile
=
parseDoxyfile
(
$doxyname
);
open
DEPFILE
,
"
>
$depfile
"
||
die
"
Could not open
$depfile
\n
";
# foreach input defined in INPUT = ...
foreach
my
$input
(
split
(
/ /
,
$doxyfile
{"
INPUT
"}))
{
next
if
(
!
defined
(
$input
));
next
if
(
$input
eq
""
);
if
(
-
f
$input
)
{
addDep
(
$input
);
}
else
{
# foreach pattern defined in FILE_PATTERNS = ...
foreach
my
$pattern
(
split
(
/ /
,
$doxyfile
{"
FILE_PATTERNS
"}))
{
next
if
(
!
defined
(
$pattern
));
next
if
(
$pattern
eq
""
);
my
@files
=
findFiles
(
$input
,
$pattern
,
$doxyfile
{"
RECURSIVE
"});
foreach
my
$f
(
@files
)
{
addDep
(
$f
);
}
}
}
}
addDep
(
$doxyfile
{"
HTML_HEADER
"});
addDep
(
$doxyfile
{"
HTML_FOOTER
"});
addDep
(
$doxyfile
{"
LATEX_HEADER
"});
close
DEPFILE
;
This diff is collapsed.
Click to expand it.
Christoph Grüninger
@gruenich
mentioned in commit
61af51d5
·
9 years ago
mentioned in commit
61af51d5
mentioned in commit 61af51d5609ef66d72f0ab8496348acff38ba8f4
Toggle commit list
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