5 echo "$(pwd)/$(basename "$1")"
8 if [ -z "$1" -o -z "$2" -o -z "$3" ] ; then
9 echo "Usage: abi-prepare.sh tarball abi.xml configure.sh"
16 VERSION
="$(grep -A 1 '<version>' "$XML" | grep -v version | sed "s
/^
[ ]//")"
18 FULLXML
="$(fullpath "$XML")"
19 FULLCONFIG
="$(fullpath "$CONFIG")"
24 # create target playspace
25 echo "Creating source tree..."
26 mkdir
"/tmp/$VERSION" # make sure it doesn't already exist
27 mkdir
-p "/tmp/$VERSION/rootdir"
28 tar -C "/tmp/$VERSION" -xjf "$TARBALL"
31 echo "Installing to: /tmp/$VERSION/rootdir..."
32 cd "/tmp/$VERSION/barry-$VERSION"
33 "$FULLCONFIG" --prefix="/tmp/$VERSION/rootdir"