]> git.sesse.net Git - vlc/blob - plugins/gtk/fixfiles.sh
Added memcpyaltivec.
[vlc] / plugins / gtk / fixfiles.sh
1 #! /bin/sh
2
3 # Run this file after building source with Glade.
4 #
5
6 for file in gnome_interface.c gtk_interface.c
7 do
8         if grep -q "DO NOT EDIT THIS FILE" $file
9         then
10                 rm -f /tmp/$$.$file.bak
11                 cat > /tmp/$$.$file.bak << EOF
12 /* This file was created automatically by glade and fixed by fixfiles.sh */
13
14 #include <videolan/vlc.h>
15 EOF
16                 tail +8 $file \
17                         | sed 's#_("/dev/dvd")#DVD_DEVICE#' \
18                         >> /tmp/$$.$file.bak
19                 mv -f /tmp/$$.$file.bak $file
20         fi
21 done
22
23 file=gtk_support.h
24 if grep -q "DO NOT EDIT THIS FILE" $file
25 then
26         rm -f /tmp/$$.$file.bak
27         sed 's/DO NOT EDIT THIS FILE.*/This file was created automatically by glade and fixed by fixfiles.sh/ ; s/#if.*ENABLE_NLS.*/#if defined( ENABLE_NLS ) \&\& defined ( HAVE_GETTEXT )/' < $file > /tmp/$$.$file.bak
28         mv -f /tmp/$$.$file.bak $file
29 fi
30