forked from OpenCPN/plugins
-
Notifications
You must be signed in to change notification settings - Fork 0
/
check.bat
25 lines (25 loc) · 839 Bytes
/
check.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
REM ECHO off
REM Alternative: command && success action || failure action
ECHO on
IF EXIST ocpn-plugins.xml (
DEL ocpn-plugins-bak.xml
ECHO ocpn-plugins.xml found and ocpn-plugins-bak.xml removed
COPY ocpn-plugins.xml ocpn-plugins-bak.xml
ECHO ocpn-plugins.xml file copied to ocpn-plugins-bak.xml
ECHO Generating new ocpn-plugins.xml
python tools\ocpn-metadata generate --userdir metadata --destfile ocpn-plugins.xml --force
) ELSE (
ECHO ocpn-plugins.xml not found
ECHO Generating new ocpn-plugins.xml
python tools\ocpn-metadata generate --userdir metadata --destfile ocpn-plugins.xml
)
ECHO Checking all metadata urls.
python tools\check-metadata-urls
DIR
:: ECHO Check all metadata urls?
:: ECHO 1 Yes
:: ECHO 2 No
:: SET /p web=Type option:
:: IF "%web%"=="1" goto check
:: IF "%web%"=="2" goto end
:: :check