summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Pokorný <jpokorny@redhat.com>2014-09-17 21:01:21 +0200
committerJan Pokorný <jpokorny@redhat.com>2014-09-22 19:55:03 +0200
commitd1b71f5f1ea949fb1ad6771cec051f3e6bc22c16 (patch)
tree475325ab6b9e8da84a9811013b35b645e43bcf43
parent4d6249cd9c7760b39004a14109f236ff172da814 (diff)
downloadclufter-d1b71f5f1ea949fb1ad6771cec051f3e6bc22c16.tar.gz
clufter-d1b71f5f1ea949fb1ad6771cec051f3e6bc22c16.tar.xz
clufter-d1b71f5f1ea949fb1ad6771cec051f3e6bc22c16.zip
run-setup: easier-to-type wrapper for "python setup.py"
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
-rwxr-xr-x__root__/run-setup7
l---------run-setup1
2 files changed, 8 insertions, 0 deletions
diff --git a/__root__/run-setup b/__root__/run-setup
new file mode 100755
index 0000000..b9ae606
--- /dev/null
+++ b/__root__/run-setup
@@ -0,0 +1,7 @@
+#!/bin/sh
+use_dir="$(
+ dirname "$(pwd)/$(
+ ls -l "$(echo "${0}" | sed 's|\./||')" | cut -d'>' -f2 | awk '{print $NF}'
+ )"
+)"
+(cd "${use_dir}"; python setup.py "$@")
diff --git a/run-setup b/run-setup
new file mode 120000
index 0000000..493b40f
--- /dev/null
+++ b/run-setup
@@ -0,0 +1 @@
+__root__/run-setup \ No newline at end of file