source: moodle/trunk/fuentes/debian/rules @ 136

Last change on this file since 136 was 136, checked in by mabarracus, 4 years ago

Ported code to xenial

  • Property svn:executable set to *
File size: 2.0 KB
Line 
1#!/usr/bin/make -f
2# debian/rules for Moodle package.
3# Copyright 2010 Tomasz Muras <tomasz@muras.eu>
4
5# Uncomment this to turn on verbose mode.
6export DH_VERBOSE=1
7
8export SHELL = /bin/bash
9
10VERSION := $(shell head -1 debian/changelog | sed 's/.*(//;s/).*//')
11UPSTREAM   := $(shell head -1 debian/changelog | sed 's/.*(//;s/-.?*).*//')
12MAINTAINER := $(shell grep ^Maintainer: debian/control | sed 's/^Maintainer: //')
13
14binary:
15        dh binary-indep --before dh_lintian
16        rm debian/moodle/usr/share/moodle/lib/yui/license.txt
17        rm debian/moodle/usr/share/moodle/lib/bennu/LICENSE.txt
18        rm debian/moodle/usr/share/moodle/lib/editor/atto/yui/src/rangy/js/license.txt
19        rm debian/moodle/usr/share/moodle/lib/editor/tinymce/tiny_mce/3.5.10/license.txt
20        rm debian/moodle/usr/share/moodle/lib/google/LICENSE
21        rm debian/moodle/usr/share/moodle/lib/minify/LICENSE.txt
22        rm debian/moodle/usr/share/moodle/lib/pear/HTTP/WebDAV/LICENSE
23        rm debian/moodle/usr/share/moodle/lib/markdown/License.md
24        rm debian/moodle/usr/share/moodle/lib/xhprof/LICENSE
25        rm debian/moodle/usr/share/moodle/lib/adodb/license.txt
26        rm debian/moodle/usr/share/moodle/lib/tcpdf/LICENSE.TXT
27        #remove unnecessary licence files
28        rm debian/moodle/usr/share/moodle/lib/pear/HTTP/WebDAV/COPYING
29        rm debian/moodle/usr/share/moodle/lib/tcpdf/fonts/freefont-20120503/COPYING
30       
31        #remove unnecessary files
32        rm debian/moodle/usr/share/moodle/filter/tex/*mimetex*
33        rm debian/moodle/usr/share/moodle/mod/chat/chatd.php
34        #pdflib is not used by core Moodle
35        ##bug lliurex: tcpdf is used when create task : http://mestreacasa.gva.es/web/lliurex/forums/message_boards/message/500012834020
36        ##rm -r debian/moodle/usr/share/moodle/lib/tcpdf
37       
38       
39        #fix permissions
40        find debian/moodle/usr -type f -exec chmod 644 {} \;
41        find debian/moodle/usr -type d -exec chmod 755 {} \;
42        chmod 755 debian/moodle/usr/share/moodle/admin/mailout-debugger.php
43        chmod 755 debian/moodle/usr/share/moodle/filter/algebra/algebra2tex.pl
44        chmod 755 debian/moodle/usr/share/moodle/admin/process_email.php
45       
46        dh binary-indep --remaining
47       
48%:
49        dh $@
Note: See TracBrowser for help on using the repository browser.