forked from pool/obs-service-extract_file
Accepting request 68624 from home:dibo2010:buildservice
This adds posibility to define filenames with wildcards. Usable to prevent from editing the file path after each version change or after the SVN revision changes. OBS-URL: https://build.opensuse.org/request/show/68624 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-extract_file?expand=0&rev=5
This commit is contained in:
parent
cfeab0e1e4
commit
59c584811f
@ -52,13 +52,13 @@ cd "$MYOUTDIR"
|
||||
existing_archive=$(echo $MYARCHIVE)
|
||||
if [ -e "$existing_archive" ]; then
|
||||
if [ "${existing_archive%.tar.gz}" != "$existing_archive" ]; then
|
||||
tar xfz "$existing_archive" $MYFILES || exit 1
|
||||
tar xfz "$existing_archive" --wildcards $MYFILES || exit 1
|
||||
elif [ "${existing_archive%.tar.bz2}" != "$existing_archive" ]; then
|
||||
tar xfj "$existing_archive" $MYFILES || exit 1
|
||||
tar xfj "$existing_archive" --wildcards $MYFILES || exit 1
|
||||
elif [ "${existing_archive%.tar.xz}" != "$existing_archive" ]; then
|
||||
tar xfJ "$existing_archive" $MYFILES || exit 1
|
||||
tar xfJ "$existing_archive" --wildcards $MYFILES || exit 1
|
||||
elif [ "${existing_archive%.tar}" != "$existing_archive" ]; then
|
||||
tar xf "$existing_archive" $MYFILES || exit 1
|
||||
tar xf "$existing_archive" --wildcards $MYFILES || exit 1
|
||||
elif [ "${existing_archive%.zip}" != "$existing_archive" ]; then
|
||||
unzip "$existing_archive" $MYFILES || exit 1
|
||||
else
|
||||
|
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Apr 27 21:36:13 UTC 2011 - dibo@users.sourceforge.net
|
||||
|
||||
- added posibility to use wildcards in extracted file names
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Feb 23 15:36:13 UTC 2011 - adrian@suse.de
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user