File: rules

package info (click to toggle)
awscli 2.23.6-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 147,792 kB
  • sloc: python: 189,234; xml: 14,924; makefile: 189; sh: 178; javascript: 4
file content (38 lines) | stat: -rwxr-xr-x 1,080 bytes parent folder | download | duplicates (4)
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
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/usr/bin/make -f
# See debhelper(7) (uncomment to enable)
# output every command that modifies files on the build system.
#export DH_VERBOSE = 1


export DH_VERBOSE=1
export PYBUILD_VERBOSE=1

%:
	dh $@ --with python3 --buildsystem=pybuild

override_dh_auto_test:

execute_after_dh_auto_install:
	echo "complete -C /usr/libexec/aws_completer aws" > \
		debian/awscli/usr/share/bash-completion/completions/aws
	install -m0644 debian/zsh.autocomplete \
	   debian/awscli/usr/share/zsh/vendor-completions/_aws
	mv debian/awscli/usr/bin/aws_completer debian/awscli/usr/libexec
	rm debian/awscli/usr/bin/aws.cmd \
	   debian/awscli/usr/bin/aws_bash_completer \
	   debian/awscli/usr/bin/aws_zsh_completer.sh
	find debian/awscli/usr/lib/*/dist-packages \
		-type f -exec chmod -x {} \;

execute_after_dh_python3:
	rm -rv debian/awscli/usr/lib/python3/dist-packages/awscli/botocore/.changes

execute_after_dh_auto_clean:
	rm -rf doc/source/aws_man_pages.json \
		doc/source/reference \
		doc/source/topic \
		doc/source/tutorial/services.rst \
		doc/build \
		.tox \
		.cache \
		dist