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
c3e36fee
Commit
c3e36fee
authored
Jul 03, 2011
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
clean up helps for all commands
parent
bd56ce32
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
123 additions
and
92 deletions
+123
-92
aptU
bin/aptU
+7
-4
gacl
bin/gacl
+18
-8
gpull
bin/gpull
+12
-9
grpmbs
bin/grpmbs
+8
-7
grpmbsh
bin/grpmbsh
+3
-3
loginhsh
bin/loginhsh
+10
-8
myhsh
bin/myhsh
+4
-3
rpmbb
bin/rpmbb
+7
-5
rpmbs
bin/rpmbs
+14
-12
rpmbsh
bin/rpmbsh
+10
-8
rpmgp
bin/rpmgp
+15
-13
rpmgs
bin/rpmgs
+3
-2
rpmlog
bin/rpmlog
+6
-5
rpmpub
bin/rpmpub
+6
-5
No files found.
bin/aptU
View file @
c3e36fee
...
@@ -8,10 +8,13 @@
...
@@ -8,10 +8,13 @@
load_mod gettext
load_mod gettext
if
[
"
$1
"
=
"-h"
]
;
then
if
[
"
$1
"
=
"-h"
]
;
then
echog
"aptU [-v] [-l] - update package and all it requires"
echog
"aptU - update package and all it requires"
echog
"Usage: aptU [package(s)]"
echo
echog
" -v - verbose"
echog
"Usage: aptU [-v] [-l] [package(s)]"
echog
" -l - print list of required packages"
echo
echog
"Options:"
echog
" -v verbose"
echog
" -l print list of required packages"
exit
0
exit
0
fi
fi
...
...
bin/gacl
View file @
c3e36fee
...
@@ -13,16 +13,26 @@ mygetopts()
...
@@ -13,16 +13,26 @@ mygetopts()
if
[
"
$1
"
=
"-h"
]
;
then
if
[
"
$1
"
=
"-h"
]
;
then
echog
"gacl - acl control for gear repo in
$GIRARHOST
"
echog
"gacl - acl control for gear repo in
$GIRARHOST
"
echog
"Use: gacl [GIRAR] [-
$CURRENTBRANCHNAME
] | [-b REPONAME] [package] command [params]"
echo
echog
"Usage: gacl [GIRAR] [-b REPONAME] [package] command [params]"
echo
echog
"Options:"
echog
"Options:"
echog
" -b REPONAME - binary repository name (4.1, 5.0, 5.1 and so on)"
echog
" GIRAR git.alt or git.eter"
echog
" -b REPONAME binary repository name (4.1, p5, 5.1 and so on) (sisyphus by default)"
echo
echog
"Commands:"
echog
" add USER add new user to ACL list for package"
echog
" del USER del user from ACL list for package"
echog
" show show current ACL list"
echo
echog
"Examples:"
echog
"Examples:"
echog
" gacl [-
$CURRENTBRANCHNAME
] package add newuser"
echog
" gacl package add newuser"
echog
" gacl [-
$CURRENTBRANCHNAME
] package del newuser"
echog
" gacl package del newuser"
echog
" gacl [-
$CURRENTBRANCHNAME
] package show"
echog
" gacl -b p6 package show"
echog
"Examples for current git project:"
echo
echog
" gacl [-
$CURRENTBRANCHNAME
] add newuser"
echog
"Examples for git project from current dir:"
echog
" gacl [-
$CURRENTBRANCHNAME
] show"
echog
" gacl add newuser"
echog
" gacl -b p6 show"
exit
0
exit
0
fi
fi
...
...
bin/gpull
View file @
c3e36fee
...
@@ -5,16 +5,19 @@
...
@@ -5,16 +5,19 @@
load_mod git
load_mod git
if
[
"
$1
"
=
"-h"
]
||
[
"
$1
"
=
"--help"
]
;
then
if
[
"
$1
"
=
"-h"
]
||
[
"
$1
"
=
"--help"
]
;
then
echo
"gpull - do git pull --rebase"
echo
"gpull - do git pull with fast forward only by default."
echo
"Use: gpull [-a] [-n] [repo] [branch]"
echo
echo
" gpull without parameters or with branch name"
echo
"Usage: gpull [-a] [-n] [repo] [branch]"
echo
" gpull myrepo - for pull from remote myrepo gear repo (with --rebase by default)"
echo
echo
"gpull without parameters or with branch name"
echo
"gpull myrepo - for pull from remote myrepo gear repo (with --rebase by default)"
echo
echo
"Options:"
echo
"Options:"
echo
"
-a -
pull all branches"
echo
"
-a
pull all branches"
echo
"
-r -
rebase during pull"
echo
"
-r
rebase during pull"
echo
"
-m -
do merge if possible"
echo
"
-m
do merge if possible"
echo
"
-f -
pull with fast forward only (default)"
echo
"
-f
pull with fast forward only (default)"
echo
"
-c -
return error status if repo was not uptodate (gpull || echo 'Was updated last time')"
echo
"
-c
return error status if repo was not uptodate (gpull || echo 'Was updated last time')"
exit
1
exit
1
fi
fi
...
...
bin/grpmbs
View file @
c3e36fee
...
@@ -7,13 +7,14 @@ load_mod git
...
@@ -7,13 +7,14 @@ load_mod git
set_girar_host
$1
&&
shift
set_girar_host
$1
&&
shift
if
[
"
$1
"
=
"-h"
]
||
[
"
$1
"
=
"--help"
]
;
then
if
[
"
$1
"
=
"-h"
]
||
[
"
$1
"
=
"--help"
]
;
then
echo
"grpmbs - multi repo rpmbs analogue (build packages via girar)"
echog
"grpmbs - multi repo rpmbs analogue (build packages via girar)"
echo
"Run in dir contains subdirs"
echog
"Run in dir contains subdirs"
echo
"Use: grpmbs [GIRAR] [-a|-u] [-f] package1... package2..."
echog
"Usage: grpmbs [GIRAR] [-a|-u] [-f] package1... package2..."
echo
"Options:"
echo
echo
" -a - build all packages in one task"
echog
"Options:"
echo
" -u - build packages separately (one package per task)"
echog
" -a build all packages in one task"
echo
" -f - force set tags (see rpmbs)"
echog
" -u build packages separately (one package per task)"
echog
" -f force set tags (see rpmbs)"
exit
1
exit
1
fi
fi
...
...
bin/grpmbsh
View file @
c3e36fee
...
@@ -8,7 +8,7 @@ set_girar_host $1 && shift
...
@@ -8,7 +8,7 @@ set_girar_host $1 && shift
if
[
"
$1
"
=
"-h"
]
||
[
"
$1
"
=
"--help"
]
;
then
if
[
"
$1
"
=
"-h"
]
||
[
"
$1
"
=
"--help"
]
;
then
echo
"grpmbsh - multi repo rpmbsh analogue (build packages in hasher)"
echo
"grpmbsh - multi repo rpmbsh analogue (build packages in hasher)"
echo
"Use: grpmbs [GIRAR] package1... package2..."
echo
"Us
ag
e: grpmbs [GIRAR] package1... package2..."
# FIXME: concatenate grpmbsh and grpmbs
# FIXME: concatenate grpmbsh and grpmbs
#echo "Options:"
#echo "Options:"
#echo " -a - build all packages in one task"
#echo " -a - build all packages in one task"
...
@@ -19,7 +19,7 @@ fi
...
@@ -19,7 +19,7 @@ fi
for
i
in
"
$@
"
;
do
for
i
in
"
$@
"
;
do
cd
$i
||
fatal
"Run in dir, contains '
$i
'
directory."
docmd
cd
$i
||
fatal
"Please run in dir with '
$i
' sub
directory."
rpmbsh
$GIRARHOST
||
fatal
docmd
rpmbsh
$GIRARHOST
||
fatal
cd
-
cd
-
done
done
bin/loginhsh
View file @
c3e36fee
...
@@ -28,16 +28,18 @@ phelp()
...
@@ -28,16 +28,18 @@ phelp()
{
{
echog
"
$Descr
"
echog
"
$Descr
"
echog
"
$Usage
"
echog
"
$Usage
"
echo
echog
"Options:"
echog
"Options:"
echog
" -i - initialize hasher"
echog
" -i initialize hasher"
echog
" -c - cleanup hasher"
echog
" -c cleanup hasher"
echog
" -o - log in as root user"
echog
" -o log in as root user"
echog
" -v - verbose"
echog
" -v verbose"
echog
" -t - use test hasher dir (different to build hasher)"
echog
" -t use test hasher dir (different to build hasher)"
echog
" -M?? - branch name"
echog
" -M?? branch name"
echo
echog
"Extra options:"
echog
"Extra options:"
echog
"
-a -
auto test mode for post myhsh build checking"
echog
"
-a
auto test mode for post myhsh build checking"
echog
"
-r -
remote login to hasher"
echog
"
-r
remote login to hasher"
}
}
while
getopts
:chitoav opt
;
do
while
getopts
:chitoav opt
;
do
...
...
bin/myhsh
View file @
c3e36fee
...
@@ -23,10 +23,11 @@ phelp()
...
@@ -23,10 +23,11 @@ phelp()
{
{
echog
"
$Descr
"
echog
"
$Descr
"
echog
"
$Usage
"
echog
"
$Usage
"
echo
echog
"Options:"
echog
"Options:"
echog
"
-i -
install built packages in test hasher"
echog
"
-i
install built packages in test hasher"
echog
"
-c -
build without stuff (without previous built packages)"
echog
"
-c
build without stuff (without previous built packages)"
echog
"
-l -
lazy cleanup (before build, not after)"
echog
"
-l
lazy cleanup (before build, not after)"
}
}
...
...
bin/rpmbb
View file @
c3e36fee
...
@@ -32,13 +32,15 @@ phelp()
...
@@ -32,13 +32,15 @@ phelp()
{
{
echog
"
$Descr
"
echog
"
$Descr
"
echog
"
$Usage
"
echog
"
$Usage
"
echo
echog
"Options:"
echog
"Options:"
echog
" -i - skip build, but do install and package"
echog
" -i skip build, but do install and package"
echog
" -r - find build requires"
echog
" -r find build requires"
echog
" -R - find build requires with -bi"
echog
" -R find build requires with -bi"
echo
echog
"Ext. options:"
echog
"Ext. options:"
echog
"
-c -
start from compile stage"
echog
"
-c
start from compile stage"
echog
"
-p -
packaging installed files into package"
echog
"
-p
packaging installed files into package"
}
}
while
getopts
:hciprR opt
;
do
while
getopts
:hciprR opt
;
do
...
...
bin/rpmbs
View file @
c3e36fee
...
@@ -42,22 +42,24 @@ phelp()
...
@@ -42,22 +42,24 @@ phelp()
{
{
echog
"
$Descr
"
echog
"
$Descr
"
echog
"
$Usage
"
echog
"
$Usage
"
echo
echog
"Options:"
echog
"Options:"
echog
" -u - sign and run gear build task after build"
echog
" -u sign and run gear build task after build"
echog
" -a TASK - sign package(s)/repo, push/upload it and add to (shared) task TASK"
echog
" -a TASK sign package(s)/repo, push/upload it and add to (shared) task TASK"
echog
" -p POCKET - build package in POCKET (supported on git.etersoft.ru only)"
echog
" -p POCKET build package in POCKET (supported on git.etersoft.ru only)"
echog
"Korinf options:"
echo
#echog "Korinf options:"
#echog " -k [TARGET] - generate src.rpm and publish to TARGET dir (from Source: by default)"
#echog " -k [TARGET] - generate src.rpm and publish to TARGET dir (from Source: by default)"
#echog " -r [RELEASE] - publish to RELEASE target dir version"
#echog " -r [RELEASE] - publish to RELEASE target dir version"
echog
"Ext. options:"
echog
"Ext. options:"
echog
"
-b REPONAME -
binary repository name (4.1, 5.0, 5.1 and so on)"
echog
"
-b REPONAME
binary repository name (4.1, 5.0, 5.1 and so on)"
echog
"
-c -
only sign package(s) with checking"
echog
"
-c
only sign package(s) with checking"
echog
"
-f -
force operation (overwrite tag)"
echog
"
-f
force operation (overwrite tag)"
echog
"
-s -
sign package(s) (and move it to dir ETERDESTSRPM if defined)"
echog
"
-s
sign package(s) (and move it to dir ETERDESTSRPM if defined)"
echog
"
-t -
set tag with sign"
echog
"
-t
set tag with sign"
echog
"
-n -
do not check with sisyphus_check before upload"
echog
"
-n
do not check with sisyphus_check before upload"
echog
"
-o -
create nosrc.rpm package"
echog
"
-o
create nosrc.rpm package"
echog
"
-z -
create src.rpm with compatible gzip compression"
echog
"
-z
create src.rpm with compatible gzip compression"
# echog " -U - sign package(s) and upload it to Incoming (updates)"
# echog " -U - sign package(s) and upload it to Incoming (updates)"
# echog " -d - remove package(s) from SRPMS and Incoming"
# echog " -d - remove package(s) from SRPMS and Incoming"
}
}
...
...
bin/rpmbsh
View file @
c3e36fee
...
@@ -26,16 +26,18 @@ phelp()
...
@@ -26,16 +26,18 @@ phelp()
{
{
echog
"
$Descr
"
echog
"
$Descr
"
echog
"
$Usage
"
echog
"
$Usage
"
echo
echog
"Options:"
echog
"Options:"
echog
" -r - remote build (on
$BUILDSERVER
host)"
echog
" -r remote build (on
$BUILDSERVER
host)"
echog
" -u - sign and run gear build task after build"
echog
" -u sign and run gear build task after build"
echog
" -i - install built packages in test hasher (via loginhsh -t)"
echog
" -i install built packages in test hasher (via loginhsh -t)"
echo
echog
"Ext. options:"
echog
"Ext. options:"
echog
"
-c -
build without stuff (previous built packages)"
echog
"
-c
build without stuff (previous built packages)"
echog
"
-s -
sign (and move to dir ETERDESTSRPM if defined) after build"
echog
"
-s
sign (and move to dir ETERDESTSRPM if defined) after build"
echog
"
-t -
make temporary commit before build (rpmbb like behavior)"
echog
"
-t
make temporary commit before build (rpmbb like behavior)"
echog
"
-l -
lazy cleanup (clean before build, not after)"
echog
"
-l
lazy cleanup (clean before build, not after)"
echog
"
-f -
force tag set (see rpmbs --help)"
echog
"
-f
force tag set (see rpmbs --help)"
}
}
while
getopts
:hrulsimt opt
;
do
while
getopts
:hrulsimt opt
;
do
...
...
bin/rpmgp
View file @
c3e36fee
...
@@ -148,21 +148,23 @@ phelp()
...
@@ -148,21 +148,23 @@ phelp()
# TODO: improve description
# TODO: improve description
echog
"
$Descr
"
echog
"
$Descr
"
echog
"
$Usage
"
echog
"
$Usage
"
echog
"Options:"
echog
" pkgname - installed package name or src.rpm"
echog
" pkgname - installed package name or src.rpm"
echog
" system - name of system (ALT Linux by default if -a missed)"
echog
" system - name of system (ALT Linux by default if -a missed)"
echog
" -a search pkgname in all known repositories"
echo
echog
" -c check if this package exists in the ALT Linux repository"
echog
"Options:"
echog
" -d download all matched packages"
echog
" -a search pkgname in all known repositories"
echog
" -g clone last built package repo"
echog
" -c check if this package exists in the ALT Linux repository"
echog
" -gp clone last built package repo via public access"
echog
" -d download all matched packages"
echog
" -gm remote clone repo to USER/packages and clone it locally"
echog
" -g clone last built package repo"
echog
" -m migrate to gear from spec/srpm"
echog
" -gp clone last built package repo via public access"
echog
" -gm remote clone repo to USER/packages and clone it locally"
echog
" -m migrate to gear from spec/srpm"
echo
echog
"Ext. options:"
echog
"Ext. options:"
echog
"
-b
install packages needed for build (use sudo apt-get) (need spec not package name)"
echog
"
-b
install packages needed for build (use sudo apt-get) (need spec not package name)"
echog
"
-l
list packages needed for build (in local pkg system notation) (experimental)"
echog
"
-l
list packages needed for build (in local pkg system notation) (experimental)"
echog
"
-r
refresh package list (download it again)"
echog
"
-r
refresh package list (download it again)"
echog
"
-s
list all known remote repositories"
echog
"
-s
list all known remote repositories"
exit
0
exit
0
}
}
...
...
bin/rpmgs
View file @
c3e36fee
...
@@ -31,9 +31,10 @@ phelp()
...
@@ -31,9 +31,10 @@ phelp()
echog
"
$Descr
"
echog
"
$Descr
"
echog
"
$Usage
"
echog
"
$Usage
"
echog
"You can run 'rpmgs file.spec new_version' for set new version and download it"
echog
"You can run 'rpmgs file.spec new_version' for set new version and download it"
echo
echog
"Options:"
echog
"Options:"
echog
"
-a -
get all source (not only Source|Source0)"
echog
"
-a
get all source (not only Source|Source0)"
echog
"
-f -
force download (remove source before download)"
echog
"
-f
force download (remove source before download)"
}
}
while
getopts
:haf opt
;
do
while
getopts
:haf opt
;
do
...
...
bin/rpmlog
View file @
c3e36fee
...
@@ -12,12 +12,13 @@ load_mod spec rpm git etersoft
...
@@ -12,12 +12,13 @@ load_mod spec rpm git etersoft
if
[
"
$1
"
=
"-h"
]
||
[
"
$1
"
=
"--help"
]
;
then
if
[
"
$1
"
=
"-h"
]
||
[
"
$1
"
=
"--help"
]
;
then
echog
"rpmlog - update changelog"
echog
"rpmlog - update changelog"
echog
"Usage: rpmlog [-r|-s|-v] [-l|-t] [SPEC] [TAG]"
echog
"Usage: rpmlog [-r|-s|-v] [-l|-t] [SPEC] [TAG]"
echo
echog
"Options:"
echog
"Options:"
echog
"
-v -
increment version"
echog
"
-v
increment version"
echog
"
-r -
increment release"
echog
"
-r
increment release"
echog
"
-s -
increment subrelease"
echog
"
-s
increment subrelease"
echog
"
-l -
add changelog from git log (since last release tag or TAG)"
echog
"
-l
add changelog from git log (since last release tag or TAG)"
echog
"
-t -
test run (without change files and repo)"
echog
"
-t
test run (without change files and repo)"
exit
0
exit
0
fi
fi
...
...
bin/rpmpub
View file @
c3e36fee
...
@@ -14,12 +14,13 @@ load_mod spec rpm etersoft
...
@@ -14,12 +14,13 @@ load_mod spec rpm etersoft
if
[
"
$1
"
=
"-h"
]
;
then
if
[
"
$1
"
=
"-h"
]
;
then
echog
"rpmpub - Etersoft specific script for publish gear repo to target ftp dir as src.rpm"
echog
"rpmpub - Etersoft specific script for publish gear repo to target ftp dir as src.rpm"
echog
"Usage: rpmpub [-f] [-r PROJECTVERSION ] [SPEC] [TARGETDIR]"
echog
"Usage: rpmpub [-f] [-r PROJECTVERSION ] [SPEC] [TARGETDIR]"
echo
echog
"Options:"
echog
"Options:"
echog
"
-f -
force set tag"
echog
"
-f
force set tag"
echog
"
-r PROJECTVERSION -
set other project version (PROJECTVERSION/sources)"
echog
"
-r PROJECTVERSION
set other project version (PROJECTVERSION/sources)"
echog
"
TARGETDIR -
copy signed src.rpm package to TARGETDIR (f.i., /tmp/some_version/sources)"
echog
"
TARGETDIR
copy signed src.rpm package to TARGETDIR (f.i., /tmp/some_version/sources)"
echog
"By default used path from Source: spec field. "
echog
"
By default used path from Source: spec field. "
echog
"
Y
ou can set default target dir in ETERDESTDIR variable."
echog
"
Also y
ou can set default target dir in ETERDESTDIR variable."
exit
0
exit
0
fi
fi
...
...
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