blob: 86795b4485fcb77471f5aad0cb65bfe9dabd3caf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
#!/bin/bash
topdir=$(pwd)
today=$(date +%Y%m%d)
version=0.9.11
dir=uclibc-${version}-cvs${today}
mkdir -p ${topdir}/uclibc-tmp
cd ${topdir}/uclibc-tmp
if [ "$(whoami)" = "ds" ];then
export CVSROOT='ds@cvs.uclibc.org:/var/cvs'
else
export CVSROOT=':pserver:anonymous@cvs.uclibc.org:/var/cvs'
if ! grep -q '^.pserver.anonymous.cvs.uclibc.org..var.cvs' ~/.cvspass
then
echo "$CVSROOT" 'Ay=0=a%0bZ' >>~/.cvspass
fi
fi
cvs co -d ${dir} uClibc
cd ${topdir}/uclibc-tmp/${dir}/debian
echo "uclibc (${version}-cvs${today}-1) unstable; urgency=low" >changelog.tmp
echo >>changelog.tmp
echo " * This is an automatic snapshot of uClibc CVS" >>changelog.tmp
echo >>changelog.tmp
echo " -- David Schleef <ds@schleef.org> $(date -R)" >>changelog.tmp
echo >>changelog.tmp
cat changelog >>changelog.tmp
mv changelog.tmp changelog
cd ${topdir}/uclibc-tmp
tar -czf ../uclibc_${version}-cvs${today}.orig.tar.gz ${dir}
cd ${topdir}
rm -rf uclibc-tmp
|