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