~ubuntu-branches/ubuntu/wily/tdiary/wily

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Daigo Moriwaki
  • Date: 2011-04-11 21:53:16 UTC
  • mfrom: (1.2.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20110411215316-ih4gt4q8p29d2wf8
Tags: 3.0.1-1
* New upstream release (Closes: #542801, #594947)
* debian/control:
 - Bumped up Standards-Version to 3.9.1.
 - Updated version dependency.
* debian/tdiary-setup.rb: Followed the upstream changes, incorporating js and
  index.fcgi

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
        #  TODO
44
44
        rm -f tdiary/wiki_style.rb
45
45
        #  
46
 
        install -m 755 index.rb update.rb $(TDIARY)/
 
46
        install -m 755 index.rb index.fcgi update.rb $(TDIARY)/
47
47
        install -m 644 tdiary.rb ChangeLog dot.htaccess README tdiary.conf.sample $(TDIARY)/
48
 
        cp -a misc skel plugin tdiary $(TDIARY)/
 
48
        cp -a js misc skel spec plugin tdiary $(TDIARY)/
49
49
        cp -a contrib2 $(TDIARY)/contrib
50
50
        mv $(TDIARY)/misc/plugin/trackback/tb.rb $(TDIARY)/
51
51
 
52
52
        # - copy themes into the web directory
53
53
        install -m 755 theme/themebench.rhtml $(BUILDROOT)/usr/lib/cgi-bin/tdiary/theme
54
54
        cp -ar theme $(WWW)
 
55
        find $(WWW) -name "*.png" -or -name "*.jpg" -or -name "*.css" | xargs chmod a-x 
55
56
        rm -r  $(WWW)/theme/themebench.rhtml
 
57
        for f in $(WWW)/theme/* ; do \
 
58
          if [ "$${f##*/}" = 'default' ] || \
 
59
             [ "$${f##*/}" = 'README' ] || \
 
60
             [ "$${f##*/}" = 'base.css' ]; then \
 
61
            continue ; \
 
62
          fi ; \
 
63
          dh_movefiles -ptdiary-theme --sourcedir=debian/tdiary -X.svn \
 
64
                       "usr/share/tdiary/theme/$${f##*/}" ; \
 
65
        done
56
66
 
57
67
        # - debian original scripts
58
68
        cp -ar debian/debian-tools $(TDIARY)/
72
82
        chmod a+x $(TDIARY)/contrib/util/clean-spam/tdiary-referer-clean
73
83
        chmod a+x $(TDIARY)/contrib/util/rast-search/rast-register.rb
74
84
        chmod a+x $(TDIARY)/contrib/util/rast-search/rast-search.rb
75
 
        chmod a+x $(TDIARY)/contrib/plugin/windex/windex.rb
76
85
 
77
86
        # --- Move files for tdiary-mode.deb ---
78
87
        mv $(TDIARY)/contrib/util/tdiary-mode/*.el \
79
88
          $(CURDIR)/debian/tdiary-mode/usr/share/emacs/site-lisp/tdiary-mode/
80
89
        
81
90
        # --- Move files for tdiary-{theme,plugin,contrib}.deb ---
82
 
        dh_movefiles --sourcedir=debian/tdiary
83
91
        find $(BUILDROOT) -type d -empty -print | xargs rm -rf
84
 
        for dir in tdiary tdiary-contrib tdiary-mode tdiary-plugin tdiary-theme ; do \
85
 
          find "`pwd`/debian/$$dir" -type d -name ".svn" -print | xargs rm -rf ; \
 
92
        dh_movefiles --sourcedir=debian/tdiary -X.svn 
 
93
        for d in tdiary tdiary-contrib tdiary-mode tdiary-theme tdiary-plugin ; do \
 
94
          find $(CURDIR)/debian/$$d -type d -name ".svn" | xargs rm -rf ; \
86
95
        done 
87
96
 
88
97
# Build architecture-independent files here.
99
108
#       dh_installinfo -i
100
109
        dh_installchangelogs ChangeLog
101
110
        dh_installchangelogs -ptdiary ChangeLog
102
 
        dh_installchangelogs -ptdiary-plugin misc/plugin/ChangeLog
 
111
        dh_installchangelogs -ptdiary-plugin misc/plugin/ChangeLog.DO_NOT_UPDATE
103
112
        dh_link -i
104
113
        dh_strip -i
105
114
        dh_compress -i