1
0
Fork 0

Add versioning to tg-construct, hgtchop and ogr-decode

This commit is contained in:
Christian Schmitt 2012-12-09 18:36:03 +01:00
parent 10c8041526
commit 965d639446
3 changed files with 8 additions and 3 deletions

View file

@ -29,7 +29,7 @@
#endif
#include <simgear/debug/logstream.hxx>
#include <Include/version.h>
#include <Geometry/poly_support.hxx>
#include "tgconstruct.hxx"
@ -131,6 +131,7 @@ int main(int argc, char **argv) {
share_dir = work_dir + "/Shared";
}
SG_LOG(SG_GENERAL, SG_ALERT, "tg-construct version " << getTGVersion() << "\n");
SG_LOG(SG_GENERAL, SG_ALERT, "Output directory is " << output_dir);
SG_LOG(SG_GENERAL, SG_ALERT, "Working directory is " << work_dir);
SG_LOG(SG_GENERAL, SG_ALERT, "Shared directory is " << share_dir);

View file

@ -19,7 +19,6 @@
// along with this program; if not, write to the Free Software
// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
//
// $Id: hgtchop.cxx,v 1.7 2007-08-15 14:35:36 curt Exp $
#ifdef HAVE_CONFIG_H
# include <config.h>
@ -35,6 +34,7 @@
#include <simgear/misc/sg_path.hxx>
#include <simgear/misc/sg_dir.hxx>
#include <Include/version.h>
#include <HGT/hgt.hxx>
#include <stdlib.h>
@ -46,6 +46,7 @@ using std::string;
int main(int argc, char **argv) {
sglog().setLogLevels( SG_ALL, SG_WARN );
SG_LOG( SG_GENERAL, SG_ALERT, "hgtchop version " << getTGVersion() << "\n" );
if ( argc != 4 ) {
cout << "Usage " << argv[0] << " <resolution> <hgt_file> <work_dir>"
@ -107,4 +108,4 @@ int main(int argc, char **argv) {
}
return 0;
}
}

View file

@ -33,6 +33,7 @@
#include <simgear/math/sg_geodesy.hxx>
#include <simgear/misc/sg_path.hxx>
#include <Include/version.h>
#include <Geometry/line.hxx>
#include <Geometry/util.hxx>
#include <Polygon/chop.hxx>
@ -671,6 +672,8 @@ int main( int argc, char **argv ) {
break;
}
SG_LOG( SG_GENERAL, SG_ALERT, "ogr-decode version " << getTGVersion() << "\n" );
if (argc<3)
usage(progname);