source: tt-tools/creer-patchs.sh @ 15

Last change on this file since 15 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: 858 bytes
Line 
1#! /bin/bash
2
3source versions.sh
4source environnement_de_cross_compilation.sh
5
6for a in $ARCHIVES
7do
8        eval bas="\${${a}_BAS}"
9       
10        if [ ! -d "$bas" ]; then
11                echo "Impossible de créer un patch si le dossier '$bas' n'existe pas"
12                exit 1
13        fi
14       
15        if [ ! -d "$bas-tt" ]; then
16                echo "Impossible de créer un patch pour $bas si le dossier '$bas-tt' n'existe pas"
17                echo "C'est ce dossier qui doit contenir la version modifiée de $bas"
18                echo
19                continue
20        fi
21       
22        if [ -e "patchs/$bas.patch" ]; then
23                echo "Sauvegarde du patch patchs/$bas.patch en patchs/$bas.patch.bak"
24                mv -vf patchs/$bas.patch patchs/$bas.patch.bak
25        fi
26       
27        if [ -e "patchs/$bas.clean.sh" ]; then
28                echo "Nettoyage de l'environnement de compilation $bas-tt"
29                cd $bas-tt
30                source "../patchs/$bas.clean.sh"
31                cd ..
32        fi
33       
34        #  --ignore-blank-lines ?
35        diff -Naurw $bas $bas-tt >patchs/$bas.patch
36done
Note: See TracBrowser for help on using the repository browser.