blob: 30f740b97f8a1cb70ac09a7bfb059508bb3019ea (
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
|
#!/bin/sh
N=deckjs-bundle
W=$(basename $(dirname $(readlink -f $0)))
SCRATCH=/tmp
test -d /media/ramdisk && SCRATCH=/media/ramdisk
if test -d .git
then
pwd=$(pwd)
cd $SCRATCH
tmp=,,for-$N
rm -rf $tmp
git clone $pwd $tmp
tmp=$(pwd)/$tmp
cd -
rm -rf $N $N.zip
mkdir -p $N/deck.js
cp -t $N/deck.js -r $tmp/core/ $tmp/extensions/ $tmp/libs/ $tmp/samples/ $tmp/themes/ $tmp/modernizr.custom.js $tmp/jquery-1.7.2.min.js
cp -t $N $tmp/extensions/$W/README.txt $tmp/extensions/$W/presentation.html
cat $tmp/.git/refs/heads/master >> $N/README.txt
zip -r $N.zip $N
else
echo "This script is designed to be run from the root of the git repository"
fi
|