Differences From Artifact [d75461017d]:

To Artifact [82b1b36a6e]:


1
2
3
4
5
6






7
8
9
10


11

12

13

14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/sh

cd `dirname $0`
MY_PATH=$PWD
MY_DIR=`basename ${MY_PATH}`







MANIFEST_VERSION=`cat manifest.uuid | cut -c1-10`
VERSION=`cat VERSION`
DATE=`date +'%Y%m%d'`



cd `dirname ${MY_PATH}`



# FIXME TODO exclure des libs ce qui n'est pas utilisé par l'appli (démos, README, etc.)


tar cjvf "${MY_DIR}-${VERSION}-${MANIFEST_VERSION}-${DATE}.tar.bz2" --wildcards-match-slash \
    --exclude-vcs \
    --exclude '*/compiled/*' \
    --exclude '*.fossil' \
    --exclude '_FOSSIL_' \
    --exclude 'manifest' \
    --exclude '*.db' \
    --exclude '*.sqlite' \
    --exclude 'doc' \
    --exclude 'test*' \
    --exclude '*.sh' \
    --exclude 'squelettes/*' \
    --exclude 'www/elements/*' \
    ${MY_DIR}

cd ${MY_PATH}




|

>
>
>
>
>
>
|
<
|

>
>
|
>

>
|
>

|

|
<
<
<
|

|
|
|
|
|
|

|
1
2
3
4
5
6
7
8
9
10
11
12
13

14
15
16
17
18
19
20
21
22
23
24
25
26
27



28
29
30
31
32
33
34
35
36
37
#!/bin/sh

cd `dirname $0`
MY_PATH=$PWD
MY_DIR=`dirname ${MY_PATH}`

if [ ! -f "${MY_DIR}/src/VERSION" ]
then
    echo "${MY_DIR} n'est pas un répertoire de développement Garradin"
    exit 1
fi

#MANIFEST_VERSION=`cat manifest.uuid | cut -c1-10`

#DATE=`date +'%Y%m%d'`

VERSION=`cat ${MY_DIR}/src/VERSION`
TMPDIR=`mktemp -d`

cp -Lr ${MY_DIR}/src ${TMPDIR}/garradin-${VERSION} > /dev/null

cd ${TMPDIR}

mkdir ${TMPDIR}/garradin-${VERSION}/www/squelettes

tar cjvf "${MY_PATH}/garradin-${VERSION}.tar.bz2" --wildcards-match-slash \
    --exclude-vcs \
    --exclude '*/cache/compiled/*' \



    --exclude '*/cache/static/*' \
    --exclude '*.sqlite' \
    --exclude 'include/*/README' \
    --exclude 'include/*/COPYING' \
    --exclude '*.log' \
    --exclude 'plugins/*.gz' \
    --exclude 'config.local.php' \
    garradin-${VERSION}

rm -rf ${TMPDIR}