Changeset 92b1b630f65ead2270fa4557d94f6e326def03ec

Show
Ignore:
Timestamp:
20/09/03 05:38:52 (5 years ago)
Author:
Sam Hocevar <sam@videolan.org>
git-committer:
Sam Hocevar <sam@videolan.org> 1064029132 +0000
git-parent:

[c4c3e73700b318f0d5b0300d3a715a0ef6eacac4]

git-author:
Sam Hocevar <sam@videolan.org> 1064029132 +0000
Message:
  • modules/list.sh:
    + "==" is not valid shell test, use "=" instead.
    + Set LANG for consistency of sort output.
    (NB: this really belongs to the toolbox script).
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/list.sh

    re73a028 r92b1b63  
    11#! /bin/sh 
    22# Piggy list consistency checker 
     3 
     4LANG=C 
     5export LANG 
    36 
    47TEMPFILE=/tmp/list.tmp 
     
    2225 do 
    2326  echo $module >> $TEMPFILE 
    24   if [ `grep " \* $module:" $LISTFILE |wc -l` == 0 ] 
     27  if [ `grep " \* $module:" $LISTFILE |wc -l` = 0 ] 
    2528  then 
    2629   echo "$module exists in $modfile, but not listed" 
     
    3033done 
    3134 
    32 if [ $i == 0 ] 
     35if [ $i = 0 ] 
    3336then 
    3437  echo "OK" 
     
    4447for module in `grep " \* " $LISTFILE|awk '{print $2}'|sed s,':',,g ` 
    4548do 
    46  if [`grep $module $TEMPFILE|wc -l` == 0 ] 
     49 if [ `grep $module $TEMPFILE|wc -l` = 0 ] 
    4750 then 
    4851  i=1 
     
    5154done 
    5255 
    53 if [ $i == 0 ] 
     56if [ $i = 0 ] 
    5457then 
    5558  echo "OK" 
     
    7174 
    7275i=`diff $LISTFILE2 $LISTFILE3|wc -l` 
    73 diff $LISTFILE2 $LISTFILE3 
     76diff -u $LISTFILE2 $LISTFILE3 
    7477 
    75 if [ $i == 0 ] 
     78if [ $i = 0 ] 
    7679then  
    7780  echo "OK"