blob: adea0dd632d8635e7739b60c2592efeb1fa02436 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#!/bin/bash
cvsseed="devel.tgz"
seedurl="http://cvs.fedoraproject.org/webfiles/$cvsseed"
echo "Downloading $seedurl"
retcode=$(curl -s -w '%{http_code}' -O $seedurl)
if [ $? -ne 0 -o $retcode -ne 200 ]; then
echo "Failed to download $seedurl"
exit 1;
fi
cvsdir=$(basename $cvsseed .tgz)
if [ -d $cvsdir ]; then
echo "Removing existing cvs dir '$cvsdir'"
rm -rf $cvsdir
fi
echo "Extracting $cvsseed"
tar -xzf $cvsseed && rm -f $cvsseed
|