File: rules

package info (click to toggle)
debian-edu-artwork 2.10.5-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 23,616 kB
  • sloc: sh: 542; makefile: 319; xml: 100
file content (22 lines) | stat: -rwxr-xr-x 708 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
#!/usr/bin/make -f

include /usr/share/dpkg/pkg-info.mk

%:
	dh $@

override_dh_installchangelogs:
	# don't ship empty upstream ChangeLog:
	dh_installchangelogs -XNEWS -XChangeLog

override_dh_makeshlibs:
	dh_makeshlibs --no-scripts


new-upstream-version: clean
	mkdir -p $(DEB_SOURCE)-$(DEB_VERSION_UPSTREAM)/
	rsync -av --delete --exclude=debian/ --exclude=$(DEB_SOURCE)-$(DEB_VERSION_UPSTREAM)/ * \
	$(DEB_SOURCE)-$(DEB_VERSION_UPSTREAM)/
	find "$(DEB_SOURCE)-$(DEB_VERSION_UPSTREAM)" -xdev \( -type f -o -type l \) -print| sort \
	    | tar -cJaf "../$(DEB_SOURCE)_$(DEB_VERSION_UPSTREAM).orig.tar.xz" -T- --owner=root --group=root --mode=a+rX \
	    && $(RM) -r "$(DEB_SOURCE)-$(DEB_VERSION_UPSTREAM)"