diff options
author | Gwenolé Beauchesne <gbeauchesne@mandriva.org> | 2005-01-12 17:22:02 +0000 |
---|---|---|
committer | Gwenolé Beauchesne <gbeauchesne@mandriva.org> | 2005-01-12 17:22:02 +0000 |
commit | ce5c270d5bce8ef9b9ff280338d577483bff03da (patch) | |
tree | e0239736b0ea4d11193de48bc1a94cebcf6f95c7 /multiarch-dispatch | |
parent | 3db240e64d3c941d2dcf6c1bce879922b28777d8 (diff) | |
download | multiarch-utils-ce5c270d5bce8ef9b9ff280338d577483bff03da.tar multiarch-utils-ce5c270d5bce8ef9b9ff280338d577483bff03da.tar.gz multiarch-utils-ce5c270d5bce8ef9b9ff280338d577483bff03da.tar.bz2 multiarch-utils-ce5c270d5bce8ef9b9ff280338d577483bff03da.tar.xz multiarch-utils-ce5c270d5bce8ef9b9ff280338d577483bff03da.zip |
Initial revisionfirst-releasetopic/first-version
Diffstat (limited to 'multiarch-dispatch')
-rwxr-xr-x | multiarch-dispatch | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/multiarch-dispatch b/multiarch-dispatch new file mode 100755 index 0000000..db98f1d --- /dev/null +++ b/multiarch-dispatch @@ -0,0 +1,23 @@ +#!/bin/sh +#--------------------------------------------------------------- +# Project : Mandrakelinux +# Module : multiarch-utils +# File : multiarch-dispatch +# Version : $Id$ +# Author : Gwenole Beauchesne +# Created On : Wed Jan 12 12:38:53 EST 2005 +#--------------------------------------------------------------- + +if [[ "$0" = "/usr/bin/multiarch-dispatch" ]]; then + echo "Helper script to dispatch a binary under a specific personality" + exit 0 +fi + +bin=`dirname $0`/`multiarch-platform`/${0##*/} + +if [[ -x "$bin" ]]; then + echo "Cannot execute $bin" > /dev/stderr + exit 1 +fi + +exec $bin ${1+"$@"} |