|
Revision 377, 0.7 kB
(checked in by enzo, 13 months ago)
|
|
QSlider and QProgressBar Jquery Controls
QEmailTextBox Control to manage emails
|
-
Property svn:executable set to
*
|
| Line | |
|---|
| 1 | #! /bin/bash |
|---|
| 2 | |
|---|
| 3 | #Copy current source to create the release |
|---|
| 4 | cp -r ../source ../releases/ |
|---|
| 5 | cd ../releases/source |
|---|
| 6 | |
|---|
| 7 | #Remove them all at once |
|---|
| 8 | find ./ -name .svn -print0 | xargs -0 rm -rf |
|---|
| 9 | |
|---|
| 10 | #Creating zip archive |
|---|
| 11 | echo "Creating a zip archive.." |
|---|
| 12 | #Format date |
|---|
| 13 | date=`date +%Y-%m-%d` |
|---|
| 14 | #Package variables |
|---|
| 15 | version=`cat install.php | grep "strVersion" | grep -oE '[0-9].[0-9]'` |
|---|
| 16 | platform=`cat install.php | grep "strPlatformVersion" | grep -oE '[0-9].[0-9]'` |
|---|
| 17 | package=`cat install.php | grep "strName" | grep -oE '\"[A-Za-z]*\"' | tr -s '"' '\0'` |
|---|
| 18 | |
|---|
| 19 | filename=$package"_"$version"_"$platform"_"$date".zip" |
|---|
| 20 | |
|---|
| 21 | zip -rq ../$filename ./* |
|---|
| 22 | cd .. |
|---|
| 23 | |
|---|
| 24 | rm -Rf source |
|---|
| 25 | |
|---|
| 26 | echo "" |
|---|
| 27 | echo "All done, saved as $filename" |
|---|
| 28 | echo "" |
|---|
| 29 | read |
|---|