Overview
Comment:mise à jour du script de création de release
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 0258a53a21483652302ec0fab049b138b202bde0
User & Date: bohwaz on 2015-01-03 00:20:32
Other Links: manifest | tags
Context
2015-01-03
19:49
Fix bugs changements PSR-0 check-in: 67896fe9ae user: bohwaz tags: trunk, stable
00:20
mise à jour du script de création de release check-in: 0258a53a21 user: bohwaz tags: trunk
00:00
version stable check-in: 6d12c73cd2 user: bohwaz tags: trunk, stable
Changes

Modified tools/make_release.sh from [d75461017d] to [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}