source: svn/trunk/newcon3bcm2_21bu/dta/tools/tar-release.sh @ 5

Last change on this file since 5 was 2, checked in by phkim, 11 years ago

1.phkim

  1. revision copy newcon3sk r27
  • Property svn:executable set to *
File size: 594 bytes
Line 
1#! /bin/bash
2
3inc_list=dta/tools/release-files.lst
4exc_list=dta/tools/release-exclude.lst
5
6sec_inc=dta/tools/secure-release.lst
7sec_exc=dta/tools/secure-exclude.lst
8
9if [ ! -d dta/tools ] ; then
10        echo "Executing from incorrect directory."
11        exit 1
12fi
13
14if [ ! -e ${inc_list} ] ; then
15        echo "${inc_list} not found."
16        exit 1
17fi
18
19if [ ! -e ${exc_list} ] ; then
20        echo "${exc_list} not found."
21        exit 1
22fi
23
24if [ -z "$1" ] ; then
25        echo "Missing archive file name. For example, rel97572_0_1_x.tar.gz"
26        exit 1
27fi
28
29tar -czf $1 -T ${inc_list} -X ${exc_list}
30
31tar -czf secure-$1  -T ${sec_inc} -X ${sec_exc}
Note: See TracBrowser for help on using the repository browser.