Adrian Schröter 2011-02-23 15:36:45 +00:00 committed by Git OBS Bridge
parent 121595aa19
commit 3b6130c61f
3 changed files with 17 additions and 1 deletions

View File

@ -5,6 +5,7 @@
# defaults # defaults
MYARCHIVE="" MYARCHIVE=""
MYFILES="" MYFILES=""
OUTFILE="."
while test $# -gt 0; do while test $# -gt 0; do
case $1 in case $1 in
@ -13,7 +14,11 @@ while test $# -gt 0; do
shift shift
;; ;;
*-file|*-files) *-file|*-files)
MYFILES="$MYFILES ${2##*/}" MYFILES="$MYFILES ${2}"
shift
;;
*-outfilename)
OUTFILE="${2}"
shift shift
;; ;;
*-outdir) *-outdir)
@ -60,6 +65,9 @@ if [ -e "$existing_archive" ]; then
echo "ERROR: unknown archive format $existing_archive" echo "ERROR: unknown archive format $existing_archive"
exit 1 exit 1
fi fi
for i in $MYFILES; do
mv "$i" "$OUTFILE"
done
else else
echo "ERROR: archive not found: $existing_archive" echo "ERROR: archive not found: $existing_archive"
exit 1 exit 1

View File

@ -9,5 +9,8 @@
<description>Files to extract. You may use this parameter multiple times</description> <description>Files to extract. You may use this parameter multiple times</description>
<required/> <required/>
</parameter> </parameter>
<parameter name="outfilename">
<description>Rename file into outfilename</description>
</parameter>
</service> </service>

View File

@ -0,0 +1,5 @@
-------------------------------------------------------------------
Wed Feb 23 15:36:13 UTC 2011 - adrian@suse.de
- initial package