50088c745af484fc816c04496beebc621b476ec5
3 # ============================================================================
4 # Copyright (C) THALES. All rights reserved
5 # Author: Laurent Mazet
7 # ============================================================================
12 PROGNAME
=$
(basename $0)
14 EXCLUDE
=/tmp
/$PROGNAME-exclude-$$
16 TMPLOG
=/tmp
/$PROGNAME-$$.log
22 echo "usage: $PROGNAME [-h] [-v]"
23 echo " -h: help message"
24 echo " -v: version message"
30 function title
() { echo -e "\033[0;1m$*\033[0;0m"; }
31 function pass
() { echo -e "\033[1;32m$*\033[0;0m"; }
32 function warn
() { echo -e "\033[1;33m$*\033[0;0m"; }
33 function fail
() { echo -e "\033[1;31m$*\033[0;0m"; }
38 { eval $@
; } >&$TMPLOG && pass OK ||
{ fail KO
; cat $TMPLOG; ERR
=yes; }
45 while [ $# -gt 0 ]; do
48 -v) echo "$PROGNAME: version $VER"; exit;;
49 *) echo "unknown argument ($1)"; exit 1;;
55 cat - <<EOF > $EXCLUDE
61 etc/udev/rules.d/70-persistent-net.rules
70 trc6500_list_patched_files.txt
80 var/cache/fontconfig/*
90 check
test -f $EXCLUDE
93 [ -f $IMAGE ] && check
rm -f $IMAGE
96 check
tar czf
$IMAGE --exclude-from $EXCLUDE .