diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2019-11-16 12:29:32 -0700 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2019-11-16 12:29:32 -0700 |
commit | a48b30a33d32c755bb1d0e575c48fed0bf04612f (patch) | |
tree | 16d0066b6a51735f742557837a3ee235d18c8384 /.bashrc | |
parent | 235fa05453e01b8e68de4f21a604d394d5977b96 (diff) | |
download | dotfiles-a48b30a33d32c755bb1d0e575c48fed0bf04612f.tar.gz |
add bindeb-pkg alias
Diffstat (limited to '.bashrc')
-rw-r--r-- | .bashrc | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -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 |