pidgin/purple-plugin-pack

gcc is a better C compiler than I am.
org.guifications.plugins.smartear
2007-07-08, rekkanoryo
5768717220d6
file isExecutable
gcc is a better C compiler than I am.
#!/bin/sh
#
# This is a script for converting the glade-generated interface.c file to a
# smartear-interface.c which will be friendly with pidgin's plugin interface.
IN=interface.c
OUT=smartear-interface.c
cat $IN | \
sed -e '
# hookup to config_vbox instead of config
s/GLADE_HOOKUP\([^c]*\)config/GLADE_HOOKUP\1config_vbox/
# return config_vbox instead of config
s/return.*config;/return config_vbox;/
# hookup objects without referencing them (only in create_config())
/create_config/,/return/ {
s/GLADE_HOOKUP_OBJECT /GLADE_HOOKUP_OBJECT_NO_REF /
}
# remove all references to "config"
/\<config\>/d
# dont show config_vbox
/gtk_widget_show.*config_vbox/d
# remove #include lines
/^#include/d' \
> $OUT