diff options
author | James W. Mills | 2011-12-08 13:11:06 -0600 |
---|---|---|
committer | James W. Mills | 2011-12-08 15:44:10 -0600 |
commit | 786a0684de346e25b45c225df93d1a77be88faff (patch) | |
tree | b625df4115f938dcb32b7bf8d73e144d45142e29 /untar.sh | |
parent | ae9eac08bd648583fcc617ac6c4069da3196d29d (diff) | |
download | device-ti-proprietary-open-786a0684de346e25b45c225df93d1a77be88faff.tar.gz device-ti-proprietary-open-786a0684de346e25b45c225df93d1a77be88faff.tar.xz device-ti-proprietary-open-786a0684de346e25b45c225df93d1a77be88faff.zip |
Move licensed content to tgz archives
This change allows all licensed material to be license-bound, and
prevents any single component from being downloaded without the proper
license agreement.
Change-Id: I353122644b1696438a7c7a33a26d43087e19440a
Signed-off-by: James W. Mills <jameswmills@ti.com>
Diffstat (limited to 'untar.sh')
-rwxr-xr-x | untar.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/untar.sh b/untar.sh new file mode 100755 index 0000000..2e5b77f --- /dev/null +++ b/untar.sh | |||
@@ -0,0 +1,14 @@ | |||
1 | #!/bin/bash | ||
2 | |||
3 | # Args | ||
4 | # $1 - Base path | ||
5 | # $2 - base directory of the untarred component | ||
6 | # $3 - name of the component archive | ||
7 | |||
8 | |||
9 | if [ -d $1/$2 ]; then | ||
10 | echo "Removing $1/$2" | ||
11 | rm -rf $1/$2 | ||
12 | fi | ||
13 | |||
14 | tar -C $1 -zxf $3 | ||