From a93ed12ce0f40540f86b33a439686999877b2fa6 Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Sun, 17 Apr 2011 11:45:54 +1200 Subject: [PATCH] Put the changelog and copyright files in the correct location --- packaging/linux/deb/buildpackage.sh | 11 ++++++++--- packaging/linux/deb/{DEBIAN => }/changelog | 0 packaging/linux/deb/{DEBIAN => }/copyright | 2 +- 3 files changed, 9 insertions(+), 4 deletions(-) rename packaging/linux/deb/{DEBIAN => }/changelog (100%) rename packaging/linux/deb/{DEBIAN => }/copyright (96%) diff --git a/packaging/linux/deb/buildpackage.sh b/packaging/linux/deb/buildpackage.sh index 1e08cfb1a9..48117fafc3 100755 --- a/packaging/linux/deb/buildpackage.sh +++ b/packaging/linux/deb/buildpackage.sh @@ -22,10 +22,15 @@ cp -R $rootdir/usr root rm root/usr/share/openra/FreeSans.ttf rm root/usr/share/openra/FreeSansBold.ttf -# Create the control and changelog files from templates +# Put the copyright and changelog in /usr/share/doc/openra/ +mkdir -p root/usr/share/doc/openra/ +cp copyright root/usr/share/doc/openra/copyright +sed "s/{VERSION}/$VERSION/" changelog > root/usr/share/doc/openra/changelog +cat ./root/usr/share/openra/CHANGELOG >> root/usr/share/doc/openra/changelog + +# Create the control file sed "s/{VERSION}/$VERSION/" DEBIAN/control | sed "s/{SIZE}/$PACKAGE_SIZE/" > root/DEBIAN/control -sed "s/{VERSION}/$VERSION/" DEBIAN/changelog > root/DEBIAN/changelog -cat ./root/usr/share/openra/CHANGELOG >> root/DEBIAN/changelog + # Build it in the temp directory, but place the finished deb in our starting directory pushd root diff --git a/packaging/linux/deb/DEBIAN/changelog b/packaging/linux/deb/changelog similarity index 100% rename from packaging/linux/deb/DEBIAN/changelog rename to packaging/linux/deb/changelog diff --git a/packaging/linux/deb/DEBIAN/copyright b/packaging/linux/deb/copyright similarity index 96% rename from packaging/linux/deb/DEBIAN/copyright rename to packaging/linux/deb/copyright index bba4205a60..a2e30e619e 100644 --- a/packaging/linux/deb/DEBIAN/copyright +++ b/packaging/linux/deb/copyright @@ -1,6 +1,6 @@ Copyright 2007-2011 The OpenRA Developers (see /usr/share/openra/AUTHORS) OpenRA is free software. It is made available to you under the terms of -the GNU General Public License as published by the Free Software Foundation. +the GNU General Public License as published by the Free Software Foundation On Debian systems, the complete text of the GNU General Public License version 3 can be found in /usr/share/common-licenses/GPL-3