Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/do_it_all.sh
blob: c5240777abd6dac9b5a19c84d8145b0b423391d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
set -e

git_url="git://git.sugarlabs.org/write/mainline.git"


# Remove the upstream cloned-directory, if any.
if [ -d "activity" ]; then
	sudo rm -r activity
fi

# Clone a fresh copy of the upstream.
git clone "$git_url" activity

# Build the activity (to generate "generated" files such as locale files).
cd activity
python setup.py build

# Now, apply the AC patches.
git am ../patches/*.patch

# Finally, build the bundle (to be retrieved from "activity/dist").
python setup.py dist_xo