File: rules

package info (click to toggle)
php-horde-editor 2.0.4%2Bdebian0-8
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 188 kB
  • ctags: 15
  • sloc: xml: 1,054; php: 69; makefile: 18
file content (24 lines) | stat: -rwxr-xr-x 770 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/make -f
%:
	dh $@ --buildsystem=phppear --with phppear

check_stripped_ckeditor:
	@if [ -e Horde_Editor-*/js ]; then \
	      echo " *****************************************"; \
	      echo " **                                     **"; \
	      echo " **  tar contains embedded CKEditor!    **"; \
	      echo " **                                     **"; \
	      echo " *****************************************"; \
	      echo "This library should be stripped."; \
	      echo ""; \
	      exit 1; \
	fi

override_dh_prep: check_stripped_ckeditor
	dh_prep -O--buildsystem=phppear

override_dh_auto_configure:
	dh_auto_configure -O--buildsystem=phppear
	# Remove references to embedded CKEditor
	sed -i 's@^.*js/ckeditor.*$$@@' Horde_Editor-*/package.xml