summaryrefslogtreecommitdiff
path: root/debian/mksnapshot
blob: 19d8a6b418348e3aca32933461912ca393148e69 (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
#!/bin/bash


topdir=$(pwd)
today=$(date +%Y%m%d)

mkdir -p ${topdir}/uclibc-tmp
cd ${topdir}/uclibc-tmp

export CVSROOT=':pserver:anonymous@cvs.uclinux.org:/var/cvs'
if ! grep -q '^.pserver.anonymous.cvs.uclinux.org..var.cvs' ~/.cvspass
then
	echo "$CVSROOT" 'Ay=0=a%0bZ' >>~/.cvspass
fi

cvs co uClibc

cd ${topdir}/uclibc-tmp/uClibc/debian
echo "uclibc (0.9.5-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
cat changelog >>changelog.tmp
mv changelog.tmp changelog

cd ${topdir}/uclibc-tmp
mv uClibc uclibc-0.9.5-cvs${today}
tar -czf ../uclibc-0.9.5-cvs${today}.tgz uclibc-0.9.5-cvs${today}


cd ${topdir}
rm -rf uclibc-tmp