Add @basename@ substitution to glib-mkenums
authorChristian Persch <chpe@gnome.org>
Mon, 29 Jun 2009 13:28:22 +0000 (15:28 +0200)
committerChristian Persch <chpe@gnome.org>
Fri, 3 Jul 2009 18:50:27 +0000 (20:50 +0200)
commit6d1474e7f1f6e964d8db377fe732b9273cf17a84
tree8a2e985ea1119d58ad782a07bcc5ab857a9785ae
parentdfd83f419c30d7d97c0e223e428c2e12c58199d3
Add @basename@ substitution to glib-mkenums

Since @filename@ contains the full filename as given to the glib-mkenum
command, possibly including path elements (e.g. when using a non-srcdir
build), it is unsuitable to use in a #include statement in the generated
file if one wants to distribute it. This patch adds @basename@ which
expands to the base name of the input filename. Bug #587307.
gobject/glib-mkenums.1
gobject/glib-mkenums.in