File: rules

package info (click to toggle)
easygit 1.7.5.2%2Bdebian1-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 664 kB
  • sloc: perl: 12,470; sh: 224; makefile: 10
file content (18 lines) | stat: -rwxr-xr-x 585 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/make -f
#export DH_VERBOSE = 1

%:
	dh $@ --with bash-completion

override_dh_clean:
	dh_clean
	# moves file back as in upstream source
	[ -f bash-completion-eg.sh ] || mv debian/easygit.bash-completion \
	 bash-completion-eg.sh && chmod +x bash-completion-eg.sh

override_dh_bash-completion:
	# moves the bash completion file to debian/ with the proper name and
	# fix file permission e.g. removes exec perm
	[ -f debian/easygit.bash-completion ] || mv bash-completion-eg.sh \
	 debian/easygit.bash-completion && chmod -x debian/easygit.bash-completion
	dh_bash-completion