Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
5e94dabf
Commit
5e94dabf
authored
Jul 28, 2009
by
JP Dinger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simplify the other part, too.
parent
ae13fdda
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
21 deletions
+2
-21
modules/list.sh
modules/list.sh
+2
-21
No files found.
modules/list.sh
View file @
5e94dabf
...
@@ -6,8 +6,6 @@ export LANG
...
@@ -6,8 +6,6 @@ export LANG
TEMPFILE
=
/tmp/vlclist.tmp.
$$
TEMPFILE
=
/tmp/vlclist.tmp.
$$
LISTFILE
=
LIST
LISTFILE
=
LIST
LISTFILE2
=
/tmp/vlclist2.tmp.
$$
LISTFILE3
=
/tmp/vlclist3.tmp.
$$
rm
-f
$TEMPFILE
rm
-f
$TEMPFILE
...
@@ -44,7 +42,7 @@ echo "--------------------------------------"
...
@@ -44,7 +42,7 @@ echo "--------------------------------------"
echo
"Checking that all listed modules exist"
echo
"Checking that all listed modules exist"
echo
"--------------------------------------"
echo
"--------------------------------------"
for
module
in
`
awk
'/ \* /{gsub(/:/,"",$2); print $2
}'
$LISTFILE
`
for
module
in
`
awk
-F
'[ :]'
'/ \* /{print $3
}'
$LISTFILE
`
do
do
if
!
grep
-q
$module
$TEMPFILE
if
!
grep
-q
$module
$TEMPFILE
then
then
...
@@ -63,27 +61,10 @@ echo "-------------------------------"
...
@@ -63,27 +61,10 @@ echo "-------------------------------"
echo
"Checking for alphabetical order"
echo
"Checking for alphabetical order"
echo
"-------------------------------"
echo
"-------------------------------"
rm
-f
$LISTFILE2
grep
"
\*
"
$LISTFILE
|
LC_CTYPE
=
C
sort
-c
&&
echo
"OK"
touch
$LISTFILE2
rm
-f
$LISTFILE3
touch
$LISTFILE3
grep
"
\*
"
$LISTFILE
>>
$LISTFILE2
sort
-n
$LISTFILE2
>>
$LISTFILE3
i
=
`
diff
$LISTFILE2
$LISTFILE3
|wc
-l
`
diff
-u
$LISTFILE2
$LISTFILE3
if
[
$i
=
0
]
then
echo
"OK"
fi
echo
""
echo
""
echo
"
`
cat
$TEMPFILE
|
wc
-l
`
modules listed in Modules.am files"
echo
"
`
cat
$TEMPFILE
|
wc
-l
`
modules listed in Modules.am files"
rm
-f
$TEMPFILE
rm
-f
$TEMPFILE
rm
-f
$LISTFILE2
rm
-f
$LISTFILE3
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