/***************************************************************************
- * Copyright (C) 2005-2012 by the Quassel Project *
+ * Copyright (C) 2005-2014 by the Quassel Project *
* devel@quassel-irc.org *
* *
* This program is free software; you can redistribute it and/or modify *
#include <QStringList>
#include <QRegExp>
#include <QFile>
+#include <QCoreApplication>
int main(int argc, char **argv)
{
qFatal("Usage: ./genversion <git_root> <target_file>");
return 255;
}
- QString gitroot = argv[1];
- QString target = argv[2];
+
+ QCoreApplication app(argc, argv);
+
+ QString gitroot = app.arguments()[1];
+ QString target = app.arguments()[2];
QString basever, protover, clientneeds, coreneeds, descrver, dirty;
QString committish, commitdate;