This repository has been archived on 2022-08-05. You can view files and clone it, but cannot push or open issues or pull requests.
LaptopSimulator2015/make.bat

81 lines
1.6 KiB
Batchfile
Raw Normal View History

new file: .gitignore new file: 1/1.cs new file: 1/1.csproj new file: 1/Properties/AssemblyInfo.cs new file: Base/Base.csproj new file: Base/Input.cs new file: Base/Level.cs new file: Base/Properties/AssemblyInfo.cs new file: LaptopSimulator2015.sln new file: LaptopSimulator2015/App.config new file: LaptopSimulator2015/CaptchaGenerator.cs new file: LaptopSimulator2015/FakeDesktop.Designer.cs new file: LaptopSimulator2015/FakeDesktop.cs new file: LaptopSimulator2015/FakeDesktop.resx new file: LaptopSimulator2015/LaptopSimulator2015.csproj new file: LaptopSimulator2015/Program.cs new file: LaptopSimulator2015/Properties/AssemblyInfo.cs new file: LaptopSimulator2015/Properties/Resources.Designer.cs new file: LaptopSimulator2015/Properties/Resources.resx new file: LaptopSimulator2015/Properties/Settings.Designer.cs new file: LaptopSimulator2015/Properties/Settings.settings new file: LaptopSimulator2015/Resources/fans.wav new file: LaptopSimulator2015/Resources/pcoptimizerpro.jpeg new file: LaptopSimulator2015/Settings.cs new file: LaptopSimulator2015/strings.Designer.cs new file: LaptopSimulator2015/strings.de.Designer.cs new file: LaptopSimulator2015/strings.de.resx new file: LaptopSimulator2015/strings.resx new file: README.md new file: SIT/App.config new file: SIT/MainForm.Designer.cs new file: SIT/MainForm.cs new file: SIT/MainForm.resx new file: SIT/Program.cs new file: SIT/Properties/AssemblyInfo.cs new file: SIT/Properties/Resources.Designer.cs new file: SIT/Properties/Resources.resx new file: SIT/Properties/Settings.Designer.cs new file: SIT/Properties/Settings.settings new file: SIT/SIT.csproj new file: ToDo.txt new file: make.bat
2019-07-23 14:54:05 +02:00
@echo off
setlocal enabledelayedexpansion
set devenv="C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\devenv.exe"
set arg=%1
set full=0
:select
if [%arg%]==[] goto noinput
if %arg%==full goto full
if %arg%==clean goto clean
if %arg%==debug goto debug
if %arg%==release goto release
2019-07-23 15:18:42 +02:00
if %arg%==pull goto pull
if %arg%==push goto push
if %arg%==help goto help
2019-08-27 17:53:53 +02:00
echo Invalid, try [help]
new file: .gitignore new file: 1/1.cs new file: 1/1.csproj new file: 1/Properties/AssemblyInfo.cs new file: Base/Base.csproj new file: Base/Input.cs new file: Base/Level.cs new file: Base/Properties/AssemblyInfo.cs new file: LaptopSimulator2015.sln new file: LaptopSimulator2015/App.config new file: LaptopSimulator2015/CaptchaGenerator.cs new file: LaptopSimulator2015/FakeDesktop.Designer.cs new file: LaptopSimulator2015/FakeDesktop.cs new file: LaptopSimulator2015/FakeDesktop.resx new file: LaptopSimulator2015/LaptopSimulator2015.csproj new file: LaptopSimulator2015/Program.cs new file: LaptopSimulator2015/Properties/AssemblyInfo.cs new file: LaptopSimulator2015/Properties/Resources.Designer.cs new file: LaptopSimulator2015/Properties/Resources.resx new file: LaptopSimulator2015/Properties/Settings.Designer.cs new file: LaptopSimulator2015/Properties/Settings.settings new file: LaptopSimulator2015/Resources/fans.wav new file: LaptopSimulator2015/Resources/pcoptimizerpro.jpeg new file: LaptopSimulator2015/Settings.cs new file: LaptopSimulator2015/strings.Designer.cs new file: LaptopSimulator2015/strings.de.Designer.cs new file: LaptopSimulator2015/strings.de.resx new file: LaptopSimulator2015/strings.resx new file: README.md new file: SIT/App.config new file: SIT/MainForm.Designer.cs new file: SIT/MainForm.cs new file: SIT/MainForm.resx new file: SIT/Program.cs new file: SIT/Properties/AssemblyInfo.cs new file: SIT/Properties/Resources.Designer.cs new file: SIT/Properties/Resources.resx new file: SIT/Properties/Settings.Designer.cs new file: SIT/Properties/Settings.settings new file: SIT/SIT.csproj new file: ToDo.txt new file: make.bat
2019-07-23 14:54:05 +02:00
:noinput
set /p arg="arg: "
goto select
2019-07-23 15:18:42 +02:00
:help
2019-08-27 17:53:53 +02:00
echo [full], [clean], [debug], [release], [pull], [push], [help]
2019-07-23 15:18:42 +02:00
goto noinput
new file: .gitignore new file: 1/1.cs new file: 1/1.csproj new file: 1/Properties/AssemblyInfo.cs new file: Base/Base.csproj new file: Base/Input.cs new file: Base/Level.cs new file: Base/Properties/AssemblyInfo.cs new file: LaptopSimulator2015.sln new file: LaptopSimulator2015/App.config new file: LaptopSimulator2015/CaptchaGenerator.cs new file: LaptopSimulator2015/FakeDesktop.Designer.cs new file: LaptopSimulator2015/FakeDesktop.cs new file: LaptopSimulator2015/FakeDesktop.resx new file: LaptopSimulator2015/LaptopSimulator2015.csproj new file: LaptopSimulator2015/Program.cs new file: LaptopSimulator2015/Properties/AssemblyInfo.cs new file: LaptopSimulator2015/Properties/Resources.Designer.cs new file: LaptopSimulator2015/Properties/Resources.resx new file: LaptopSimulator2015/Properties/Settings.Designer.cs new file: LaptopSimulator2015/Properties/Settings.settings new file: LaptopSimulator2015/Resources/fans.wav new file: LaptopSimulator2015/Resources/pcoptimizerpro.jpeg new file: LaptopSimulator2015/Settings.cs new file: LaptopSimulator2015/strings.Designer.cs new file: LaptopSimulator2015/strings.de.Designer.cs new file: LaptopSimulator2015/strings.de.resx new file: LaptopSimulator2015/strings.resx new file: README.md new file: SIT/App.config new file: SIT/MainForm.Designer.cs new file: SIT/MainForm.cs new file: SIT/MainForm.resx new file: SIT/Program.cs new file: SIT/Properties/AssemblyInfo.cs new file: SIT/Properties/Resources.Designer.cs new file: SIT/Properties/Resources.resx new file: SIT/Properties/Settings.Designer.cs new file: SIT/Properties/Settings.settings new file: SIT/SIT.csproj new file: ToDo.txt new file: make.bat
2019-07-23 14:54:05 +02:00
:full
set full=1
echo Please wait a bit.
:clean
echo Cleaning...
set tmp=%cd%
if exist ".NETFramework,Version=v4.8.AssemblyAttributes.cs" del ".NETFramework,Version=v4.8.AssemblyAttributes.cs"
new file: .gitignore new file: 1/1.cs new file: 1/1.csproj new file: 1/Properties/AssemblyInfo.cs new file: Base/Base.csproj new file: Base/Input.cs new file: Base/Level.cs new file: Base/Properties/AssemblyInfo.cs new file: LaptopSimulator2015.sln new file: LaptopSimulator2015/App.config new file: LaptopSimulator2015/CaptchaGenerator.cs new file: LaptopSimulator2015/FakeDesktop.Designer.cs new file: LaptopSimulator2015/FakeDesktop.cs new file: LaptopSimulator2015/FakeDesktop.resx new file: LaptopSimulator2015/LaptopSimulator2015.csproj new file: LaptopSimulator2015/Program.cs new file: LaptopSimulator2015/Properties/AssemblyInfo.cs new file: LaptopSimulator2015/Properties/Resources.Designer.cs new file: LaptopSimulator2015/Properties/Resources.resx new file: LaptopSimulator2015/Properties/Settings.Designer.cs new file: LaptopSimulator2015/Properties/Settings.settings new file: LaptopSimulator2015/Resources/fans.wav new file: LaptopSimulator2015/Resources/pcoptimizerpro.jpeg new file: LaptopSimulator2015/Settings.cs new file: LaptopSimulator2015/strings.Designer.cs new file: LaptopSimulator2015/strings.de.Designer.cs new file: LaptopSimulator2015/strings.de.resx new file: LaptopSimulator2015/strings.resx new file: README.md new file: SIT/App.config new file: SIT/MainForm.Designer.cs new file: SIT/MainForm.cs new file: SIT/MainForm.resx new file: SIT/Program.cs new file: SIT/Properties/AssemblyInfo.cs new file: SIT/Properties/Resources.Designer.cs new file: SIT/Properties/Resources.resx new file: SIT/Properties/Settings.Designer.cs new file: SIT/Properties/Settings.settings new file: SIT/SIT.csproj new file: ToDo.txt new file: make.bat
2019-07-23 14:54:05 +02:00
if exist "vs.mcj719337969" rmdir /s /q "vs.mcj719337969"
if exist "tmp" rmdir /s /q "tmp"
if not %full%==4 if exist "BUILD" rmdir /s /q "BUILD"
for /d %%i in ("%cd%\*") do (
cd %%i
if exist "bin" rmdir /s /q "bin"
if exist "obj" rmdir /s /q "obj"
cd %tmp%
)
if %full%==1 (
set full=2
goto debug
)
2019-07-23 15:18:42 +02:00
if %full%==10 (
set full=11
goto push
)
new file: .gitignore new file: 1/1.cs new file: 1/1.csproj new file: 1/Properties/AssemblyInfo.cs new file: Base/Base.csproj new file: Base/Input.cs new file: Base/Level.cs new file: Base/Properties/AssemblyInfo.cs new file: LaptopSimulator2015.sln new file: LaptopSimulator2015/App.config new file: LaptopSimulator2015/CaptchaGenerator.cs new file: LaptopSimulator2015/FakeDesktop.Designer.cs new file: LaptopSimulator2015/FakeDesktop.cs new file: LaptopSimulator2015/FakeDesktop.resx new file: LaptopSimulator2015/LaptopSimulator2015.csproj new file: LaptopSimulator2015/Program.cs new file: LaptopSimulator2015/Properties/AssemblyInfo.cs new file: LaptopSimulator2015/Properties/Resources.Designer.cs new file: LaptopSimulator2015/Properties/Resources.resx new file: LaptopSimulator2015/Properties/Settings.Designer.cs new file: LaptopSimulator2015/Properties/Settings.settings new file: LaptopSimulator2015/Resources/fans.wav new file: LaptopSimulator2015/Resources/pcoptimizerpro.jpeg new file: LaptopSimulator2015/Settings.cs new file: LaptopSimulator2015/strings.Designer.cs new file: LaptopSimulator2015/strings.de.Designer.cs new file: LaptopSimulator2015/strings.de.resx new file: LaptopSimulator2015/strings.resx new file: README.md new file: SIT/App.config new file: SIT/MainForm.Designer.cs new file: SIT/MainForm.cs new file: SIT/MainForm.resx new file: SIT/Program.cs new file: SIT/Properties/AssemblyInfo.cs new file: SIT/Properties/Resources.Designer.cs new file: SIT/Properties/Resources.resx new file: SIT/Properties/Settings.Designer.cs new file: SIT/Properties/Settings.settings new file: SIT/SIT.csproj new file: ToDo.txt new file: make.bat
2019-07-23 14:54:05 +02:00
goto exit
:debug
echo Building Debug
%devenv% LaptopSimulator2015.sln /build Debug
if %full%==2 (
set full=3
goto release
)
goto :exit
:release
echo Building Release
%devenv% LaptopSimulator2015.sln /build Release
if %full%==3 (
set full=4
xcopy /s /i "%cd%\LaptopSimulator2015\bin" "%cd%\BUILD"
goto clean
)
goto exit
2019-07-23 15:18:42 +02:00
:pull
git pull
goto exit
:push
if %full%==0 (
set full=10
goto clean
)
set /p inp1="Message: "
if %full%==11 (
git add .
git commit -m "%inp1%"
git push -u origin master
)
new file: .gitignore new file: 1/1.cs new file: 1/1.csproj new file: 1/Properties/AssemblyInfo.cs new file: Base/Base.csproj new file: Base/Input.cs new file: Base/Level.cs new file: Base/Properties/AssemblyInfo.cs new file: LaptopSimulator2015.sln new file: LaptopSimulator2015/App.config new file: LaptopSimulator2015/CaptchaGenerator.cs new file: LaptopSimulator2015/FakeDesktop.Designer.cs new file: LaptopSimulator2015/FakeDesktop.cs new file: LaptopSimulator2015/FakeDesktop.resx new file: LaptopSimulator2015/LaptopSimulator2015.csproj new file: LaptopSimulator2015/Program.cs new file: LaptopSimulator2015/Properties/AssemblyInfo.cs new file: LaptopSimulator2015/Properties/Resources.Designer.cs new file: LaptopSimulator2015/Properties/Resources.resx new file: LaptopSimulator2015/Properties/Settings.Designer.cs new file: LaptopSimulator2015/Properties/Settings.settings new file: LaptopSimulator2015/Resources/fans.wav new file: LaptopSimulator2015/Resources/pcoptimizerpro.jpeg new file: LaptopSimulator2015/Settings.cs new file: LaptopSimulator2015/strings.Designer.cs new file: LaptopSimulator2015/strings.de.Designer.cs new file: LaptopSimulator2015/strings.de.resx new file: LaptopSimulator2015/strings.resx new file: README.md new file: SIT/App.config new file: SIT/MainForm.Designer.cs new file: SIT/MainForm.cs new file: SIT/MainForm.resx new file: SIT/Program.cs new file: SIT/Properties/AssemblyInfo.cs new file: SIT/Properties/Resources.Designer.cs new file: SIT/Properties/Resources.resx new file: SIT/Properties/Settings.Designer.cs new file: SIT/Properties/Settings.settings new file: SIT/SIT.csproj new file: ToDo.txt new file: make.bat
2019-07-23 14:54:05 +02:00
:exit
echo Done
2019-10-05 16:13:57 +02:00
timeout /t 2 /nobreak >nul
exit