Contents
Description
Example of a site.gbs.bat
Description
Purpose
This file can be used instead of the 'Site' section in the switch.gbs(.bat/.sh) files.
As the Site section in all your switch.gbs(.bat/.sh) files contains the locations of all your plugins
on your computer - hence contains the same info -, we can have the definitions in one central place - not
inside a System.
The site.gbs script file is located in your $GBS_BASE_PATH directory and it is called by
swr before the switch.gbs script file with entry parameter.
To edit the file:
gbsedit site.gbs
Notes:
Please note the following:
- Do not try to be 'clever' with these files.
- Placing any 'clever' stuff in these files may cause GBS to malfunction.
If not today: definitely in the future.
Example of a site.gbs.bat:
Example of a site.gbs.bat:
@ECHO OFF
::================================================
:: File: %FILE%
:: Path: %PATH%
::================================================
echo GBSSITE_: Setup GBS Development environment ***
::
:: The following settings define where the roots of your plugins are located on this PC
:: This file is called before the switch.gbs.bat
:: When you use this file there is no need for the 'ROOT' or 'SITE' section in the switch.gbs.bat file
:: Only GBSEXT_*_ROOT EnvVars in this file!
::
::
:: Version Control
::
::set GBSEXT_GIT_ROOT=C:\Program Files\Git
::set GBSEXT_SVN_ROOT=C:\Program Files\Subversion
::
:: Builds
::
::set GBSEXT_MSVS2012_ROOT=C:\Program Files (x86)\Microsoft Visual Studio 11.0
::set GBSEXT_MSVS2012_KIT_ROOT=C:\Program Files (x86)\Windows Kits
::set GBSEXT_MSBUILD_ROOT=C:\Windows\Microsoft.NET\Framework
::set GBSEXT_MINGW_ROOT=C:\MinGW
::
:: Audits
::
::set GBSEXT_QAC_ROOT=C:\MyPrograms\PRQA\QAC
::set GBSEXT_QACPP_ROOT=C:\MyPrograms\PRQA\QACPP
::set GBSEXT_PCLINT_ROOT=C:\MyPrograms\PC-Lint
::set GBSEXT_CPPTEST_ROOT=C:\MyPrograms\Parasoft\C++test
::
:: Tools
::
::set GBSEXT_DOXYGEN_ROOT=C:\MyPrograms\doxygen
::
:: My Settings
::
:: Place your stuff here...
::: EOF :::
Example of a site.gbs.sh:
#!must_be_sourced
#=================================================
# File: %FILE%
# Path: %PATH%
#=================================================
echo "GBSSITE_: Setup GBS Development environment ***"
#
# The following settings define where the roots of your plugins are located on this PC
# This file is called before the switch.gbs.sh
# When you use this file there is no need for the 'ROOT' or 'SITE' section in the switch.gbs.sh file
# Only GBSEXT_*_ROOT EnvVars in this file!
#
#
# Version Control
#
#export GBSEXT_GIT_ROOT=/usr/lib/git-core
#export GBSEXT_SVN_ROOT=/usr/lib/svn
#
# Builds
#
#export GBSEXT_LGNU_CPP_ROOT=/usr/lib/gcc/x86_64-linux-gnu
#export GBSEXT_LGNU_GCC_ROOT=/usr/lib/gcc/x86_64-linux-gnu
#
# Audits
#
#export GBSEXT_QAC_ROOT=/apl/cadappl_linux_ia32/qac
#export GBSEXT_QACPP_ROOT=/apl/cadappl_linux_ia32/qac++
#
# Tools
#
#
# My Settings
#
# Place your stuff here...
### EOF ###
|