Skip to content

Instantly share code, notes, and snippets.

@sebastian-marinescu
Created May 22, 2016 11:41
Show Gist options
  • Save sebastian-marinescu/855d13783097b098b8d842bb449ed777 to your computer and use it in GitHub Desktop.
Save sebastian-marinescu/855d13783097b098b8d842bb449ed777 to your computer and use it in GitHub Desktop.
Use Gitify to install MODX inside the relative "www" folder
@echo OFF
SETLOCAL EnableDelayedExpansion
for /F "tokens=1,2 delims=#" %%a in ('"prompt #$H#$E# & echo on & for %%b in (1) do rem"') do (
set "DEL=%%a"
)
mode con:cols=68 lines=26
color 2F
echo.
echo " _____ _ _ _____ _ "
echo " | __ \ (_) | | / ____| | | "
echo " | |__) | __ ___ _ ___ ___| |_ | (___ ___| |_ _ _ _ __ "
echo " | ___/ '__/ _ \| |/ _ \/ __| __| \___ \ / _ \ __| | | | '_ \ "
echo " | | | | | (_) | | __/ (__| |_ ____) | __/ |_| |_| | |_) | "
echo " |_| |_| \___/| |\___|\___|\__| |_____/ \___|\__|\__,_| .__/ "
echo " _/ | | | "
echo " |__/ |_| "
echo.
echo.
echo.
call :colorEcho F0 "Installing MODX and building Site" && echo.
call :colorEcho F0 "---------------------------------" && echo.
echo.
echo Gitify :: Install MODX
timeout 1 > NUL
start "Gitify Install MODX" /D %~dp0\www /WAIT cmd /c Gitify modx:install
echo Gitify :: Install Packages
timeout 1 > NUL
start "Gitify Install MODX" /D %~dp0\www /WAIT cmd /c Gitify package:install --all
echo Gitify :: Building Site
timeout 1 > NUL
start "Gitify Install MODX" /D %~dp0\www /WAIT cmd /c Gitify build --no-backup --force
echo.
call :colorEcho F0 "All done" && echo.
pause
exit
:colorEcho
echo off
<nul set /p ".=%DEL%" > "%~2"
findstr /v /a:%1 /R "^$" "%~2" nul
del "%~2" > nul 2>&1i
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment