summaryrefslogtreecommitdiff
path: root/.bashrc
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2019-11-16 12:29:32 -0700
committerSean Whitton <spwhitton@spwhitton.name>2019-11-16 12:29:32 -0700
commita48b30a33d32c755bb1d0e575c48fed0bf04612f (patch)
tree16d0066b6a51735f742557837a3ee235d18c8384 /.bashrc
parent235fa05453e01b8e68de4f21a604d394d5977b96 (diff)
downloaddotfiles-a48b30a33d32c755bb1d0e575c48fed0bf04612f.tar.gz
add bindeb-pkg alias
Diffstat (limited to '.bashrc')
-rw-r--r--.bashrc13
1 files changed, 13 insertions, 0 deletions
diff --git a/.bashrc b/.bashrc
index 179052e5..8933d602 100644
--- a/.bashrc
+++ b/.bashrc
@@ -233,6 +233,19 @@ kill-remote-gpg () {
ssh -O exit "$1"
}
+# build debs from a Linux kernel source tree *without* calling `make clean`
+bindeb-pkg () {
+ ver="$(make kernelversion)"
+ date="$(date +%Y%m%d+%H%M)"
+ arch="$(dpkg --print-architecture)"
+ echo make -j$((2 * $(nproc))) bindeb-pkg \
+ LOCALVERSION=-spw \
+ KDEB_PKGVERSION=$ver-$date \
+ "$@"
+ echo "sudo apt-get install \
+../{linux-image,linux-headers,linux-libc-dev}-$ver-spw_$ver-${date}_$arch.deb"
+}
+
# --- host-specific aliases/functions
# ftp-master.debian.org