File: release.sh

package info (click to toggle)
rust-backdown 1.1.2-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 248 kB
  • sloc: sh: 40; makefile: 4
file content (23 lines) | stat: -rwxr-xr-x 737 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# build a new release of backdown
# This isn't used for normal compilation but for the building of the official releases
version=$(sed 's/version = "\([0-9.]\{1,\}\)"/\1/;t;d' Cargo.toml | head -1)

echo "Building release $version"

# make the build directory and compile for all targets
./compile-all-targets.sh

# add the readme and changelog in the build directory
echo "This is backdown. More info and installation instructions on https://github.com/Canop/backdown" > build/README.md
cp CHANGELOG.md build

# publish version number
echo "$version" > build/version

# prepare the release archive
rm backdown_*.zip
zip -r "backdown_$version.zip" build/*

# copy it to releases folder
mkdir releases
cp "backdown_$version.zip" releases