source: tt-tools/generer-archive.sh @ 6

Last change on this file since 6 was 6, checked in by guillaume, 16 years ago

Publication tt-ttols v0.1
Des outils pour le TwinTact

  • Property svn:executable set to *
File size: 1.4 KB
Line 
1#! /bin/sh
2
3source versions.sh
4
5archive_tools="release/tt-tools-${TT_TOOLS_VERSIONS}.tar.gz"
6archive_twint="release/tt-tools-${TT_TOOLS_VERSIONS}-on-tt.tar.gz"
7
8# Garde une copie des archives existantes
9[ -e "$archive_tools" ] && mv -vf  "$archive_tools" "$archive_tools.old"
10[ -e "$archive_twint" ] && mv -vf  "$archive_twint" "$archive_twint.old"
11
12# Récupére les derniers binaires compilés si disponibles
13for file in ${BUSYBOX_BAS}/busybox ${DROPBEAR_BAS}-tt/dropbearmulti
14do
15        [ ! -e "$file" ] && continue
16        bin="${file/.*\/}"
17        # Ne pas copier le binaire s'il n'est pas plus récent
18        [ "bin/$bin" -ot "$file" ] || continue
19        cp -vf $file bin
20done
21
22# Crée une archive pour les fichiers utiles à la cross-compilation
23tar czf "$archive_tools" compile-busybox.sh compile-dropbear.sh creer-patchs.sh \
24        dossiers-de-cross-compilation.sh generer-archive.sh versions.sh \
25        environnement-de-cross-compilation.sh telecharge.sh ChangeLog LisezMoi.txt \
26        patchs/${DROPBEAR_BAS}.patch patchs/${DROPBEAR_BAS}.clean.sh \
27        patchs/${BUSYBOX_BAS}.clean.sh patchs/${BUSYBOX_BAS}.config \
28        bin/twintact-udev udev/twintact.rules bin/synchro_net.sh \
29        && echo "Archive $archive_tools créée"
30
31# Crée une archive pour être directement téléchargée sur le twintact
32tar czf "$archive_twint" bin/dropbearmulti bin/busybox \
33        config/dropbear/shell.majtmp config/dropbear/motd.majtmp \
34        config/dropbear/authorized_keys.majtmp bin/maj-tt-tools.sh \
35        && echo "Archive $archive_twint créée"
Note: See TracBrowser for help on using the repository browser.