2008-08-11 18:39:13 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
2010-07-05 06:17:08 +02:00
|
|
|
#Copyright 2008-2010 Steffen Schaumburg, Ray E. Barker
|
2008-08-11 18:39:13 +02:00
|
|
|
#This program is free software: you can redistribute it and/or modify
|
|
|
|
#it under the terms of the GNU Affero General Public License as published by
|
|
|
|
#the Free Software Foundation, version 3 of the License.
|
|
|
|
#
|
|
|
|
#This program is distributed in the hope that it will be useful,
|
|
|
|
#but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
#GNU General Public License for more details.
|
|
|
|
#
|
|
|
|
#You should have received a copy of the GNU Affero General Public License
|
|
|
|
#along with this program. If not, see <http://www.gnu.org/licenses/>.
|
2010-07-05 06:17:08 +02:00
|
|
|
#In the "official" distribution you can find the license in agpl-3.0.txt.
|
2008-08-11 18:39:13 +02:00
|
|
|
|
2009-06-06 19:39:39 +02:00
|
|
|
# This script prepares the compressed distribution files for
|
|
|
|
# uploading to sourceforge.
|
|
|
|
#
|
|
|
|
# Run from the root of your git repo (the folder that has .git in it)
|
|
|
|
|
|
|
|
# USAGE: $ utils/create-release.sh V
|
|
|
|
# where V is the current version. e.g. utils/create-release.sh 0.55
|
|
|
|
|
2009-01-31 04:57:34 +01:00
|
|
|
#get rid of extraneous stuff
|
2008-08-11 18:39:13 +02:00
|
|
|
rm regression-test/*.found.txt
|
|
|
|
rm regression-test/*.pyc
|
|
|
|
rm pyfpdb/*.pyc
|
2009-06-06 17:21:41 +02:00
|
|
|
rm pyfpdb/*~
|
|
|
|
rm pyfpdb/fpdb-error-log.txt
|
|
|
|
rm pyfpdb/HUD-error.txt
|
|
|
|
rm pyfpdb/hand-errors.txt
|
2008-08-11 18:39:13 +02:00
|
|
|
|
2009-01-31 04:57:34 +01:00
|
|
|
# make the fpdb_$1.zip file for windows
|
|
|
|
echo "*** making zip file"
|
|
|
|
zip -r ../fpdb_$1.zip docs
|
|
|
|
zip -r ../fpdb_$1.zip packaging
|
|
|
|
zip -r ../fpdb_$1.zip pyfpdb
|
|
|
|
|
|
|
|
# now make the fpdb_$1.tar.bz2 file for linux
|
|
|
|
echo "*** making tar.bz2 file"
|
|
|
|
tar --recursion -cjf ../fpdb_$1.tar.bz2 *
|
2008-09-16 04:14:59 +02:00
|
|
|
|
|
|
|
|