Am Mittwoch, den 21.09.2011 um 09:44 schrieb Bruce Meier: > Hi, > > I have used the following sed script to set the glade script equal to > a glib::ustring and then include in cpp file with #include. Must > declare the variable in .h file. > > #! /usr/local/bin/bash > # usage: "sedscript filename" remove the .glade extension. .glade > file must be in the project > # glade dir and new file will be in the project include dir. > > echo $1_glade = > include/$1_glade.h; > sed -e s/\"/\'/g -e s/^/\"/g -e s/$/\"/g glade/$1.glade >> > include/$1_glade.h; > echo ';' >> include/$1_glade.h; > Thanks, this works perfect for me (and solves so the disturbing problem that gladfiles have to be distributed separately)! Jacob -- Bitte sende mir/senden Sie mir keine Dateien in einem proprietären Dateiformat(z.B. Microsoft Word, Exel) zu. Siehe http://www.gnu.org/philosophy/no-word-attachments.de.html Meinen GnuPG-Schlüssel findest du/finden Sie hier: http://derrevolutionaer.de/index.php?/pages/gnupg.html
Attachment:
signature.asc
Description: PGP signature