Add wrappers around boost::filesystem methods that handle the
[libdcp.git] / tools / dcpdiff.cc
index 336d09a5828fe718ef8492465898154c9c2cb5a1..7c7c4b71da2ef8d3c70e2c4bf3342cbd612234f1 100644 (file)
     files in the program, then also delete it here.
 */
 
+
+#include "common.h"
 #include "dcp.h"
+#include "equality_options.h"
 #include "exceptions.h"
-#include "common.h"
+#include "filesystem.h"
 #include "mxf.h"
 #include <getopt.h>
 #include <boost/optional.hpp>
 #include <memory>
 #include <boost/filesystem.hpp>
-#include <boost/foreach.hpp>
 #include <iostream>
 #include <list>
 
+
 using std::list;
 using std::cerr;
 using std::cout;
@@ -161,7 +164,7 @@ main (int argc, char* argv[])
 
                switch (c) {
                case 'V':
-                       cout << "dcpdiff version " << LIBDCP_VERSION << "\n";
+                       cout << "dcpdiff version " << dcp::version << "\n";
                        exit (EXIT_SUCCESS);
                case 'h':
                        help (argv[0]);
@@ -205,12 +208,12 @@ main (int argc, char* argv[])
                exit (EXIT_FAILURE);
        }
 
-       if (!boost::filesystem::exists (argv[optind])) {
+       if (!filesystem::exists(argv[optind])) {
                cerr << argv[0] << ": DCP " << argv[optind] << " not found.\n";
                exit (EXIT_FAILURE);
        }
 
-       if (!boost::filesystem::exists (argv[optind + 1])) {
+       if (!filesystem::exists(argv[optind + 1])) {
                cerr << argv[0] << ": DCP " << argv[optind + 1] << " not found.\n";
                exit (EXIT_FAILURE);
        }