# a macro for testing the configuration.
export GFFS_CHECK_VARS='
if [ -z "$GENII_INSTALL_DIR" -o -z "$GFFS_TOOLKIT_ROOT" ]; then
- echo "GENII_INSTALL_DIR is not set.";
+ echo "GENII_INSTALL_DIR or GFFS_TOOLKIT_ROOT is not set.";
return 1;
fi '
function build_gffs()
{
eval $GFFS_CHECK_VARS
-# if [ -z "$GENII_INSTALL_DIR" -o -z "$GFFS_TOOLKIT_ROOT" ]; then
-# echo GENII_INSTALL_DIR is not set.
-# return 1
-# fi
#zapem
pushd "$GENII_INSTALL_DIR"
if [ $? -ne 0 ]; then
+ popd
error_sound
return 1
fi
# build the trunk.
ant -Dbuild.targetArch=64 build
if [ $? -ne 0 ]; then
+ popd
error_sound
return 1
fi
function rebuild_gffs()
{
eval $GFFS_CHECK_VARS
-# if [ -z "$GENII_INSTALL_DIR" -o -z "$GFFS_TOOLKIT_ROOT" ]; then
-# echo GENII_INSTALL_DIR is not set.
-# return 1
-# fi
#zapem
pushd "$GENII_INSTALL_DIR"
ant clean
-
+ popd
if [ $? -ne 0 ]; then
error_sound
return 1
fi
- popd
build_gffs
}
function fast_install_build()
{
eval $GFFS_CHECK_VARS
- bash "$GFFS_TOOLKIT_ROOT/tools/installer/fast_installer_build.sh" $*
+ bash "$GFFS_TOOLKIT_ROOT/tools/installer/build_installer.sh" $* fast
if [ $? -ne 0 ]; then
echo "failed to create the installer."
error_sound