Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-1.1
Commits
ae13fdda
Commit
ae13fdda
authored
Jul 27, 2009
by
JP Dinger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Factorise list.sh a bit: rewrite some multiple commands as one where easy.
parent
d0e62402
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
modules/list.sh
modules/list.sh
+4
-4
No files found.
modules/list.sh
View file @
ae13fdda
...
@@ -21,10 +21,10 @@ i=0
...
@@ -21,10 +21,10 @@ i=0
for
modfile
in
`
find
.
-name
"Modules.am"
`
for
modfile
in
`
find
.
-name
"Modules.am"
`
do
do
for
module
in
`
grep
"SOURCES_"
$modfile
|awk
'{print $1}'
|awk
'BEGIN {FS="SOURCES_"};{print $2}'
`
for
module
in
`
awk
'/^SOURCES_/{sub(/SOURCES_/,"",$1); print $1}'
"
$modfile
"
`
do
do
echo
$module
>>
$TEMPFILE
echo
$module
>>
$TEMPFILE
if
[
`
grep
"
\*
$module
:"
$LISTFILE
|wc
-l
`
=
0
]
if
!
grep
-q
"
\*
$module
:"
$LISTFILE
then
then
echo
"
$module
exists in
$modfile
, but not listed"
echo
"
$module
exists in
$modfile
, but not listed"
i
=
1
i
=
1
...
@@ -44,9 +44,9 @@ echo "--------------------------------------"
...
@@ -44,9 +44,9 @@ echo "--------------------------------------"
echo
"Checking that all listed modules exist"
echo
"Checking that all listed modules exist"
echo
"--------------------------------------"
echo
"--------------------------------------"
for
module
in
`
grep
"
\*
"
$LISTFILE
|awk
'{print $2}'
|sed s,
':'
,,g
`
for
module
in
`
awk
'/ \* /{gsub(/:/,"",$2); print $2}'
$LISTFILE
`
do
do
if
[
`
grep
$module
$TEMPFILE
|wc
-l
`
=
0
]
if
!
grep
-q
$module
$TEMPFILE
then
then
i
=
1
i
=
1
echo
"
$module
is listed but does not exist"
echo
"
$module
is listed but does not exist"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment