Parent Directory
|
Revision Log
add script for rolling releases
| 1 | #!/bin/bash |
| 2 | . /sbin/functions.sh |
| 3 | |
| 4 | if [ -z "${1}" ]; then |
| 5 | echo "Bah you forgot to specify a daemon!" |
| 6 | echo |
| 7 | echo "Like this:" |
| 8 | echo "${0} ntp" |
| 9 | echo "or:" |
| 10 | echo "${0} base-policy" |
| 11 | exit 1 |
| 12 | fi |
| 13 | |
| 14 | TARBALL="selinux-${1}-`date +%Y%m%d`.tar.bz2" |
| 15 | |
| 16 | ebegin "Refreshing local CVS copy" |
| 17 | cvs -Q up |
| 18 | eend $? |
| 19 | |
| 20 | ebegin "Generating ${TARBALL}" |
| 21 | |
| 22 | [ -d ${1} ] || exit 1; |
| 23 | |
| 24 | [ -f ./${TARBALL} ] && \ |
| 25 | rm -f ./${TARBALL} |
| 26 | |
| 27 | tar --exclude CVS -jcf ./${TARBALL} ${1}/ |
| 28 | eend $? |
| ViewVC Help | |
| Powered by ViewVC 1.1.20 |