File: update_libw32dll.sh

package info (click to toggle)
gmerlin-avdecoder 2.0.0~svn6298~dfsg0-5
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 6,240 kB
  • sloc: ansic: 94,582; makefile: 709; sh: 705; awk: 43; sed: 16
file content (30 lines) | stat: -rwxr-xr-x 711 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/sh
LIBDIR=./lib/libw32dll
XINEDIR=./xine-lib/src/libw32dll
SUBDIRS="DirectShow dmo qtx qtx/qtxsdk wine" 
EXTENSIONS="h c s S"
WORKING_DIRECTORY=`pwd`

# rm -rf xine-lib 
rm -f files.txt diff.txt diff-total.txt
cvs -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/xine login
cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/xine co xine-lib
cd $XINEDIR

for i in $SUBDIRS; do 
  for j in $EXTENSIONS; do
    ls -1 $i/*.$j >> $WORKING_DIRECTORY/files.txt; 
  done;
done

ls -1 *.h >> $WORKING_DIRECTORY/files.txt
cd $WORKING_DIRECTORY

for i in `cat files.txt`; do
  diff -u $LIBDIR/$i $XINEDIR/$i > diff.txt
     echo File $i changed
     cat diff.txt
     cat diff.txt >> diff_total.txt
done