Subversion Repositories se3

Rev

Rev 4320 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4320 Rev 4322
Line 4... Line 4...
4
4
5
VERSION=$1
5
VERSION=$1
6
DISTRIB=$2
6
DISTRIB=$2
7
BRANCHE=$3
7
BRANCHE=$3
8
8
9
if [[ -z "$VERSION" ] -o [ -z "$DISTRIB" ] -o [ -z "$BRANCHE" ]];then
9
if ([ -z "$VERSION" ] || [ -z "$DISTRIB" ] || [ -z "$BRANCHE" ]); then
10
echo "$0 version, distrib, branche (stable ou xp)"
10
echo "$0 version, distrib, branche (stable ou xp)"
11
echo "ex : $0 1.20 lenny xp"
11
echo "ex : $0 1.20 lenny xp"
-
 
12
exit 1
12
fi
13
fi
13
14
14
15
15
[ "$BRANCHE" == "" -o "$BRANCHE" != "stable" ] && OPT="XP"
16
[ "$BRANCHE" == "" -o "$BRANCHE" != "stable" ] && OPT="XP"
16
17
Line 68... Line 69...
68
dos2unix var/cache/se3_install/scripts/*.pl
69
dos2unix var/cache/se3_install/scripts/*.pl
69
dos2unix var/cache/se3_install/sudoscripts/*.sh
70
dos2unix var/cache/se3_install/sudoscripts/*.sh
70
dos2unix var/cache/se3_install/sudoscripts/*.pl
71
dos2unix var/cache/se3_install/sudoscripts/*.pl
71
72
72
# tratement utf8 pour etch 
73
# tratement utf8 pour etch 
73
if [ "$DISTRIB" == "etch" ]; then
74
#if [ "$DISTRIB" == "etch" ]; then
74
        rm var/cache/se3_install/install_se3_lenny.sh
75
#       rm var/cache/se3_install/install_se3_lenny.sh
75
76
76
else
77
#else
77
        rm var/cache/se3_install/install_se3_etch.sh
78
#       rm var/cache/se3_install/install_se3_etch.sh
78
79
79
fi
80
#fi
80
81
81
echo "Modif vers utf8 pour etch / Lenny"
82
echo "Modif vers utf8 pour etch / Lenny"
82
recode latin9..utf8 var/cache/se3_install/scripts/*.sh
83
recode latin9..utf8 var/cache/se3_install/scripts/*.sh
83
recode latin9..utf8 var/cache/se3_install/sudoscripts/*.sh
84
recode latin9..utf8 var/cache/se3_install/sudoscripts/*.sh
84
recode latin9..utf8 var/cache/se3_install/*.sh
85
recode latin9..utf8 var/cache/se3_install/*.sh
Line 109... Line 110...
109
110
110
if [ "$DISTRIB" == "etch" ]; then
111
if [ "$DISTRIB" == "etch" ]; then
111
        scp -P 2222 se3_${VERSION}etch_i386.deb root@wawadeb:/var/ftp/debian/dists/etch/se3$OPT/binary-i386/net/
112
        scp -P 2222 se3_${VERSION}etch_i386.deb root@wawadeb:/var/ftp/debian/dists/etch/se3$OPT/binary-i386/net/
112
else
113
else
113
         scp -P 2222 se3_${VERSION}lenny_i386.deb root@wawadeb:/var/ftp/debian/dists/stable/se3$OPT/binary-i386/net/
114
         scp -P 2222 se3_${VERSION}lenny_i386.deb root@wawadeb:/var/ftp/debian/dists/stable/se3$OPT/binary-i386/net/
114
fi
-
 
115
115
fi
-
 
116