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.
Create plugin interface for the rendering classes
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 31 mv birdfont birdfont-$version 32 33 rm -rf birdfont-$version/.git 34 rm -rf birdfont-$version/.gitignore 35 36 tar -cf birdfont-$version.tar birdfont-$version 37 38 gzip birdfont-$version.tar 39 40 rm -rf ../birdfont-$version.tar.gz 41 42 mv birdfont-$version.tar.gz ../ 43 44 # build it to make sure that everything was checked in 45 cd birdfont-$version && \ 46 ./configure && \ 47 ./scripts/linux_build.py && \ 48 gpg --output ../../birdfont-$version.tar.gz.sig --detach-sig ../../birdfont-$version.tar.gz && \ 49 cd .. && \ 50 rm -rf ../export/birdfont-$version 51