The Birdfont Source Code


All Repositories / birdfont.git / blob – RSS feed

release.sh in scripts

This file is a part of the Birdfont project.

Contributing

Send patches or pull requests to johan.mattsson.m@gmail.com.
Clone this repository: git clone https://github.com/johanmattssonm/birdfont.git

Revisions

View the latest version of scripts/release.sh.
Update readme
1 #!/bin/bash 2 # Copyright (C) 2012, 2013, 2014 Johan Mattsson 3 # 4 # This program is free software: you can redistribute it and/or modify 5 # it under the terms of the GNU General Public License as published by 6 # the Free Software Foundation, either version 3 of the License, or 7 # (at your option) any later version. 8 # 9 # This program is distributed in the hope that it will be useful, 10 # but WITHOUT ANY WARRANTY; without even the implied warranty of 11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 # GNU General Public License for more details. 13 # 14 # You should have received a copy of the GNU General Public License 15 # along with this program. If not, see <http://www.gnu.org/licenses/>. 16 17 rep="$(pwd)" 18 19 mkdir -p build 20 cd build 21 mkdir -p export 22 cd export 23 24 version=$(cat ../../scripts/version.py | grep "VERSION = '" | grep -v "SO_VERSION" | sed -e "s:VERSION = '::" | sed "s:'.*::g") 25 26 rm -rf birdfont-$version 27 28 git clone --depth 1 --no-hardlinks --local $rep 29 30 mv birdfont birdfont-$version 31 32 rm -rf birdfont-$version/.git 33 rm -rf birdfont-$version/.gitignore 34 35 tar -cf birdfont-$version.tar birdfont-$version 36 37 xz -z birdfont-$version.tar 38 39 rm -rf ../birdfont-$version.tar.xz 40 41 mv birdfont-$version.tar.xz ../ 42 43 # build it to make sure that everything was checked in 44 cd birdfont-$version && \ 45 ./configure && \ 46 ./scripts/linux_build.py && \ 47 gpg --output ../../birdfont-$version.tar.xz.sig --detach-sig ../../birdfont-$version.tar.xz && \ 48 cd .. && \ 49 rm -rf ../export/birdfont-$version 50