]> git.sesse.net Git - vlc/blob - plugins/gtk/fixfiles.sh
Some heavy changes today:
[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