Skip to content
Snippets Groups Projects
Commit ce658c44 authored by Richard Schwarting's avatar Richard Schwarting
Browse files

examples/c: save generated output files into own directory

parent 35a4cca5
Branches
Tags
No related merge requests found
EXTRA_DIST = bookshelf.xml example.c Makefile.example
EXTRA_DIST = bookshelf.xml example.c Makefile.example output
......@@ -6,5 +6,5 @@ PROGS=document_new document_new_minimal document_new_from_string document_new_fr
all: $(PROGS)
clean:
rm $(PROGS) *.o *~ || true
@rm $(PROGS) *.o *~ \#*\# output/*.xml 2>/dev/null || true
......@@ -6,7 +6,7 @@ int main () {
doc = gxml_document_new_from_path ("bookshelf.xml");
gxml_document_save_to_path (doc, "bookshelf2.xml");
gxml_document_save_to_path (doc, "output/bookshelf_save_to_path.xml");
g_object_unref (doc);
......
......@@ -9,7 +9,7 @@ int main () {
doc = gxml_document_new_from_path ("bookshelf.xml");
outfile = g_file_new_for_path ("bookshelf3.xml");
outfile = g_file_new_for_path ("output/bookshelf_save_to_stream.xml");
outstream = g_file_replace (outfile, NULL, FALSE, G_FILE_CREATE_REPLACE_DESTINATION, can, NULL);
gxml_document_save_to_stream (doc, G_OUTPUT_STREAM (outstream), can);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment