From 177c11fd9a71f71625544e4c3e25a1d25cb10d6b Mon Sep 17 00:00:00 2001 From: Martin Ueding Date: Sun, 28 Apr 2013 15:32:03 +0200 Subject: [PATCH] Add launcher script I tried to package this program in Ubuntu, and found that it has no startup script. So I added a `colout` script that gets installed into the scripts directory with the `setup.py`. --- bin/colout | 11 +++++++++++ setup.py | 1 + 2 files changed, 12 insertions(+) create mode 100644 bin/colout diff --git a/bin/colout b/bin/colout new file mode 100644 index 0000000..8d38565 --- /dev/null +++ b/bin/colout @@ -0,0 +1,11 @@ +#!/bin/bash +# Copyright © 2013 Martin Ueding + +# Small launcher script for the main module. + +# Licence: GPL 3+ + +set -e +set -u + +python -m colout.colout "$@" diff --git a/setup.py b/setup.py index bb9fb52..36d8666 100644 --- a/setup.py +++ b/setup.py @@ -29,6 +29,7 @@ setup( packages=packages, package_data={'': ['LICENSE']}, package_dir={'colout': 'colout'}, + scripts=['bin/colout'], include_package_data=True, install_requires=requires, license=open('LICENSE').read(),