-
Notifications
You must be signed in to change notification settings - Fork 1
/
dotbash_apt
47 lines (43 loc) · 864 Bytes
/
dotbash_apt
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
39
40
41
42
43
44
45
46
47
#!/bin/bash
#
# Alexs .bashrc_apt
#
# Stuff useful when running on apt based systems
#
# Debian Stuff
#
export DEBFULLNAME='Alex Bennée'
export DEBEMAIL='[email protected]'
# This is typically set by "local" configs
export DEBKEYID=''
alias acs="apt-cache search"
# A simple wrapper for dpkg-buildpackage
function dpkg-build
{
# Sanity
if [ -d `pwd`/debian ]; then
CMD="dpkg-buildpackage -tc -rfakeroot"
if [ "${DEBKEYID}" != "" ]; then
CMD="${CMD} -k${DEBKEYID}"
fi
echo "Running $CMD";
$CMD
else
echo "Not in a Debian source tree"
fi
}
# Same again for git-buildpackage
function git-build
{
# Sanity
if [ -d `pwd`/debian ]; then
CMD="git-buildpackage -sa -tc -rfakeroot"
if [ "${DEBKEYID}" != "" ]; then
CMD="${CMD} -k${DEBKEYID}"
fi
echo "Running $CMD";
$CMD
else
echo "Not in a Debian source tree"
fi
}