buildpkg.functions: style cleanup in generic_install()

This commit is contained in:
Tom G. Christensen 2013-01-27 13:47:27 +01:00
parent a61b3bb05f
commit a8454b7c03

View File

@ -909,12 +909,8 @@ makeinstall()
generic_install()
{
local dest="$stagedir"
local destvar=DESTDIR
local arg1=${1-'x'}
local destvar=${1:-DESTDIR}
if [ "$arg1" != "x" ]; then
destvar=$arg1 # $1 was defined
fi
if [ "$custom_install" -eq 0 ]; then
clean stage
[ "$shortroot" -eq 1 ] && dest="${stagedir}${prefix}"