Put the changelog and copyright files in the correct location

This commit is contained in:
Paul Chote
2011-04-17 11:45:54 +12:00
parent 561eda4ba9
commit a93ed12ce0
3 changed files with 9 additions and 4 deletions

View File

@@ -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

View File

@@ -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