From 59c584811f22270ffefaf8d5f234a26aaf6d342de1ae0d14708c9dbc38b6f018 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Fri, 29 Apr 2011 15:28:14 +0000 Subject: [PATCH] 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 --- extract_file | 8 ++++---- obs-service-extract_file.changes | 5 +++++ 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/extract_file b/extract_file index dc6900e..9b14220 100644 --- a/extract_file +++ b/extract_file @@ -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 diff --git a/obs-service-extract_file.changes b/obs-service-extract_file.changes index b52a452..9a075e8 100644 --- a/obs-service-extract_file.changes +++ b/obs-service-extract_file.changes @@ -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