3 # Run this file after building source with Glade.
6 for file in gnome_interface.c gtk_interface.c
8 if grep -q "DO NOT EDIT THIS FILE" $file
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 */
14 #include <videolan/vlc.h>
17 | sed 's#_("/dev/dvd")#config_GetPszVariable( "dvd_device" )#' \
19 mv -f /tmp/$$.$file.bak $file
24 if grep -q "DO NOT EDIT THIS FILE" $file
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