[SCM] morituri/master: add binary

js at users.alioth.debian.org js at users.alioth.debian.org
Sun Oct 19 20:09:01 UTC 2014


The following commit has been merged in the master branch:
commit 91615d215b0a33b37700acec94d7df5f45c268fd
Author: Thomas Vander Stichele <thomas (at) apestaart (dot) org>
Date:   Fri May 22 20:21:22 2009 +0000

    add binary

diff --git a/bin/Makefile.am b/bin/Makefile.am
new file mode 100644
index 0000000..f84c1f4
--- /dev/null
+++ b/bin/Makefile.am
@@ -0,0 +1,3 @@
+bin_SCRIPTS = rip
+
+EXTRA_DIST = $(bin_SCRIPTS)
diff --git a/bin/rip b/bin/rip
new file mode 100755
index 0000000..e00d555
--- /dev/null
+++ b/bin/rip
@@ -0,0 +1,32 @@
+#!/usr/bin/env python
+# -*- Mode: Python -*-
+# vi:si:et:sw=4:sts=4:ts=4
+
+import sys
+
+# first try to import morituri
+try:
+    import morituri
+except ImportError:
+    sys.stderr.write('''The rip binary cannot find its python package.
+This means that the 'morituri' directory containing __init__.py is not on your
+PYTHONPATH.
+Typically this is due to a broken install.
+Please fix the problem, and verify that it is fixed by starting python and
+typing:
+
+>>> import morituri
+
+and assure it doesn't raise an exception.
+
+''')
+    sys.exit(1)
+
+# now load the main function
+try:
+    from morituri.rip import main
+    sys.exit(main.main(sys.argv[1:]))
+except ImportError, e:
+    raise
+    from morituri.util import deps
+    deps.handleImportError(e)

-- 
morituri packaging



More information about the pkg-multimedia-commits mailing list