Adrian Schröter 2010-12-30 14:42:26 +00:00 committed by Git OBS Bridge
parent 6a86f71ba6
commit 651b9dc1b7
3 changed files with 13 additions and 1 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Dec 30 12:41:57 UTC 2010 - adrian@suse.de
- add option exclude files/directories when creating the tar ball
-------------------------------------------------------------------
Wed Dec 8 06:29:42 UTC 2010 - wr@rosenauer.org

View File

@ -44,6 +44,10 @@ while test $# -gt 0; do
MYPREFIX="$2"
shift
;;
*-exclude)
EXCLUDES="$EXCLUDES --exclude=\'${2#/}\'"
shift
;;
*-filename)
MYFILENAME="${2#/}"
shift
@ -216,7 +220,7 @@ fi
mv "$FILE/$SUBDIR" "${FILE}-${VERSION}" || exit 1
tar cf "$MYOUTDIR/${FILE}-${VERSION}.tar" "${FILE}-${VERSION}" || exit 1
tar cf "$MYOUTDIR/${FILE}-${VERSION}.tar" $EXCLUDES "${FILE}-${VERSION}" || exit 1
rm -rf "${FILE}-${VERSION}"
exit 0

View File

@ -24,6 +24,9 @@
<parameter name="filename">
<description>base file name to be created</description>
</parameter>
<parameter name="exclude">
<description>for sepcifing excludes when creating the tar ball</description>
</parameter>
<parameter name="version">
<description>version to be used in tar</description>
</parameter>