gash: WIP

This commit is contained in:
Jan Nieuwenhuizen 2018-11-04 19:14:52 +01:00
parent b9d90be4f5
commit d71a0b6052
No known key found for this signature in database
GPG Key ID: F3C1A0D9C1D65273
1 changed files with 3 additions and 5 deletions

View File

@ -18,20 +18,18 @@
# You should have received a copy of the GNU General Public License
# along with GNU Mes. If not, see <http://www.gnu.org/licenses/>.
set -e
set -ex
VERSION=0.18
# parse --prefix=prefix
cmdline=$(echo "$@")
p=${cmdline##*--prefix=}
p=${p% *}
p=${p% -*}
p=$(echo "$@" | grep -o '[-][-]prefix=[^ ]*')
p=$(echo "$p" | sed -e 's,--prefix=,,')
if [ -z "$p" ]; then
p=${prefix-/usr/local}
fi
prefix=$p
srcdir=${srcdir-$(dirname $0)}
. ${srcdest}build-aux/trace.sh