File: create-windows-zip

package info (click to toggle)
xaos 4.3.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 14,528 kB
  • sloc: cpp: 24,154; ansic: 2,936; sh: 303; xml: 146; python: 39; makefile: 3
file content (29 lines) | stat: -rwxr-xr-x 683 bytes parent folder | download
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
26
27
28
29
#!/bin/bash

set -e

# This script creates a zip bundle for the Windows version.
# It is assumed that the script deploy-win.bat has already been run.

which zip >/dev/null || {
 echo "Please install zip first"
 exit 1
 }

test -x ../installer/packages/net.sourceforge.xaos/data || {
 echo "Run deploy-win.bat first."
 exit 2
 }

test -r ../src/include/config.h || {
 echo "Please run this script from the \"tools/\" folder."
 exit 3
 }

XAOS_VERSION=`cat ../src/include/config.h | grep XaoS_VERSION | awk '{print $3}' | tr -d \"`

mkdir xaos-$XAOS_VERSION

cp -a ../installer/packages/net.sourceforge.xaos/data/* xaos-$XAOS_VERSION

zip -9r xaos-$XAOS_VERSION.zip xaos-$XAOS_VERSION