Projects : yrc : yrc_input_fixes

yrc/release.sh

Dir - Raw

1#!/bin/sh
2set -e
3FILES="
4NEWS
5README.txt
6manual.txt
7setup.py
8pylintrc
9codemap.txt
10yrc
11yterm.py
12yrc.py
13yrc2local
14"
15VER=`python2.7 -c 'import yrc; print int(yrc.__version__.split()[0])'`
16ROOT=yrc-$VER
17rm -rf dist/$ROOT
18mkdir -p dist/$ROOT
19cp -p $FILES dist/$ROOT
20cd dist
21# determinism options for GNU tar
22#tar --owner=root --group=root -cf - `for f in $FILES; do echo $ROOT/$f; done` | gzip > $ROOT.tar.gz
23# and for Gales BusyBox tar
24tar --sterilize -cf - `for f in $FILES; do echo $ROOT/$f; done` | gzip > $ROOT.tar.gz
25rm -rf $ROOT