diff --git a/python2-wrapper.be0 b/python2-wrapper.be0 index 5cca5a4d4..f4a8395ca 100755 --- a/python2-wrapper.be0 +++ b/python2-wrapper.be0 @@ -1,6 +1,6 @@ #!/usr/bin/env beesh -# BEE_VERSION python2-wrapper-1.3-0 +# BEE_VERSION python2-wrapper-1.4-0 ## this file was created by bee init and should be executed to build a ## bee-package. (Additional hints are located at the end of this file.) @@ -57,12 +57,15 @@ SRCURL[0]="" # bee_configure #} -mee_build() { - echo -e '#! /bin/bash\nprun python2 $(basename "$0") "$@"' >wrapper - chmod +x wrapper +#mee_buid() { +# bee_build +#} - echo -e '#! /bin/bash\nprun python-2.7 $(basename "$0") "$@"' >wrapper2.7 - chmod +x wrapper2.7 +create_bin_wrapper() { + cmd="$1" + target="${2:-$1}" + echo -e "#! /bin/bash\nprun python2 \"$target\" \"\$@\"" > "$D$BINDIR/$cmd" + chmod +x "$D$BINDIR/$cmd" } mee_install() { @@ -76,14 +79,12 @@ mee_install() { xml2po \ gnome-doc-tool \ pssh \ - iotop + iotop \ + python2.7 do - ln "$B/wrapper" "$D$BINDIR/$cmd" + create_bin_wrapper $cmd done - - ln "$B/wrapper2.7" "$D$BINDIR/python2.7" } -## by default this may be 'make install DESTDIR="${D}"' ############################################################################### ##