Commit 62ac41ef authored by Vitaly Lipatov's avatar Vitaly Lipatov

small cleanup

parent c2e9b6f4
#!/bin/sh #!/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 # load common functions, compatible with local and installed script
. `dirname $0`/../share/eterbuild/functions/common . `dirname $0`/../share/eterbuild/functions/common
......
...@@ -73,6 +73,7 @@ if [ -z "$FROMTAG" ] ; then ...@@ -73,6 +73,7 @@ if [ -z "$FROMTAG" ] ; then
[ -n "$VERSION" ] || fatal "Can't get package version" [ -n "$VERSION" ] || fatal "Can't get package version"
[ -n "$RELEASE" ] || fatal "Can't get package release" [ -n "$RELEASE" ] || fatal "Can't get package release"
FROMTAG="$VERSION-$RELEASE" FROMTAG="$VERSION-$RELEASE"
# FIXME: if don't exists, use last tag?
fi fi
# TODO: найти параметр для упрощения истории. пока - sort? # TODO: найти параметр для упрощения истории. пока - sort?
...@@ -85,14 +86,20 @@ if [ -n "$TESTRUN" ] ; then ...@@ -85,14 +86,20 @@ if [ -n "$TESTRUN" ] ; then
fi fi
# increment release # increment release
if [ "$INCREMENTMODE" = "-r" ] ; then case "$INCREMENTMODE" in
"-r")
inc_release $SPECNAME inc_release $SPECNAME
elif [ "$INCREMENTMODE" = "-s" ] ; then ;;
"-s")
inc_subrelease $SPECNAME inc_subrelease $SPECNAME
elif [ "$INCREMENTMODE" = "-v" ] ; then ;;
"-v")
set_release $SPECNAME set_release $SPECNAME
inc_version $SPECNAME inc_version $SPECNAME
fi ;;
*)
fatal "unknown increment mode $INCREMENTMODE"
esac
NEWREV=$(get_version $SPECNAME)-$(get_release $SPECNAME) NEWREV=$(get_version $SPECNAME)-$(get_release $SPECNAME)
echo "Add changelog to $NEWREV:" echo "Add changelog to $NEWREV:"
......
...@@ -10,7 +10,7 @@ get_gear_rules() ...@@ -10,7 +10,7 @@ get_gear_rules()
# FIXME: move get rules file to separate function # FIXME: move get rules file to separate function
local BASESPECNAME=$(basename "$SPECNAME") local BASESPECNAME=$(basename "$SPECNAME")
local ALTGEARRULESFILE=.gear/rules-${BASESPECNAME/.spec/} local ALTGEARRULESFILE=.gear/rules-${BASESPECNAME/.spec/}
local ALTGEARRULES=$(git rev-parse --git-dir)/../$ALTGEARRULESFILE local ALTGEARRULES=$(get_root_git_dir)/$ALTGEARRULESFILE
local GEARRULES= local GEARRULES=
if [ -r "$ALTGEARRULES" ] ; then if [ -r "$ALTGEARRULES" ] ; then
#echo "Build with alternate rules $ALTGEARRULESFILE" #echo "Build with alternate rules $ALTGEARRULESFILE"
......
...@@ -73,7 +73,7 @@ print_tmp_sourceslist() ...@@ -73,7 +73,7 @@ print_tmp_sourceslist()
cat "$SLIST" | sed -e "s|i[56]86|$BUILDARCH|g" cat "$SLIST" | sed -e "s|i[56]86|$BUILDARCH|g"
else else
# Note: drop biarch 32bit on real 32bit # 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 fi
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment