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
62ac41ef
Commit
62ac41ef
authored
Jun 02, 2012
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
small cleanup
parent
c2e9b6f4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
11 deletions
+18
-11
gitcam
bin/gitcam
+1
-1
rpmlog
bin/rpmlog
+15
-8
build
share/eterbuild/functions/build
+1
-1
hasher
share/eterbuild/functions/hasher
+1
-1
No files found.
bin/gitcam
View file @
62ac41ef
#!/bin/sh
# Do commit
amend for all files
# Do commit
--amend for all files in the repo
# load common functions, compatible with local and installed script
.
`
dirname
$0
`
/../share/eterbuild/functions/common
...
...
bin/rpmlog
View file @
62ac41ef
...
...
@@ -73,6 +73,7 @@ if [ -z "$FROMTAG" ] ; then
[
-n
"
$VERSION
"
]
||
fatal
"Can't get package version"
[
-n
"
$RELEASE
"
]
||
fatal
"Can't get package release"
FROMTAG
=
"
$VERSION
-
$RELEASE
"
# FIXME: if don't exists, use last tag?
fi
# TODO: найти параметр для упрощения истории. пока - sort?
...
...
@@ -85,14 +86,20 @@ if [ -n "$TESTRUN" ] ; then
fi
# increment release
if
[
"
$INCREMENTMODE
"
=
"-r"
]
;
then
inc_release
$SPECNAME
elif
[
"
$INCREMENTMODE
"
=
"-s"
]
;
then
inc_subrelease
$SPECNAME
elif
[
"
$INCREMENTMODE
"
=
"-v"
]
;
then
set_release
$SPECNAME
inc_version
$SPECNAME
fi
case
"
$INCREMENTMODE
"
in
"-r"
)
inc_release
$SPECNAME
;;
"-s"
)
inc_subrelease
$SPECNAME
;;
"-v"
)
set_release
$SPECNAME
inc_version
$SPECNAME
;;
*
)
fatal
"unknown increment mode
$INCREMENTMODE
"
esac
NEWREV
=
$(
get_version
$SPECNAME
)
-
$(
get_release
$SPECNAME
)
echo
"Add changelog to
$NEWREV
:"
...
...
share/eterbuild/functions/build
View file @
62ac41ef
...
...
@@ -10,7 +10,7 @@ get_gear_rules()
# FIXME: move get rules file to separate function
local
BASESPECNAME
=
$(
basename
"
$SPECNAME
"
)
local
ALTGEARRULESFILE
=
.gear/rules-
${
BASESPECNAME
/.spec/
}
local
ALTGEARRULES
=
$(
g
it rev-parse
--git-dir
)
/..
/
$ALTGEARRULESFILE
local
ALTGEARRULES
=
$(
g
et_root_git_dir
)
/
$ALTGEARRULESFILE
local
GEARRULES
=
if
[
-r
"
$ALTGEARRULES
"
]
;
then
#echo "Build with alternate rules $ALTGEARRULESFILE"
...
...
share/eterbuild/functions/hasher
View file @
62ac41ef
...
...
@@ -73,7 +73,7 @@ print_tmp_sourceslist()
cat
"
$SLIST
"
|
sed
-e
"s|i[56]86|
$BUILDARCH
|g"
else
# Note: drop biarch 32bit on real 32bit
cat
"
$SLIST
"
|
sed
-e
"s|x86_64|
$BUILDARCH
|g"
|
grep
-v
"x86_32"
cat
"
$SLIST
"
|
sed
-e
"s|x86_64|
$BUILDARCH
|g"
|
grep
-v
"x86_32"
|
grep
-v
"x86-i586"
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