From 25259ab23887e3ffe9b738aad7701064a6b3b1fc Mon Sep 17 00:00:00 2001 From: Kali Kaneko Date: Thu, 5 Dec 2013 09:58:49 -0400 Subject: add with_venvwrapper script --- mail/pkg/tools/with_venvwrapper.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 mail/pkg/tools/with_venvwrapper.sh (limited to 'mail/pkg/tools') diff --git a/mail/pkg/tools/with_venvwrapper.sh b/mail/pkg/tools/with_venvwrapper.sh new file mode 100755 index 0000000..693c0ac --- /dev/null +++ b/mail/pkg/tools/with_venvwrapper.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +#Wraps a command in a virtualenwrapper passed as first argument. +#Example: +#with_virtualenvwrapper.sh leap-bitmask ./run_tests.sh + +wd=`pwd` +alias pyver='python -c "import $1;print $1.__path__[0]; print $1.__version__;"' + +source `which virtualenvwrapper.sh` +echo "Activating virtualenv " $1 +echo "------------------------------------" +workon $1 +cd $wd +echo "running version: " `pyver leap.bitmask` +$2 $3 $4 $5 -- cgit v1.2.3 From 0d445589fcc2567bc9b995e5a27689506361fe43 Mon Sep 17 00:00:00 2001 From: Kali Kaneko Date: Mon, 27 Jul 2015 22:12:01 -0400 Subject: [pkg] add AUTHORS file + one-liner to generate it --- mail/pkg/tools/get_authors.sh | 2 ++ 1 file changed, 2 insertions(+) create mode 100755 mail/pkg/tools/get_authors.sh (limited to 'mail/pkg/tools') diff --git a/mail/pkg/tools/get_authors.sh b/mail/pkg/tools/get_authors.sh new file mode 100755 index 0000000..0169bb1 --- /dev/null +++ b/mail/pkg/tools/get_authors.sh @@ -0,0 +1,2 @@ +#!/bin/sh +git log --format='%aN <%aE>' | awk '{arr[$0]++} END{for (i in arr){print arr[i], i;}}' | sort -rn | cut -d' ' -f2- -- cgit v1.2.3