Commit d2eb99bd authored by Vitaly Lipatov's avatar Vitaly Lipatov

fix 'major' define using

parent 5ff4735d
...@@ -202,7 +202,7 @@ set_version() ...@@ -202,7 +202,7 @@ set_version()
VERMAJOR= VERMAJOR=
fi fi
MAJORMACROS=`grep "\%define[[:space:]]\(\|ver_\)major" $SPEC | sed -e "s|.*[[:space:]]\(.*major\).*|\1|"` MAJORMACROS=`grep "\%define[[:space:]]\(\|ver_\)major[[:space:]]" $SPEC | sed -e "s|.*[[:space:]]\(.*major\).*|\1|"`
if [ -n "${MAJORMACROS}" ] ; then if [ -n "${MAJORMACROS}" ] ; then
# Change major define # Change major define
test -n "$VERMAJOR" && subst "s|\(\%define[[:space:]]$MAJORMACROS[[:space:]]\).*|\1$VERMAJOR|" $SPEC test -n "$VERMAJOR" && subst "s|\(\%define[[:space:]]$MAJORMACROS[[:space:]]\).*|\1$VERMAJOR|" $SPEC
......
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