File: make_release.sh

package info (click to toggle)
gnome-recipes 2.0.4-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 25,288 kB
  • sloc: ansic: 33,936; xml: 241; makefile: 198; sh: 172; python: 26
file content (31 lines) | stat: -rwxr-xr-x 623 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
#!/bin/sh
test -n "$srcdir" || srcdir=$1
test -n "$srcdir" || srcdir=.

cd $srcdir

VERSION=$(git describe --abbrev=0)
NAME="gnome-recipes-$VERSION"

echo "Updating submodules…"
git submodule update --init

echo "Creating git tree archive…"
git archive --prefix="${NAME}/" --format=tar HEAD > main.tar

cd subprojects/libgd

git archive --prefix="${NAME}/subprojects/libgd/" --format=tar HEAD > libgd.tar

cd ../..

rm -f "${NAME}.tar"

tar -Af "${NAME}.tar" main.tar
tar -Af "${NAME}.tar" subprojects/libgd/libgd.tar

rm -f main.tar
rm -f subprojects/libgd/libgd.tar

echo "Compressing archive…"
xz -f "${NAME}.tar"