[Pkg-mono-devel] Building Mono 1.1.2
Tomasz Rybak
bogomips@post.pl
Thu, 18 Nov 2004 22:01:54 +0100
--=-9ywoI4mqNKZYLygEZQt1
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
I've written script building Mono.
Using it I was able to build Mono 1.1.2 and Xsp 1.0.4
under Debian's Mono 1.0.2.
I wasn't (yet) able to build Mcs 1.1.2:
1. patch from debian/patches is wrong and should be removed
2. there is conflict during building mcs-1.1.2 under mono 1.0.2;
I'll try to install Debian's mono, build mono-1.1.2, install
(upgrade 1.0.2 to 1.1.2) it, and then build mcs 1.1.2
--
Tomasz Rybak <bogomips@post.pl>
--=-9ywoI4mqNKZYLygEZQt1
Content-Disposition: attachment; filename=build.sh
Content-Type: application/x-shellscript; name=build.sh
Content-Transfer-Encoding: 7bit
#!/bin/sh
Server=svn://svn.debian.org/pkg-mono/
Directory=/trunk/
for Package in mono mcs xsp
do
# Get package name and version
cd tarballs/
FullName=`ls -1 $Package-*.tar* | head -n 1`
Version=`echo $FullName | sed -e "s/^$Package-//" | sed -e "s/\.tar.*\$//"`
Suffix=`echo $FullName | sed -e "s/^$Package-$Version//"`
# Rename to proper Debian way
ln $Package-$Version$Suffix ${Package}_$Version.orig$Suffix
# Get repository
cd ..
svn checkout $Server$Package$Directory $Package-$Version/
cd $Package-$Version/
# Check if versions match
if [ `head -n 1 debian/changelog | sed -e "s/^$Package[[:space:]]\+(//" | sed -e "s/-[[:digit:]]\+).*$//"` != "$Version" ]; then
mv debian/changelog debian/changelog.old
Date=`date -R`
Name="Tomasz Rybak"
Mail="bogomips@post.pl"
echo "$Package ($Version-1) unstable; urgency=low" >>debian/changelog
echo "" >>debian/changelog
echo " * New upstream release" >>debian/changelog
echo "" >>debian/changelog
echo " -- $Name <$Mail> $Date" >>debian/changelog
echo "" >>debian/changelog
cat debian/changelog.old >>debian/changelog
rm debian/changelog.old
chmod 640 debian/.svn/text-base/changelog.svn-base
cp debian/changelog debian/.svn/text-base/changelog.svn-base
chmod 440 debian/.svn/text-base/changelog.svn-base
fi
# Build
svn-buildpackage -us -uc -rfakeroot
cd ../
done
--=-9ywoI4mqNKZYLygEZQt1--