2017-11-09 19:57:21 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
VERSION=$1
|
|
|
|
DEST=${MESON_BUILD_ROOT}
|
|
|
|
DIST=$DEST/dist/$VERSION
|
|
|
|
|
|
|
|
|
|
|
|
cd "${MESON_SOURCE_ROOT}"
|
|
|
|
mkdir -p $DIST
|
|
|
|
|
|
|
|
# copying files
|
2017-12-06 01:12:08 +00:00
|
|
|
cp -rf fractal-gtk $DIST
|
2018-06-08 13:51:37 +00:00
|
|
|
cp -rf fractal-matrix-api $DIST
|
2017-11-09 19:57:21 +00:00
|
|
|
cp Cargo.toml $DIST
|
2018-03-22 09:41:10 +00:00
|
|
|
cp Cargo.lock $DIST
|
2017-11-09 19:57:21 +00:00
|
|
|
cp meson.build $DIST
|
|
|
|
cp fractal.doap $DIST
|
|
|
|
cp LICENSE.txt $DIST
|
|
|
|
cp README.md $DIST
|
|
|
|
cp -rf scripts $DIST
|
|
|
|
|
|
|
|
# cargo vendor
|
|
|
|
mkdir $DIST/.cargo
|
2018-03-19 07:36:11 +00:00
|
|
|
cargo vendor | sed 's/^directory = ".*"/directory = "vendor"/g' > $DIST/.cargo/config
|
2017-11-09 19:57:21 +00:00
|
|
|
cp -rf vendor $DIST/
|
|
|
|
|
|
|
|
# packaging
|
|
|
|
cd $DEST/dist
|
2017-12-13 12:56:16 +00:00
|
|
|
tar -cJvf $VERSION.tar.xz $VERSION
|