summaryrefslogtreecommitdiff
path: root/boards/run.sh
blob: bd6467b6694b1fd3ba49092c8b7ff446241a4879 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash
cd $(dirname $0)
python generate.py
if command -v lftp &> /dev/null
then
    if [ -z ${LIGA_BOARDS_FTP_ENABLED+x} ]
    then
        :
    else
        lftp << EOF
             open -u ${LIGA_FTP_USER},${LIGA_FTP_PASS} ${LIGA_FTP_HOST}
             mirror -R output/ ${LIGA_BOARDS_FTP_PATH} --exclude-glob .*
EOF
    fi
fi