build.sh 873 Bytes
Newer Older
Denis Bonnenfant's avatar
Denis Bonnenfant committed
1
2
#!/bin/bash

3
version="4.4."
Denis Bonnenfant's avatar
Denis Bonnenfant committed
4
5
6
7
SSH="ssh -p 2222 root@deb.sambaedu.org"



Denis Bonnenfant's avatar
Denis Bonnenfant committed
8
9
10
11
12
13
14
15
16
17
if [ -z "$1" ]; then
	paquet="sambaedu-wpkg"
fi
debs="../${paquet}_${version}*.deb"
deb=$paquet
	
cd ../sources
rm -f $debs
dch -U -i ""
debuild -us -uc -b
Denis Bonnenfant's avatar
Denis Bonnenfant committed
18
19
$SSH "mkdir -p /root/tmpse4"
scp -P 2222 $debs root@deb.sambaedu.org:/root/tmpse4
Denis Bonnenfant's avatar
Denis Bonnenfant committed
20
$SSH "for deb in \$(ls /root/tmpse4/*.deb); do echo \"traitement de \$deb\"; reprepro -C se4XP -b /var/www/debian includedeb bullseye \$deb; done"
21
$SSH "for deb in \$(ls /root/tmpse4/*.deb); do echo \"traitement de \$deb\"; reprepro -C se4XP -b /var/www/debian includedeb buster \$deb; done"
Denis Bonnenfant's avatar
Denis Bonnenfant committed
22
#$SSH "for deb in \$(ls /root/tmpse4/*.deb); do echo \"traitement de \$deb\"; reprepro -C stable -b /var/www/debian includedeb buster \$deb; done"
Denis Bonnenfant's avatar
Denis Bonnenfant committed
23
24
$SSH "rm -fr /root/tmpse4"

Denis Bonnenfant's avatar
Denis Bonnenfant committed
25
#ssh root@admin.sambaedu3.maison "apt-get update && apt-get -y upgrade $deb"
Denis Bonnenfant's avatar
Denis Bonnenfant committed
26
27
cd ..
rm -f $paquet*