Commit 3cd65f82 authored by Sam Hocevar's avatar Sam Hocevar

* ./debian/woody-buildpackage: finished Woody build script.

parent 07a3355a
...@@ -278,7 +278,9 @@ binary-arch: build install ...@@ -278,7 +278,9 @@ binary-arch: build install
dh_installmenu dh_installmenu
dh_installman doc/vlc.1 -p vlc dh_installman doc/vlc.1 -p vlc
dh_installman doc/vlc-config.1 -p libvlc0-dev dh_installman doc/vlc-config.1 -p libvlc0-dev
dh_installchangelogs ChangeLog -p vlc # dh_installchangelogs ChangeLog -p vlc
cp ChangeLog debian/tmp/usr/share/doc/vlc/changelog
cp debian/changelog debian/tmp/usr/share/doc/vlc/changelog.Debian
dh_link dh_link
dh_strip dh_strip
dh_compress dh_compress
......
#! /bin/sh #! /bin/sh
# $Id: woody-buildpackage,v 1.1 2003/02/02 17:18:47 sam Exp $ # $Id: woody-buildpackage,v 1.2 2003/02/02 18:57:01 sam Exp $
# Build VLC for a Woody Debian system # Build VLC for a Woody Debian system
if test ! -d debian if test ! -d debian
...@@ -11,7 +11,7 @@ fi ...@@ -11,7 +11,7 @@ fi
# replace (1.2.3-4) with (1.2.3-0woody.4) # replace (1.2.3-4) with (1.2.3-0woody.4)
sed -e 's/^vlc (\([^)]*\)-\([^-)]*\))/vlc (\1-0woody.\2)/' \ sed -e 's/^vlc (\([^)]*\)-\([^-)]*\))/vlc (\1-0woody.\2)/' \
< debian/changelog >| debian/changelog.woody < debian/changelog > debian/changelog.woody
# replace liba52-*-dev with a52dec-dev (>=0.7.3) # replace liba52-*-dev with a52dec-dev (>=0.7.3)
# libdv*-dev with libdv-dev # libdv*-dev with libdv-dev
...@@ -20,14 +20,17 @@ sed -e 's/liba52-[^-]*-dev/a52dec-dev (>=0.7.3)/' \ ...@@ -20,14 +20,17 @@ sed -e 's/liba52-[^-]*-dev/a52dec-dev (>=0.7.3)/' \
-e 's/libdv[0-9]*-dev/libdv-dev/' \ -e 's/libdv[0-9]*-dev/libdv-dev/' \
-e 's/, libwx[^,]*//' \ -e 's/, libwx[^,]*//' \
-e '/Package: wxvlc/,/^ *$/d' \ -e '/Package: wxvlc/,/^ *$/d' \
< debian/control >| debian/control.woody < debian/control > debian/control.woody
# remove wxwindows stuff # remove wxwindows stuff, change changelog path
sed -e '/# Package: wxvlc/,/^ *$/d' \ sed -e '/# Package: wxvlc/,/^ *$/d' \
-e '/--enable-wxwindows/d' \ -e '/--enable-wxwindows/d' \
< debian/rules >| debian/rules.woody -e ', debian/changelog , debian/changelog.woody ,' \
-e '/dh_gencontrol[^#]*/& -- -ldebian/changelog.woody/' \
< debian/rules > debian/rules.woody
chmod a+x debian/rules.woody chmod a+x debian/rules.woody
# Environment variables - taken from dpkg-buildpackage
curd="`pwd`" curd="`pwd`"
dirn="`basename \"$curd\"`" dirn="`basename \"$curd\"`"
package="`dpkg-parsechangelog -ldebian/changelog.woody | sed -n 's/^Source: //p'`" package="`dpkg-parsechangelog -ldebian/changelog.woody | sed -n 's/^Source: //p'`"
...@@ -40,10 +43,11 @@ pv="${package}_${sversion}" ...@@ -40,10 +43,11 @@ pv="${package}_${sversion}"
pva="${package}_${sversion}_${arch}" pva="${package}_${sversion}_${arch}"
chg=../"$pva.changes" chg=../"$pva.changes"
dpkg-checkbuilddeps -B debian/control.woody # Do the real work
#dpkg-checkbuilddeps -B debian/control.woody || exit 1
fakeroot debian/rules.woody clean fakeroot debian/rules.woody clean
cd ..; dpkg-source -b "$dirn"; cd "$dirn" cd ..; dpkg-source -l"$dirn"/debian/changelog.woody -b "$dirn"; cd "$dirn"
debian/rules.woody build debian/rules.woody build
fakeroot debian/rules binary fakeroot debian/rules.woody binary
dpkg-genchanges -ldebian/changelog.woody -c debian/control.woody >"$chg" dpkg-genchanges -ldebian/changelog.woody -cdebian/control.woody >"$chg"
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment