File: rules

package info (click to toggle)
tdiary-contrib 5.0.11-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 2,660 kB
  • sloc: ruby: 17,024; lisp: 546; xml: 451; php: 61; sql: 40; makefile: 18
file content (25 lines) | stat: -rwxr-xr-x 994 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/usr/bin/make -f

export TDIARY_DIR="$(CURDIR)/debian/tdiary-contrib/usr/share/tdiary"
export ELPA_NAME=tdiary-mode

%:
	dh $@ --buildsystem ruby --with ruby,elpa


override_dh_install:
	dh_install
	-find $(TDIARY_DIR) -name license.txt -exec rm {} +
	-for plugin in coderwall.rb select_style.rb ; \
	 do rm "$(TDIARY_DIR)/contrib/plugin/$$plugin"; done
	-rm "$(TDIARY_DIR)/contrib/js/yahoo_kousei.js"
	-rm "$(TDIARY_DIR)/contrib/util/image-gallery/js/SmoothGallery/scripts/mootools-1.2-more.js"
	-rm "$(TDIARY_DIR)/contrib/util/image-gallery/js/SmoothGallery/scripts/mootools-1.2.1-core-yc.js"

override_dh_fixperms:
	dh_fixperms
	## Those should be fixed in upstream...
	-for file in util/tdiary-grep/grep.rb plugin/git-register.rb plugin/windex.rb;\
	 do chmod 755 "$(TDIARY_DIR)/contrib/$$file"; done
	-for file in plugin/comment_pushbullet.rb io/dbi_io/dbi_io.rb style/hatena_style.rb io/dbi_io/README.ja io/dbi_io/tdiary_table.sql; \
	 do chmod 644 "$(TDIARY_DIR)/contrib/$$file"; done