Project

General

Profile

Statistics
| Revision:

root / trunk / build_component.sh @ 142

History | View | Annotate | Download (1019 Bytes)

1
#!/bin/bash
2
# ----------------------------------------------------------------------------
3
#
4
# Component Install Archive Builder
5
#
6
# This file is part of eXtplorer
7
#
8
# ----------------------------------------------------------------------------
9

    
10
# YOU MUST HAVE INSTALLED THE 4.x BETA VERSION OF p7zip (the command line version of 7-Zip for Unix/Linux).
11
# It's usually globally accessible (in the directory /usr/local/bin/)
12

    
13
DATE=$(date +%Y%m%d)
14
PATH='/home/soeren/Joomla/components/extplorer'
15
cd $PATH
16
SEVENZIP='/usr/bin/7za'
17
$SEVENZIP a -ttar -r $PATH/scripts.tar scripts
18
$SEVENZIP d -r $PATH/scripts.tar .svn/
19
$SEVENZIP a -tgzip $PATH/scripts.tar.gz $PATH/scripts.tar
20
/bin/rm $PATH/scripts.tar
21

    
22
$SEVENZIP a -tzip -r $PATH/com_extplorer.zip
23
$SEVENZIP d -r $PATH/com_extplorer.zip .svn/
24
$SEVENZIP d $PATH/com_extplorer.zip archive/ scripts/
25

    
26
$SEVENZIP d -r $PATH/com_extplorer.zip build_component.sh build_component.bat .project .projectOptions .cache preinstall.php README_PREINSTALL.txt
27

    
28
/bin/rm $PATH/scripts.tar.gz