@echo off
set VERSION=%1
set BUILD=%2

wsl cat neo-html-protector.php | wsl php -r 'echo preg_replace("/\d+\.\d+\.\d+/", "%VERSION%", file_get_contents("php://stdin"));' | wsl php -r 'echo preg_replace("/\d\d\d\d\d\d\d\d\d\d\d\d\d\d/", "%BUILD%", file_get_contents("php://stdin"));' > temp
wsl mv temp neo-html-protector.php

wsl cat 1make.bat | wsl php -r 'echo preg_replace("/\d+\.\d+\.\d+/", "%VERSION%", file_get_contents("php://stdin"));' > temp

wsl cat js/neo-html-protect.js | wsl php -r 'echo preg_replace("/\d+\.\d+\.\d+/", "%VERSION%", file_get_contents("php://stdin"));' > temp
wsl mv temp js/neo-html-protect.js
