File: generate-license-file

package info (click to toggle)
texlive-doc 2012.20120611-1
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 250,664 kB
  • sloc: xml: 18,901; perl: 13,380; makefile: 931; lisp: 394; sh: 313; awk: 205; java: 159; sed: 4
file content (24 lines) | stat: -rw-r--r-- 551 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#
# generate-license-file
# $Id: generate-license-file 5210 2012-03-14 08:44:30Z preining $
# (c) 2006 Norbert Preining
#

pkg="$1"

if ! [ -r debian/$pkg ] ; then
  echo "please first call debian/rules install!"
  exit 1
fi

mkdir -p debian/$pkg/usr/share/doc/$pkg
cat debian/Licenses.header > debian/$pkg.Licenses.gen

if [ -r debian/$pkg.Licenses.add ] ; then
	cat debian/$pkg.Licenses.add >> debian/$pkg.Licenses.gen
fi

cat debian/Licenses.packages > debian/$pkg.Licenses.gen

mv debian/$pkg.Licenses.gen debian/$pkg/usr/share/doc/$pkg/Licenses