Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/utils/platforms/xulrunner/post-commit
blob: 27744583f447a00c7d053e6aaa88922547e29fae (plain)
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
#!/bin/sh
# set -x
#
# An example hook script that is called after a successful
# commit is made.
#
# To enable this hook, make this file executable.

# getting branch name
ref=$(<.git/HEAD)
branch=${ref##ref: refs/heads/}

origin=$(pwd)
root=$origin; while [ ! -d "$root/.git" ]; do root="$root/.."; done

extensions="$root/platforms/xulrunner/extensions"
builds="$extensions/builds"

# making builds folder
mkdir -p $builds

# building narwzilla@narwhaljs.org
extension="$extensions/narwzilla@narwhaljs.org"
build="$builds/narwzilla@narwhaljs.org.xpi"
rm -f $build
cd $extension
zip -r $build chrome components modules defaults chrome.manifest install.rdf >/dev/null

# building narwzilla.platform@narwhaljs.org.xpi
extension="$extensions/narwhal@narwhaljs.org"
build="$builds/narwhal@narwhaljs.org.xpi"
rm -f $build
cd $extension
zip -r $build *.* chrome components defaults modules narwhal/*.* narwhal/lib narwhal/packages/jack narwhal/platforms/default narwhal/platforms/narwzilla/lib/ narwhal/platforms/narwzilla/*.* -x *.git/* >/dev/null

cd $origin