#!/bin/sh # reads a package description script and runs the configure, build, and install # steps. intended only for use by snag program if [ -z "$1" -a -z "$2" -a -z "$3" ]; then echo "Usage: $0 " >&2 exit 1 fi if [ -z "$1" ]; then echo "Usage: $0 " >&2 exit 1 fi api_send=$1 api_recv=$2 # should remove eval "printf '\x02\x00\x00\x00' >&$api_send" IFS= read -r data 0<&"$api_recv" echo "data=$data" # load the description script . $3 # run all install steps for package configure build install eval "printf '\x01\x00\x00\x00' >&$api_send"