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
acc04170
Commit
acc04170
authored
Sep 16, 2010
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpmgp: fix tabs and varname
parent
7c7081a6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
rpmgp
bin/rpmgp
+11
-11
No files found.
bin/rpmgp
View file @
acc04170
...
@@ -172,7 +172,7 @@ while getopts :habcdglmrs opt; do
...
@@ -172,7 +172,7 @@ while getopts :habcdglmrs opt; do
d
)
DOWNLOADALL
=
1
;;
d
)
DOWNLOADALL
=
1
;;
g
)
CLONEGIT
=
1
;;
g
)
CLONEGIT
=
1
;;
l
)
LISTREQS
=
1
;;
l
)
LISTREQS
=
1
;;
m
)
MIGRATEG
E
AR
=
1
;;
m
)
MIGRATEG
IR
AR
=
1
;;
r
)
UPDATECACHE
=
1
;;
r
)
UPDATECACHE
=
1
;;
s
)
load_systems_list
s
)
load_systems_list
list_systems
list_systems
...
@@ -180,7 +180,7 @@ while getopts :habcdglmrs opt; do
...
@@ -180,7 +180,7 @@ while getopts :habcdglmrs opt; do
;;
;;
+?
)
echog
"
$name
: options should not be preceded by a '+'."
1>&2
;
exit
2
;;
+?
)
echog
"
$name
: options should not be preceded by a '+'."
1>&2
;
exit
2
;;
# ?) echog "$name: $OPTARG: bad option. Use -h for help." 1>&2 ; exit 2;;
# ?) echog "$name: $OPTARG: bad option. Use -h for help." 1>&2 ; exit 2;;
?
)
OPTIND
=
$((
OPTIND-1
))
;
break
;
?
)
OPTIND
=
$((
OPTIND-1
))
;
break
;
esac
esac
done
done
...
@@ -217,13 +217,13 @@ test -z "$PKGNAME" && fatal "Please run with spec/package name"
...
@@ -217,13 +217,13 @@ test -z "$PKGNAME" && fatal "Please run with spec/package name"
# install required for build binary packages
# install required for build binary packages
if
[
-n
"
$INSTALLBINARY
"
]
;
then
if
[
-n
"
$INSTALLBINARY
"
]
;
then
# pack by LISTNAMES list
# pack by LISTNAMES list
pack_src_rpm
--commit
$LISTRPMARGS
pack_src_rpm
--commit
$LISTRPMARGS
LISTPKG
=
$(
rpmquery
--requires
-p
$LISTBUILT
| clean_pkgreq |
sed
-e
"s|rpm-build-altlinux-compat||g"
)
LISTPKG
=
$(
rpmquery
--requires
-p
$LISTBUILT
| clean_pkgreq |
sed
-e
"s|rpm-build-altlinux-compat||g"
)
DISTRVENDOR
=
$(
distr_vendor
-d
)
DISTRVENDOR
=
$(
distr_vendor
-d
)
CMD
=
$(
get_install_package_command
$DISTRVENDOR
interactive
)
CMD
=
$(
get_install_package_command
$DISTRVENDOR
interactive
)
echog
"Running
$SUDO
$CMD
$LISTPKG
"
echog
"Running
$SUDO
$CMD
$LISTPKG
"
exec
$SUDO
$CMD
$LISTPKG
exec
$SUDO
$CMD
$LISTPKG
fi
fi
# TODO: do gpull -a for get all branches?
# TODO: do gpull -a for get all branches?
...
@@ -250,7 +250,7 @@ if [ -n "$CLONEGIT" ] ; then
...
@@ -250,7 +250,7 @@ if [ -n "$CLONEGIT" ] ; then
# http://git.altlinux.org/gears/N/NAME.git
# http://git.altlinux.org/gears/N/NAME.git
RREPO
=
"/gears/
$REPOPATH
"
RREPO
=
"/gears/
$REPOPATH
"
if
[
-z
"
$MIGRATEG
E
AR
"
]
;
then
if
[
-z
"
$MIGRATEG
IR
AR
"
]
;
then
echo
"Clone from
$GIRARHOST
:
$RREPO
..."
echo
"Clone from
$GIRARHOST
:
$RREPO
..."
if
!
git clone
$GIRARHOST
:
$RREPO
;
then
if
!
git clone
$GIRARHOST
:
$RREPO
;
then
# http://git.altlinux.org/srpms/N/NAME.git
# http://git.altlinux.org/srpms/N/NAME.git
...
@@ -281,7 +281,7 @@ if [ -n "$CLONEGIT" ] ; then
...
@@ -281,7 +281,7 @@ if [ -n "$CLONEGIT" ] ; then
exit
$?
exit
$?
fi
fi
if
[
-n
"
$MIGRATEG
E
AR
"
]
;
then
if
[
-n
"
$MIGRATEG
IR
AR
"
]
;
then
for
INFILE
in
$LISTNAMES
;
do
for
INFILE
in
$LISTNAMES
;
do
# call for each file due generated BASENAME
# call for each file due generated BASENAME
LISTNAMES
=
$INFILE
pack_src_rpm
$INFILE
$LISTRPMARGS
LISTNAMES
=
$INFILE
pack_src_rpm
$INFILE
$LISTRPMARGS
...
...
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