2016-09-28 06:16:11 +00:00
|
|
|
#!/bin/sh
|
2017-04-28 10:35:46 +00:00
|
|
|
|
|
|
|
set -e
|
|
|
|
|
2017-03-27 09:04:16 +00:00
|
|
|
test -n "$srcdir" || srcdir=$1
|
2016-09-28 06:16:11 +00:00
|
|
|
test -n "$srcdir" || srcdir=.
|
|
|
|
|
|
|
|
cd $srcdir
|
|
|
|
|
|
|
|
VERSION=$(git describe --abbrev=0)
|
|
|
|
NAME="nautilus-$VERSION"
|
|
|
|
|
|
|
|
echo "Updating submodules…"
|
|
|
|
git submodule update --init
|
|
|
|
|
|
|
|
echo "Creating git tree archive…"
|
|
|
|
git archive --prefix="${NAME}/" --format=tar HEAD > nautilus.tar
|
|
|
|
|
2017-04-28 10:35:46 +00:00
|
|
|
cd subprojects/libgd
|
2016-09-28 06:16:11 +00:00
|
|
|
|
2017-04-28 10:35:46 +00:00
|
|
|
git archive --prefix="${NAME}/subprojects/libgd/" --format=tar HEAD > libgd.tar
|
2016-09-28 06:16:11 +00:00
|
|
|
|
2017-04-28 10:35:46 +00:00
|
|
|
cd ../..
|
2016-09-28 06:16:11 +00:00
|
|
|
|
|
|
|
rm -f "${NAME}.tar"
|
|
|
|
|
|
|
|
tar -Af "${NAME}.tar" nautilus.tar
|
2017-04-28 10:35:46 +00:00
|
|
|
tar -Af "${NAME}.tar" subprojects/libgd/libgd.tar
|
2016-09-28 06:16:11 +00:00
|
|
|
|
|
|
|
rm -f nautilus.tar
|
2017-04-28 10:35:46 +00:00
|
|
|
rm -f subprojects/libgd/libgd.tar
|
2016-09-28 06:16:11 +00:00
|
|
|
|
|
|
|
echo "Compressing archive…"
|
2017-04-28 10:35:46 +00:00
|
|
|
xz --verbose -f "${NAME}.tar"
|