Reordered things to make it more pleasant to the brain.
the build was successful
Details
the build was successful
Details
This commit is contained in:
parent
93e079cc89
commit
e662b73918
|
@ -22,10 +22,10 @@
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
#include <libconfig.h++>
|
|
||||||
#include <basedir.h>
|
|
||||||
#include <cstdlib>
|
#include <cstdlib>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
#include <libconfig.h++>
|
||||||
|
#include <basedir.h>
|
||||||
#include "xdgcfg.hpp"
|
#include "xdgcfg.hpp"
|
||||||
#include "version.hpp"
|
#include "version.hpp"
|
||||||
|
|
||||||
|
@ -34,7 +34,6 @@
|
||||||
#else
|
#else
|
||||||
namespace fs = std::experimental::filesystem;
|
namespace fs = std::experimental::filesystem;
|
||||||
#endif
|
#endif
|
||||||
using std::cout;
|
|
||||||
using std::cerr;
|
using std::cerr;
|
||||||
using std::endl;
|
using std::endl;
|
||||||
|
|
||||||
|
@ -102,7 +101,7 @@ int main(int argc, char *argv[])
|
||||||
if (out.is_open())
|
if (out.is_open())
|
||||||
{
|
{
|
||||||
string buf;
|
string buf;
|
||||||
std::getline(in, buf);
|
std::getline(in, buf); // Shebang
|
||||||
std::getline(in, buf);
|
std::getline(in, buf);
|
||||||
if (buf.substr(0, 16).compare("//compilescript:") == 0)
|
if (buf.substr(0, 16).compare("//compilescript:") == 0)
|
||||||
{
|
{
|
||||||
|
@ -141,5 +140,6 @@ int main(int argc, char *argv[])
|
||||||
cerr << "usage: " << argv[0] << " file [arguments]\n";
|
cerr << "usage: " << argv[0] << " file [arguments]\n";
|
||||||
std::exit(1);
|
std::exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Reference in New Issue