2017-06-27 Fred Gleason <fredg@paravelsystems.com>

* Added an output error to rdexport(1) for when invoked without the
	output directory specified.
This commit is contained in:
Fred Gleason 2017-06-27 13:35:42 -04:00
parent 3619234e58
commit 13d5631d26
2 changed files with 9 additions and 0 deletions

View File

@ -15870,3 +15870,6 @@
* Added a '--title=' option to rdexport(1).
2017-06-27 Fred Gleason <fredg@paravelsystems.com>
* Updated the package version to 2.16.0int04.
2017-06-27 Fred Gleason <fredg@paravelsystems.com>
* Added an output error to rdexport(1) for when invoked without the
output directory specified.

View File

@ -23,6 +23,7 @@
#include <stdlib.h>
#include <qapplication.h>
#include <qdir.h>
#include <qfile.h>
#include <rd.h>
@ -193,6 +194,11 @@ MainObject::MainObject(QObject *parent)
}
}
export_output_to=cmd->key(cmd->keys()-1);
QDir dir;
if(!dir.exists(export_output_to)) {
fprintf(stderr,"rdexport: no such output directory\n");
exit(256);
}
//
// Read Configuration