Rename in debian changelog.
[dcpomatic.git] / src / tools / servomatic_cli.cc
index f8e71319357aed790b43918206e197a579d753f5..76d0850341619c9638861e27538ee7f22285ea5b 100644 (file)
 #include "log.h"
 #include "version.h"
 
-using namespace std;
+using std::cerr;
+using std::string;
+using std::cout;
+using boost::shared_ptr;
 
 static void
 help (string n)
 {
        cerr << "Syntax: " << n << " [OPTION]\n"
-            << "  -v, --version      show DVD-o-matic version\n"
+            << "  -v, --version      show DCP-o-matic version\n"
             << "  -h, --help         show this help\n"
             << "  -t, --threads      number of parallel encoding threads to use\n";
 }
@@ -75,7 +78,7 @@ main (int argc, char* argv[])
 
                switch (c) {
                case 'v':
-                       cout << "dvdomatic version " << dvdomatic_version << " " << dvdomatic_git_commit << "\n";
+                       cout << "dcpomatic version " << dcpomatic_version << " " << dcpomatic_git_commit << "\n";
                        exit (EXIT_SUCCESS);
                case 'h':
                        help (argv[0]);
@@ -87,8 +90,8 @@ main (int argc, char* argv[])
        }
 
        Scaler::setup_scalers ();
-       FileLog log ("servomatic.log");
-       Server server (&log);
+       shared_ptr<FileLog> log (new FileLog ("servomatic.log"));
+       Server server (log);
        server.run (num_threads);
        return 0;
 }