~ubuntu-branches/ubuntu/natty/spring/natty

« back to all changes in this revision

Viewing changes to installer/make_source_package.sh

  • Committer: Bazaar Package Importer
  • Author(s): Scott Ritchie
  • Date: 2010-09-23 18:56:03 UTC
  • mfrom: (3.1.9 experimental)
  • Revision ID: james.westby@ubuntu.com-20100923185603-st97s5chplo42y7w
Tags: 0.82.5.1+dfsg1-1ubuntu1
* Latest upstream version for online play
* debian/control: Replace (rather than conflict) spring-engine
  - spring-engine will be a dummy package (LP: #612905)
  - also set maintainer to MOTU

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/bin/sh
2
 
# Author: Tobi Vollebregt
3
2
 
4
3
# Quit on error.
5
4
set -e
6
5
 
 
6
ORIG_DIR=$(pwd)
 
7
 
7
8
# Sanity check.
8
9
if [ ! -x /usr/bin/git ]; then
9
 
        echo "Error: Couldn't find /usr/bin/git"
 
10
        echo "Error: Couldn't find /usr/bin/git" >&2
10
11
        exit 1
11
12
fi
12
13
 
14
15
# (Compatible with SConstruct, which is in trunk root)
15
16
 
16
17
while [ ! -d installer ]; do
17
 
        if [ "$PWD" = "/" ]; then
18
 
                echo "Error: Could not find installer directory."
19
 
                echo "Make sure to run this script from a directory below your checkout directory."
20
 
                exit 1
21
 
        fi
22
 
        cd ..
 
18
        if [ "$PWD" = "/" ]; then
 
19
                echo "Error: Could not find installer directory." >&2
 
20
                echo "Make sure to run this script from a directory below your checkout directory." >&2
 
21
                exit 1
 
22
        fi
 
23
        cd ..
23
24
done
24
25
 
25
26
set +e # turn of quit on error
40
41
        version_string=`git describe --tags | sed s/\-[^\-]*$//`
41
42
        branch="master"
42
43
fi
43
 
echo "Using $branch as source"
 
44
echo "Using ${branch} as source"
44
45
 
45
46
dir="spring_${version_string}"
46
47
 
47
48
# Each one of these that is set, is built when running this script.
48
49
# Linux archives
49
50
# * linux (LF) line endings
50
 
# * removed files needed for windows installer generation only
51
51
# * GPL compatible
52
52
lzma="spring_${version_string}_src.tar.lzma"
53
53
#tbz="spring_${version_string}_src.tar.bz2"
63
63
# (directories are included recursively)
64
64
include=" \
65
65
 $dir/AI/ \
66
 
 $dir/Documentation/ \
67
 
 $dir/Doxyfile \
68
 
 $dir/game/ \
 
66
 $dir/doc/ \
 
67
 $dir/cont/ \
 
68
 $dir/include/ \
69
69
 $dir/installer/ \
70
 
 $dir/LICENSE.html \
71
 
 $dir/README.* \
72
70
 $dir/rts/ \
73
71
 $dir/SConstruct \
74
72
 $dir/tools/SelectionEditor/ \
75
 
 $dir/CMakeLists.txt \
76
73
 $dir/tools/unitsync/ \
 
74
 $dir/tools/ArchiveMover/ \
77
75
 $dir/tools/DemoTool/ \
78
 
 $dir/tools/DedicatedServer/"
 
76
 $dir/tools/CMakeLists.txt \
 
77
 $dir/CMakeLists.txt \
 
78
 $dir/Doxyfile \
 
79
 $dir/directories.txt \
 
80
 $dir/README.markdown \
 
81
 $dir/LICENSE \
 
82
 $dir/LICENSE.html \
 
83
 $dir/THANKS \
 
84
 $dir/AUTHORS \
 
85
 $dir/FAQ \
 
86
 $dir/COPYING"
79
87
 
80
88
# On linux, win32 executables are useless.
81
89
exclude_from_all=""
82
 
linux_exclude="${exclude_from_all}
83
 
        ${dir}/installer/include/
84
 
        ${dir}/installer/sections/
85
 
        ${dir}/installer/graphics/
86
 
        ${dir}/installer/nsis_plugins/
87
 
        ${dir}/installer/*.exe
88
 
        ${dir}/installer/*.bat
89
 
        ${dir}/installer/*.nsi
90
 
        ${dir}/installer/*.nsh
91
 
        ${dir}/installer/make_installer.pl
92
 
        ${dir}/installer/make_luaui_nsh.py
93
 
        ${dir}/installer/springlobby_download.sh"
 
90
linux_exclude="${exclude_from_all}"
94
91
linux_include=""
95
92
windows_exclude="${exclude_from_all}"
96
93
windows_include=""
134
131
        rm -rf crlf
135
132
fi
136
133
 
137
 
cd ..
 
134
cd ${ORIG_DIR}