Skip to content

Instantly share code, notes, and snippets.

@skyhisi
skyhisi / makefilegraph.py
Created August 6, 2019 12:06
Makefile Graph
#!/usr/bin/python
import argparse
import os.path
from cStringIO import StringIO
import subprocess
import sys
parser = argparse.ArgumentParser(description="Create a graphviz file of a makefile")
parser.add_argument("-C", "--directory", metavar="DIR", help="Change to directory DIR before reading the makefiles")
@skyhisi
skyhisi / qt-xinclude-processor.cpp
Created September 29, 2013 20:01
Basic XInclude processor written using Qt QXmlStreamReader/QXmlStreamWriter
#include <QtCore>
int main(int argc, char** argv)
{
QCoreApplication app(argc, argv);
if (argc < 2)
{
qDebug() << "Usage:" << argv[0] << "INFILE OUTFILE";
return 1;