X-Git-Url: https://defaria.com/gitweb/?a=blobdiff_plain;f=rc%2Fclient_scripts%2FcPanel;h=9721b092764928cd7b965647d895bb8034d13009;hb=b02e05b4efd5224a53c762942929b75ae215e237;hp=c66c9c6c1eefbc1cbc885a2ab71078137d57d98a;hpb=a95457ef4082b47eb41e1f794b88c0db3cd9ab76;p=clearscm.git diff --git a/rc/client_scripts/cPanel b/rc/client_scripts/cPanel old mode 100755 new mode 100644 index c66c9c6..9721b09 --- a/rc/client_scripts/cPanel +++ b/rc/client_scripts/cPanel @@ -23,13 +23,16 @@ append_to_path /opt/cpanel/composer/bin append_to_path /opt/cplint/bin append_to_path /root/bin +# Useful aliases +alias makesb4='pushd $ulc; make -j4 sandbox; popd' # Find code! -codePath=$(dirname $(find ~/.vscode-server/bin -name code)) - -if [ -n "$codePath" ]; then - append_to_path $codePath -else - echo "Warning - unable to find code" +if [ -d ~/.vscode-server ]; then + codePath=$(dirname $(find ~/.vscode-server/bin -name code)) + if [ -n "$codePath" ]; then + append_to_path $codePath + else + echo "Warning - unable to find code" + fi fi # Intended to be used for root @@ -40,16 +43,31 @@ export ulc=/usr/local/cpanel export ulp=/usr/local/cp-monitoring-cpanel-plugin export ulw=/usr/local/cp-monitoring-whm-plugin export ulb=/usr/local/cp-banners-plugin -export CPANEL_TEAM='scrum' +export CPANEL_TEAM='release' +# NOTE: To trim down the amount of time for make sandbox, you may define +# the environment variable SANDBOX_LOCALES which is a space separated list +# of locales to build. You can add the following to your .bash_profile to +# only build English and Spanish. +#export SANDBOX_LOCALES=en + +# EA Tools +export EATOOLS_BUILD_DIR=/usr/local/ea-tools/SOURCES/ +export EATOOLS_BIN_DIR=/usr/local/ea-tools/SOURCES/ +export OBS_USERNAME=A.defaria #alias ulc="cd /usr/local/cpanel" alias perl="$ulc/3rdparty/bin/perl" +alias stencilwatch='npx stencil test --spec --watchAll' +alias stencilwatche2e='npx stencil test --spec --e2e --watchAll' # Unset PERLTIDY and PERLCRITIC as those variable override looking for # ~/.perltidyrc and ~/.perlcriticrc. unset PERLTIDY unset PERLCRITIC +# This is a closer call to how cplint is called by merge_request +alias cplintm="cplint --branched-from=upstream/$(cat /usr/local/cpanel/.branched_from)" + # This is the completer function for ulc. This completes any path that comes # after the ulc as a path completion relative to $ulc function _ulc {