~ubuntu-branches/ubuntu/vivid/symfony/vivid

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Martin Meredith
  • Date: 2008-07-26 19:27:27 UTC
  • Revision ID: james.westby@ubuntu.com-20080726192727-wq2ro5dc7ygam7o7
Tags: 1.0.17-3
Added Watch File now that upstream makes it possible to watch

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/make -f
 
2
 
 
3
export DH_OPTIONS
 
4
 
 
5
PEAR_LIB_DIR := $(shell pear config-get php_dir)
 
6
PEAR_DATA_DIR := $(shell pear config-get data_dir)
 
7
PEAR_DOC_DIR := $(shell pear config-get doc_dir)
 
8
 
 
9
configure:
 
10
 
 
11
build:
 
12
 
 
13
clean:
 
14
        dh_testdir
 
15
        dh_testroot
 
16
        dh_clean
 
17
 
 
18
install:
 
19
        dh_testdir
 
20
        dh_testroot
 
21
        dh_clean -k -i
 
22
        
 
23
        dh_install lib/* $(PEAR_LIB_DIR)/symfony/
 
24
        dh_install data/* $(PEAR_DATA_DIR)/symfony/
 
25
        dh_install doc/* $(PEAR_DOC_DIR)/symfony/
 
26
        
 
27
        rm -f ./debian/php5-symfony1.0/usr/share/php/docs/symfony/LICENSE
 
28
        rm -f ./debian/php5-symfony1.0/usr/share/php/symfony/vendor/propel-generator/LICENSE    
 
29
        
 
30
        # remove empty dirs
 
31
        -rmdir ./debian/php5-symfony1.0$(PEAR_DATA_DIR)/symfony/skeleton/app/app/lib/.sf
 
32
        -rmdir ./debian/php5-symfony1.0$(PEAR_DATA_DIR)/symfony/generator/sfPropelAdmin/default/skeleton/templates
 
33
        -rmdir ./debian/php5-symfony1.0$(PEAR_DATA_DIR)/symfony/generator/sfPropelAdmin/default/skeleton/validate
 
34
        -rmdir ./debian/php5-symfony1.0$(PEAR_DATA_DIR)/symfony/modules/default/config
 
35
 
 
36
        # stop lintian complaining about modes
 
37
        find -perm -a=x -type f | xargs chmod -c a-x 
 
38
 
 
39
        chmod a+x ./debian/php5-symfony1.0$(PEAR_DATA_DIR)/symfony/bin/create_sandbox.sh
 
40
        chmod a+x ./debian/php5-symfony1.0$(PEAR_DATA_DIR)/symfony/bin/symfony
 
41
        chmod a+x ./debian/php5-symfony1.0$(PEAR_LIB_DIR)/symfony/vendor/propel-generator/bin/propel-gen
 
42
        chmod a+x ./debian/php5-symfony1.0$(PEAR_LIB_DIR)/symfony/vendor/propel-generator/pear/pear-propel-gen
 
43
        chmod a+x ./debian/php5-symfony1.0$(PEAR_DATA_DIR)/symfony/skeleton/project/symfony
 
44
        
 
45
        -mkdir -p debian/php5-symfony1.0/usr/share/lintian/overrides
 
46
        install -o root -g root -m 644 debian/lintian debian/php5-symfony1.0/usr/share/lintian/overrides/php5-symfony1.0
 
47
 
 
48
 
 
49
binary-arch: build install
 
50
 
 
51
binary-indep: build install
 
52
        dh_testdir
 
53
        dh_testroot
 
54
        dh_installdocs
 
55
        dh_installchangelogs
 
56
        dh_link
 
57
        dh_compress
 
58
        dh_fixperms
 
59
        dh_makeshlibs
 
60
        dh_installdeb
 
61
        dh_shlibdeps
 
62
        dh_gencontrol
 
63
        dh_md5sums
 
64
        dh_builddeb
 
65
 
 
66
binary: binary-indep binary-arch
 
67
 
 
68
.PHONY: build clean binary binary-indep binary-arch install configure