root/plugins/QEmailTextBox/tools/make_package.sh

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
4cp -r ../source ../releases/
5cd ../releases/source
6
7#Remove them all at once
8find ./ -name .svn -print0 | xargs -0 rm -rf
9
10#Creating zip archive
11echo "Creating a zip archive.."
12#Format date
13date=`date +%Y-%m-%d`
14#Package variables
15version=`cat install.php  | grep "strVersion" | grep -oE '[0-9].[0-9]'`
16platform=`cat install.php  | grep "strPlatformVersion" | grep -oE '[0-9].[0-9]'`
17package=`cat install.php  | grep "strName" | grep -oE '\"[A-Za-z]*\"' | tr -s '"' '\0'`
18
19filename=$package"_"$version"_"$platform"_"$date".zip"
20
21zip -rq ../$filename ./*
22cd ..
23
24rm -Rf source
25
26echo ""
27echo "All done, saved as $filename"
28echo ""
29read
Note: See TracBrowser for help on using the browser.