File: win_create_release.sh

package info (click to toggle)
pokerth 1.1.2-1
  • links: PTS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 57,920 kB
  • sloc: ansic: 83,615; cpp: 64,151; java: 3,135; xml: 596; sh: 221; makefile: 7
file content (24 lines) | stat: -rwxr-xr-x 961 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash
if [[ -n "$1" && -n "$2" ]] ; then

        rm -r ./PokerTH-$1*
        mkdir ./PokerTH-$1
        cp release/pokerth.exe ./PokerTH-$1/
        cp release/pokerth.exe .
        cp -R ./data ./PokerTH-$1/
        find ./PokerTH-$1/ -name ".svn" | xargs rm -Rf
        zip -r PokerTH-$1-windows.zip ./PokerTH-$1

        ~/bitrock-installbuilder/bin/builder build ~/slave/pokerth-release-win32/build/pokerth_bitrock_windows.xml windows

        mv ~/bitrock-installbuilder/output/PokerTH-$1-windows-installer.exe .
        scp PokerTH-$1-windows-installer.exe PokerTH-$1-windows.zip lotodore,pokerth@frs.sourceforge.net:/home/frs/project/p/po/pokerth/pokerth/$2/
        md5sum PokerTH-$1-windows-installer.exe
        rm PokerTH-$1-windows-installer.exe
        md5sum PokerTH-$1-windows.zip
        rm PokerTH-$1-windows.zip
        rm -r ./PokerTH-$1*
        rm pokerth.exe
else
echo "Please use 'win-create-release.sh version sf-dir-version'"
fi