22 lines
447 B
Batchfile
22 lines
447 B
Batchfile
@echo off
|
|
setlocal enabledelayedexpansion
|
|
|
|
echo Hai aggiornato il changelog? [s/n]
|
|
set /p changelog_ok=
|
|
if /I not "!changelog_ok!"=="s" (
|
|
echo Aggiorna prima il changelog. Operazione annullata.
|
|
exit /b 1
|
|
)
|
|
|
|
set "commit_message=RELEASE"
|
|
if "%~1" neq "" (
|
|
set "commit_message=RELEASE %~1"
|
|
)
|
|
|
|
cd ..\..\pdca0\xdce-module-widget-fideuram-v1
|
|
|
|
call git commit --allow-empty -m "!commit_message!"
|
|
|
|
if "%~2" neq "false" (
|
|
call git push -f
|
|
) |