File: makeDistributions

package info (click to toggle)
between 6%2Bdfsg1-2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 3,532 kB
  • sloc: cpp: 28,110; php: 718; ansic: 638; objc: 245; sh: 236; makefile: 97; perl: 67
file content (72 lines) | stat: -rwxr-xr-x 1,164 bytes parent folder | download | duplicates (3)
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
#!/bin/sh

#
# Modification History
#
# 2007-November-12   Jason Rohrer
# Copied from Cultivation build.
#


if [ $# -lt 2 ] ; then
   echo "Usage: $0 release_name unix_platform_name"
   exit 1
fi


rm -rf unix
rm -rf windows

mkdir windows
mkdir unix


# work on unix tree first
mkdir unix/Between
mkdir unix/Between/graphics
mkdir unix/Between/music
mkdir unix/Between/settings
mkdir unix/Between/languages


cp ../gameSource/graphics/*.tga unix/Between/graphics
cp ../gameSource/music/*.tga unix/Between/music
cp ../gameSource/settings/*.ini unix/Between/settings
cp ../gameSource/languages/*.txt unix/Between/languages
cp ../gameSource/language.txt unix/Between
cp ../documentation/Readme.txt unix/Between


# duplicate unix tree so far to make windows tree
cp -r unix/Between windows/

cp ../gameSource/Between unix/Between/

cp win32/Between.exe win32/*.dll windows/Between/

cd unix
tar cf "Between_$1_$2.tar" Between
gzip "Between_$1_$2.tar"


cd ..

g++ -o unix2dos unix2dos.c 
cp unix2dos windows
cp unix2dosScript windows


cd windows


for file in Between/languages/*.txt
do
	./unix2dosScript "$file"
done

zip -r "Between_$1_Windows.zip" Between