Add quilt for Debian patches

This commit is contained in:
Anthony Rose 2021-03-16 08:26:44 +00:00
parent c5ee1f39df
commit e5b480b4bf
4 changed files with 26 additions and 2 deletions

View file

@ -28,6 +28,7 @@
- dh-make
- fakeroot
- pbuilder
- quilt
- name: Copy pbuilderrc
become: true
ansible.builtin.copy:

View file

@ -116,7 +116,8 @@ export PAPERSIZE=a4
export POWERSHELL_TELEMETRY_OPTOUT=1
export PYTHONWARNINGS=ignore::UserWarning
if test -x /usr/bin/tty; then
if test -x /usr/bin/tty
then
export GPG_TTY=$(tty)
fi
@ -128,7 +129,8 @@ bind '"\e[B": history-search-forward'
bind 'set bell-style none'
bind 'set completion-ignore-case on'
if test $(id -u) -eq 0; then
if test $(id -u) -eq 0
then
export PS1="\[\033[01;32m\]\u@\h\[\033[01;31m\]\#\[\033[00m\] "
else
export PS1="\[\033[01;32m\]\u@\h\[\033[01;34m\]\$\[\033[00m\] "
@ -141,6 +143,7 @@ alias aurmake="makepkg -irs"
alias btrdf="sudo btrfs filesystem usage"
alias cal="ncal -w"
alias df="df -x squashfs"
alias dquilt="quilt --quiltrc=\"${HOME}/.quiltrc-dpkg\""
alias ec="emacsclient -c"
alias en="emacsclient -nw"
alias f=fossil
@ -157,6 +160,11 @@ alias wgr=wordgrinder
alias ytmp3="youtube-dl -q -x --audio-format=mp3"
alias zlu="zypper list-updates"
if [ -f /usr/share/bash-completion/completions/quilt ]
then
complete -F _quilt_completion -o filenames dquilt
fi
# Alias vi to vim if it is installed.
if [ -x /usr/bin/vim ]
then

View file

@ -0,0 +1,11 @@
# Source: https://www.debian.org/doc/manuals/maint-guide/modify.en.html
d=. ; while [ ! -d $d/debian -a $(readlink -e $d) != / ]; do d=$d/..; done
if [ -d $d/debian ] && [ -z $QUILT_PATCHES ]; then
# if in Debian packaging tree with unset $QUILT_PATCHES
QUILT_PATCHES="debian/patches"
QUILT_PATCH_OPTS="--reject-format=unified"
QUILT_DIFF_ARGS="-p ab --no-timestamps --no-index --color=auto"
QUILT_REFRESH_ARGS="-p ab --no-timestamps --no-index"
QUILT_COLORS="diff_hdr=1;32:diff_add=1;34:diff_rem=1;31:diff_hunk=1;33:diff_ctx=35:diff_cctx=33"
if ! [ -d $d/debian/patches ]; then mkdir $d/debian/patches; fi
fi

View file

@ -41,3 +41,7 @@
ansible.builtin.copy:
src: gitconfig
dest: "{{ ansible_env.HOME }}/.gitconfig"
- name: Copy .quiltrc-dpkg
ansible.builtin.copy:
src: quiltrc-dpkg
dest: "{{ ansible_env.HOME }}/.quiltrc-dpkg"