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
3ca85722
Commit
3ca85722
authored
Jan 20, 2010
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpmgp: add -m option for migrate spec to gear support
parent
1221d55d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
1 deletion
+20
-1
rpmgp
bin/rpmgp
+20
-1
No files found.
bin/rpmgp
View file @
3ca85722
...
...
@@ -160,6 +160,7 @@ phelp()
echog
" -c check if this package exists in the ALT Linux repository"
echog
" -d download all matched packages"
echog
" -g remote clone repo to USER/packages and clone it locally"
echog
" -m migrate to gear from spec"
echog
" -l list packages needed for build (in local pkg system notation) (experimental)"
echog
" -n do not install after download, just download in current dir"
echog
" -r refresh package list (download it again)"
...
...
@@ -168,7 +169,7 @@ phelp()
}
TRYINST
=
"1"
while
getopts
:habcdglnrs opt
;
do
while
getopts
:habcdgl
m
nrs opt
;
do
case
$opt
in
h
)
phelp
;
exit
0
;;
a
)
ALLSYSTEM
=
1
;;
...
...
@@ -177,6 +178,7 @@ while getopts :habcdglnrs opt; do
d
)
DOWNLOADALL
=
1
;;
g
)
CLONEGIT
=
1
;;
l
)
LISTREQS
=
1
;;
m
)
MIGRATEGEAR
=
1
;;
n
)
TRYINST
=
""
;;
r
)
UPDATECACHE
=
1
;;
s
)
load_systems_list
...
...
@@ -232,6 +234,23 @@ if [ -n "$INSTALLBINARY" ] ; then
$SUDO
$CMD
$LISTPKG
fi
if
[
-n
"
$MIGRATEGEAR
"
]
;
then
parse_cmd_pre
"
$@
"
pack_src_rpm
$LISTRPMARGS
for
PKGNAME
in
$LISTBUILT
;
do
echo
"Create gear repo"
GITALT
=
~/Projects/git-alt
GEARDIR
=
$GITALT
/
$BASENAME
test
-d
"
$GEARDIR
"
&&
fatal
"repo
$GEARDIR
already exits"
mkdir
-p
"
$GEARDIR
"
||
fatal
"can't create dir
$GEARDIR
"
cd
$GEARDIR
||
fatal
"can't cd to
$GEARDIR
"
git init-db
||
fatal
"can't init db"
gear-srpmimport
$PKGNAME
||
fatal
"can't import srpm
$PKGNAME
"
rm
-vf
$PKGNAME
done
exit
0
fi
# clone remote git
if
[
-n
"
$CLONEGIT
"
]
;
then
PKGNAME
=
$1
...
...
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