Commit 23a8b583 authored by Anton V. Boyarshinov's avatar Anton V. Boyarshinov

simplify configure.ac while it is not a real configure

parent 5a260fd3
......@@ -82,7 +82,7 @@ This package contains some graphics for ALT design.
%build
autoconf
./configure --with-theme=%theme --with-name='Desktop' --with-brand='ALT Linux' --with-status=%status --with-verions=%version
THEME=%theme NAME='Desktop' BRAND_FNAME='ALT Linux' STATUS=%status VERSION=%version ./configure
make
#bootloader
......
AC_INIT( [branding], [0.1], [http://bugzilla.altlinux.ru] )
AC_ARG_WITH(theme,
AC_HELP_STRING([--with-theme=theme],
[base theme, e.g '--with-theme=lite' ]),
[
if test -n "$with_theme" ; then
THEME="$with_theme"
fi
],
[
THEME="theme"
]
)
AC_ARG_WITH(name,
AC_HELP_STRING([--with-name=name],
[Human readable name, e.g '--with-name="Small Business"' ]),
[
if test -n "$with_name" ; then
NAME="$with_name"
fi
],
[
NAME="name"
]
)
AC_ARG_WITH(status,
AC_HELP_STRING([--with-status=beta],
[status, e.g '--with-status=beta']),
[
if test -n "$with_status" ; then
STATUS="$with_status"
fi
],
[
STATUS=""
])
AC_ARG_WITH(brand,
AC_HELP_STRING([--with-status=brand],
[brand, e.g '--with-brand="ALT Linux"']),
[
if test -n "$with_brand" ; then
BRAND_FNAME="$with_brand"
fi
],
[
BRAND_FNAME=""
])
AC_ARG_WITH(version,
AC_HELP_STRING([--with-version=5.0],
[version, e.g '--with-version=5.0']),
[
if test -n "$with_version" ; then
VERSION="$with_version"
fi
],
[
VERSION=""
])
PROGRESS_COLOR=`./fetch_color selectBackground`
TITLE_COLOR=`./fetch_color handle`
INACTIVE_COLOR=`./fetch_color inactiveTitleBtnBg`
AC_SUBST(THEMEMC)
AC_SUBST(THEMELC)
AC_SUBST(THEME)
AC_SUBST(BRAND_FNAME)
AC_SUBST(STATUS)
......
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