updates configuration files

parent ffcd91f1
......@@ -81,6 +81,9 @@ set RESTART_EXECUTABLE_HOME=
set ADD_RESTART_CMD_LINE_ARGS=
set ADD_RESTART_CMD_LINE_ARGS_END=
for %%f in (%CURRENT_DIR%) do set PROJECT_NAME=%%~nxf
for %%* in (.) do set CURRENT_DIR_NAME=%%~nx*
set CREDENTIALS_HOME=%CURRENT_DIR%\..\credentials\%CURRENT_DIR_NAME%
......@@ -93,7 +96,7 @@ FOR /R %CREDENTIALS_HOME% %%G IN (*.env) DO (
echo file: "%%G"
FOR /F %%F IN (%%G) DO (
echo SET %%F
SET %%F > nul 2>&1
SET %%F> nul 2>&1
)
)
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
......@@ -88,9 +88,10 @@ set ADD_RESTART_CMD_LINE_ARGS=
set ADD_RESTART_CMD_LINE_ARGS_END=
set VBOX_PATH=%VBOX_MSI_INSTALL_PATH%
set VBOX_USER_HOME=%CURRENT_DIR%\vm
mkdir %VBOX_USER_HOME% >nul 2>&1
"%VBOX_MSI_INSTALL_PATH%\VBoxManage" setproperty machinefolder %VBOX_USER_HOME%
set VBOX_USER_HOME=%USERPROFILE%\.VirtualBox
set VBOX_USER_VM_HOME=%CURRENT_DIR%\vm
mkdir %VBOX_USER_VM_HOME% >nul 2>&1
"%VBOX_MSI_INSTALL_PATH%\VBoxManage" setproperty machinefolder %VBOX_USER_VM_HOME%
echo The Current Dir is equal to %CURRENT_DIR%
echo The Current Conf is equal to %CURRENT_CONF%
......@@ -105,7 +106,7 @@ SET PATH=%VBOX_PATH%;%PATH%
echo PATH has been updated PATH = %PATH%
:pathDuplicate
rem VBoxManage setproperty machinefolder %VBOX_USER_HOME%
rem VBoxManage setproperty machinefolder %VBOX_USER_VM_HOME%
goto end
......
......@@ -4,4 +4,10 @@ set PROJECT_ENV_REPO_REL_PATH=git\environment
call %PROJECT_ENV_REPO_REL_PATH%\projectVariables-gbe64.bat configOthers
echo environment loaded
cmd /k echo Cmd configured for %CURRENT_DIR% project
title %PROJECT_NAME%
if exist clink64 goto do_clink
cmd /k "echo Cmd configured for %CURRENT_DIR% project"
goto end
:do_clink
cmd /k "echo Cmd configured for %CURRENT_DIR% project && clink inject "
:end
......@@ -11,5 +11,12 @@ set FILENAME=%~n0
set VAGRANT_CONFIG=%CURRENT_DIR%\%FILENAME%.yml
echo "The VAGRANT_CWD is equal to %VAGRANT_CWD%"
cmd /k echo "The VAGRANT_CONFIG is equal to %VAGRANT_CONFIG%"
echo "The VAGRANT_CONFIG is equal to %VAGRANT_CONFIG%"
title %PROJECT_NAME%
if exist clink64 goto do_clink
cmd /k "echo Cmd configured for %CURRENT_DIR% project"
goto end
:do_clink
cmd /k "echo Cmd configured for %CURRENT_DIR% project && clink inject "
:end
@echo off
echo loading environment ...
set PROJECT_ENV_REPO_REL_PATH=git\environment
call %PROJECT_ENV_REPO_REL_PATH%\projectVariables-gbe64.bat configOthers
echo environment loaded
set VAGRANT_CWD=%CURRENT_DIR%\git\k09_2
rem https://superuser.com/questions/489240/how-to-get-filename-only-without-path-in-windows-command-line
set FILENAME=%~n0
set VAGRANT_CONFIG=%CURRENT_DIR%\%FILENAME%.yml
echo "The VAGRANT_CWD is equal to %VAGRANT_CWD%"
echo "The VAGRANT_CONFIG is equal to %VAGRANT_CONFIG%"
title %PROJECT_NAME%
if exist clink64 goto do_clink
cmd /k "echo Cmd configured for %CURRENT_DIR% project"
goto end
:do_clink
cmd /k "echo Cmd configured for %CURRENT_DIR% project && clink inject "
:end
......@@ -11,5 +11,12 @@ set FILENAME=%~n0
set VAGRANT_CONFIG=%CURRENT_DIR%\%FILENAME%.yml
echo "The VAGRANT_CWD is equal to %VAGRANT_CWD%"
cmd /k echo "The VAGRANT_CONFIG is equal to %VAGRANT_CONFIG%"
echo "The VAGRANT_CONFIG is equal to %VAGRANT_CONFIG%"
title %PROJECT_NAME%
if exist clink64 goto do_clink
cmd /k "echo Cmd configured for %CURRENT_DIR% project"
goto end
:do_clink
cmd /k "echo Cmd configured for %CURRENT_DIR% project && clink inject "
:end
......@@ -11,5 +11,12 @@ set FILENAME=%~n0
set VAGRANT_CONFIG=%CURRENT_DIR%\%FILENAME%.yml
echo "The VAGRANT_CWD is equal to %VAGRANT_CWD%"
cmd /k echo "The VAGRANT_CONFIG is equal to %VAGRANT_CONFIG%"
echo "The VAGRANT_CONFIG is equal to %VAGRANT_CONFIG%"
title %PROJECT_NAME%
if exist clink64 goto do_clink
cmd /k "echo Cmd configured for %CURRENT_DIR% project"
goto end
:do_clink
cmd /k "echo Cmd configured for %CURRENT_DIR% project && clink inject "
:end
@echo off
rem From https://stackoverflow.com/questions/33903784/change-the-font-and-size-of-the-text-in-a-batch-file
rem adjusted by GBE
setlocal enabledelayedexpansion enableextensions
set "cmd.con=HKCU\Console\Clink /v"
del Backup.reg
Reg export HKCU\Console Backup.reg>nul
Reg delete HKCU\Console\Clink /f>nul
for %%a in (
"FaceName /t REG_SZ /d "Terminal" /f"
"FontFamily /t REG_DWORD /d 48 /f"
"FontSize /t REG_DWORD /d 1024294 /f"
"FontWeight /t REG_DWORD /d 700 /f"
"ScreenBufferSize /t REG_DWORD /d 13107280 /f"
"CursorSize /t REG_DWORD /d 50 /f"
) do (
set "param=%%a"
set "param=!param:~1!"
set "param=%cmd.con% !param:~0,-1!"
Reg Add !param! >nul
)
\ No newline at end of file
@echo off
rem From https://stackoverflow.com/questions/33903784/change-the-font-and-size-of-the-text-in-a-batch-file
rem adjusted by GBE
setlocal enabledelayedexpansion enableextensions
set "cmd.con=HKCU\Console\Clink /v"
for %%a in (
"FaceName /f"
"FontFamily /f"
"FontSize /f"
"FontWeight /f"
"CursorSize /f"
) do (
set "param=%%a"
set "param=!param:~1!"
set "param=%cmd.con% !param:~0,-1!"
Reg Delete !param! >nul
)
@echo off
rem From https://stackoverflow.com/questions/33903784/change-the-font-and-size-of-the-text-in-a-batch-file
rem adjusted by GBE
setlocal enabledelayedexpansion enableextensions
set "cmd.con=HKCU\Console\%%SystemRoot%%_system32_cmd.exe /v"
del Backup.reg
Reg export HKCU\Console Backup.reg>nul
Reg delete HKCU\Console\%%SystemRoot%%_system32_cmd.exe /f>nul
for %%a in (
"FaceName /t REG_SZ /d "Terminal" /f"
"FontFamily /t REG_DWORD /d 48 /f"
"FontSize /t REG_DWORD /d 1024294 /f"
"FontWeight /t REG_DWORD /d 700 /f"
"ScreenBufferSize /t REG_DWORD /d 39321716 /f"
"CursorSize /t REG_DWORD /d 50 /f"
) do (
set "param=%%a"
set "param=!param:~1!"
set "param=%cmd.con% !param:~0,-1!"
Reg Add !param! >nul
)
set "cmd.con=HKCU\Console /v"
for %%a in (
"InsertMode /t REG_DWORD /d 1 /f"
"QuickEdit /t REG_DWORD /d 1 /f"
"WindowSize /t REG_DWORD /d 1638516 /f"
"ScreenBufferSize /t REG_DWORD /d 39321716 /f"
) do (
set "param=%%a"
set "param=!param:~1!"
set "param=%cmd.con% !param:~0,-1!"
Reg Add !param! >nul
)
@echo off
rem From https://stackoverflow.com/questions/33903784/change-the-font-and-size-of-the-text-in-a-batch-file
rem adjusted by GBE
setlocal enabledelayedexpansion enableextensions
set "cmd.con=HKCU\Console\%%SystemRoot%%_system32_cmd.exe /v"
del Backup.reg
Reg export HKCU\Console Backup.reg>nul
Reg delete HKCU\Console\%%SystemRoot%%_system32_cmd.exe /f>nul
for %%a in (
"FaceName /t REG_SZ /d "Terminal" /f"
"FontFamily /t REG_DWORD /d 0 /f"
"FontSize /t REG_DWORD /d 0 /f"
"FontWeight /t REG_DWORD /d 0 /f"
"ScreenBufferSize /t REG_DWORD /d 39321716 /f"
"CursorSize /t REG_DWORD /d 50 /f"
) do (
set "param=%%a"
set "param=!param:~1!"
set "param=%cmd.con% !param:~0,-1!"
Reg Add !param! >nul
)
rem https://www.winhelponline.com/blog/set-cmd-prompt-default-window-size-position/
set "cmd.con=HKCU\Console /v"
for %%a in (
"InsertMode /t REG_DWORD /d 1 /f"
"QuickEdit /t REG_DWORD /d 1 /f"
"WindowSize /t REG_DWORD /d 1638516 /f"
"ScreenBufferSize /t REG_DWORD /d 39321716 /f"
) do (
set "param=%%a"
set "param=!param:~1!"
set "param=%cmd.con% !param:~0,-1!"
Reg Add !param! >nul
)
@echo off
rem From https://stackoverflow.com/questions/33903784/change-the-font-and-size-of-the-text-in-a-batch-file
rem adjusted by GBE
setlocal enabledelayedexpansion enableextensions
set "cmd.con=HKCU\Console\%%SystemRoot%%_system32_cmd.exe /v"
for %%a in (
"FaceName /f"
"FontFamily /f"
"FontSize /f"
"FontWeight /f"
"CursorSize /f"
"ScreenBufferSize /f"
) do (
set "param=%%a"
set "param=!param:~1!"
set "param=%cmd.con% !param:~0,-1!"
Reg Delete !param! >nul
)
set "cmd.con=HKCU\Console /v"
for %%a in (
"InsertMode /f"
"QuickEdit /f"
"WindowSize /t REG_DWORD /d 1638516 /f"
"ScreenBufferSize /t REG_DWORD /d 1638516 /f"
) do (
set "param=%%a"
set "param=!param:~1!"
set "param=%cmd.con% !param:~0,-1!"
Reg Add !param! >nul
)
@echo off
WHERE unzip
IF %ERRORLEVEL% NEQ 0 (
echo Cywin with unzip required
goto end
)
rem we check de powershell version if lower that 3 exit
for /f %%i in ('powershell -Command "$PSVersionTable.PSVersion.Major"') do set powershellVersion=%%i
echo powershellVersion=%powershellVersion%
if %powershellVersion% LSS 3 (
echo Only works with powershell greater or equal to 3
goto end
)
IF "%CLINK_VERSION%" == "" (
set CLINK_VERSION=0.4.9
echo Defaults CLINK_VERSION=%CLINK_VERSION%
)
echo "downloading click"
set downloadUrl="https://github.com/mridgers/clink/releases/download/%CLINK_VERSION%/clink_%CLINK_VERSION%.zip"
mkdir downloads 2> nul
for /f %%i in ('powershell -Command "$(split-path -path %downloadUrl% -leaf)"') do set appFileName=%%i
echo appFileName=%appFileName%
if Not exist "downloads\%appFileName%" (
rem file exists
echo downloading %downloadUrl% to downloads
rem we escape because we are inside if
powershell -Command "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; Invoke-WebRequest %downloadUrl% -OutFile downloads\%appFileName%"
)
rem we install app
set APP_HOME_REL_PATH=clink64
mkdir %APP_HOME_REL_PATH% 2> nul
unzip -j downloads\%appFileName% -d %APP_HOME_REL_PATH%
:end
......@@ -30,7 +30,7 @@ set CYGWIN_HOME_REL_PATH=cygwin64
mkdir %CYGWIN_HOME_REL_PATH% 2> nul
echo installing cygwin
set packages=rsync,zip,unzip,wget,curl,openssh,openssl,xmlstarlet,jq,bind-utils,inetutils,git,mysql
set packages=rsync,zip,unzip,wget,curl,openssh,openssl,xmlstarlet,jq,bind-utils,inetutils,git,mysql,python,python-pip,python3,python3-pip
rem rsync,zip,unzip,wget,curl,openssh,openssl,xmlstarlet,jq,bind-utils,inetutils,git …
downloads\setup-x86_64.exe --no-admin --quiet-mode --no-startmenu --no-desktop --no-shortcuts --force-current --local-package-dir "%CD%\downloads" --root "%CD%\%CYGWIN_HOME_REL_PATH%" --site "http://cygwin.mirror.constant.com/" --packages %packages%
......
@echo off
WHERE unzip
IF %ERRORLEVEL% NEQ 0 (
echo Cywin with unzip required
)
rem we check de powershell version if lower that 3 exit
for /f %%i in ('powershell -Command "$PSVersionTable.PSVersion.Major"') do set powershellVersion=%%i
echo powershellVersion=%powershellVersion%
if %powershellVersion% LSS 3 (
echo Only works with powershell greater or equal to 3
goto end
)
IF "%NPP_VERSION%" NEQ "" goto versionSet
rem https://xenappblog.com/2018/download-and-install-latest-notepad/ based on that at command line
rem powershell -Command "$url = 'https://notepad-plus-plus.org/';$content = wget -Uri $url;($content.allelements | ? id -eq 'download').innerText -match '\d+\.\d+\.\d+' | out-null;Write-Output $Matches.Values"
Set POWERSHELL_COMMAND="$url = 'https://notepad-plus-plus.org/';$content = wget -Uri $url;($content.allelements | ? id -eq 'download').innerText -match '\d+\.\d+' | out-null;Write-Output $Matches.Values"
rem Set POWERSHELL_COMMAND="$url = 'https://notepad-plus-plus.org/';$content = wget -Uri $url;($content.allelements | ? id -eq 'download').innerText -match '\d+\.\d+\.\d+' | out-null;Write-Output $Matches.Values"
rem echo POWERSHELL_COMMAND=%POWERSHELL_COMMAND%
rem powershell -Command %POWERSHELL_COMMAND%
for /f %%i in (' powershell -Command %POWERSHELL_COMMAND% ') do set NPP_VERSION=%%i
echo Defaults NPP_VERSION=%NPP_VERSION%
:versionSet
echo downloading %NPP_VERSION%
rem https://www.dostips.com/DtTipsStringManipulation.php
set downloadUrl=https://notepad-plus-plus.org/repository/7.x/%NPP_VERSION%/npp.%NPP_VERSION%.bin.x64.zip
mkdir downloads 2> nul
for /f %%i in ('powershell -Command "$(split-path -path "%downloadUrl%" -leaf)"') do set appFileName=%%i
echo appFileName=%appFileName%
if Not exist "downloads\%appFileName%" (
rem file exists
echo downloading %downloadUrl% to downloads
rem we escape because we are inside if
powershell -Command "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; Invoke-WebRequest %downloadUrl% -OutFile downloads\%appFileName%"
)
set APP_HOME_REL_PATH=npp64
mkdir %APP_HOME_REL_PATH% 2> nul
unzip downloads\%appFileName% -d %APP_HOME_REL_PATH%
echo #!/bin/sh > %APP_HOME_REL_PATH%\npp.sh
echo|set /p="notepad++.exe -multiInst -notabbar -nosession -noPlugin $(cygpath -w "$@")" >> %APP_HOME_REL_PATH%\npp.sh
copy /Y "%APP_HOME_REL_PATH%\notepad++.exe" "%APP_HOME_REL_PATH%\npp.exe"
rem ---------------------------------- Path --------------------------------
echo %PATH% | %WINDIR%\System32\find.exe "%CURRENT_DIR%\%APP_HOME_REL_PATH%" /C >NUL
IF NOT ERRORLEVEL 1 GOTO pathDuplicate
SET PATH=%CURRENT_DIR%\%APP_HOME_REL_PATH%;%PATH%
echo PATH has been updated PATH = %PATH%
:pathDuplicate
:end
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