Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
etersoft-build-utils
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
korinf
etersoft-build-utils
Commits
4ed60056
Commit
4ed60056
authored
May 26, 2009
by
Vitaly Lipatov
Committed by
Vitaly Lipatov
Jul 09, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpmgs: add 7z archive support
parent
6ee23ecc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletion
+13
-1
rpmgs
bin/rpmgs
+13
-1
No files found.
bin/rpmgs
View file @
4ed60056
...
...
@@ -141,6 +141,7 @@ function get_tbz2()
mv
$WEXT
.tbz2
$WEXT
.tar.bz2
}
# TODO: use external converter
function
get_zip
()
{
get_archive zip
||
return
...
...
@@ -151,6 +152,17 @@ function get_zip()
rm
-rf
$WEXT
.zip.dir
}
# TODO: use external converter
function
get_7z
()
{
get_archive 7z
||
return
mkdir
$WEXT
.7z.dir
||
return
cd
$WEXT
.7z.dir
7z x ../
$WEXT
.7z
&&
tar
cf ../
$WEXT
.tar
.
&&
bzipit ../
$WEXT
.tar
||
return
cd
..
rm
-rf
$WEXT
.7z.dir
}
function
dir_name
()
{
rm
.listing
...
...
@@ -232,7 +244,7 @@ do
warning
"It is not tarball..."
get_bzip
||
get_gz
||
get_raw
||
fatal
"Error: Cannot retrieve
$GETSOURCE
"
else
get_bzip
||
get_targz
||
get_tbz2
||
get_tgz
||
get_zip
||
get_tar
||
dir_name
||
fatal
"Error: Cannot retrieve
$GETSOURCE
"
get_bzip
||
get_targz
||
get_tbz2
||
get_tgz
||
get_
7z
||
get_
zip
||
get_tar
||
dir_name
||
fatal
"Error: Cannot retrieve
$GETSOURCE
"
fi
echo
"DONE"
popd
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment