]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - android-sdk/device-ti-proprietary-open.git/blob - untar.sh
jacinto6: add initial sgx binary content
[android-sdk/device-ti-proprietary-open.git] / untar.sh
1 #!/bin/bash
3 # Args
4 # $1 - Base path
5 # $2 - base directory of the untarred component
6 # $3 - name of the component archive
9 if [ -d $1/$2 ]; then
10   echo "Removing $1/$2"
11   rm -rf $1/$2
12 fi
14 [ ! -d $1 ] && mkdir -p $1
15 tar -C $1 -zxf $3