Skip to content

Commit

Permalink
Properly detect if rpm is missing
Browse files Browse the repository at this point in the history
  • Loading branch information
Nye Liu committed Jul 19, 2017
1 parent 989f1a8 commit c6e7f4c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions autogen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@ if [ -f config.log ]; then
echo " $last"
eval $last

elif [ "x$1" = xinit -a -e `which rpm 2>/dev/null` ]; then
elif [ "x$1" = xinit -a -e "`which rpm 2>/dev/null`" ]; then
cmd="./__configure.rpm"
rpm --eval %{configure} | grep -v program-prefix | sed 's/\t/ /' > $cmd
sh $cmd
make

else
echo "Now run configure with any arguments (eg. --prefix) specific to your system"
if [ -e `which rpm 2>/dev/null` ]; then
if [ -e "`which rpm 2>/dev/null`" ]; then
echo "Suggested invocation:"
rpm --eval %{configure} | grep -v program-prefix
fi
Expand Down

0 comments on commit c6e7f4c

Please sign in to comment.