summaryrefslogtreecommitdiff
path: root/.bash_defns
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2022-06-07 12:46:47 -0700
committerSean Whitton <spwhitton@spwhitton.name>2022-06-10 13:24:34 -0500
commita7da00e0b74b795bfb797883753b25c1ff116aa5 (patch)
treeee5b5973694148757f1d5b010d6f5e34625e8504 /.bash_defns
parent4002eb227c7cccff9fd7af45cc05ec7a0c63addc (diff)
downloaddotfiles-a7da00e0b74b795bfb797883753b25c1ff116aa5.tar.gz
replace eshell/package-plan-unpack with something synchronous
Also fix attempting to readlink(1) a non-symlink.
Diffstat (limited to '.bash_defns')
-rw-r--r--.bash_defns9
1 files changed, 1 insertions, 8 deletions
diff --git a/.bash_defns b/.bash_defns
index f0893b88..76a76097 100644
--- a/.bash_defns
+++ b/.bash_defns
@@ -47,14 +47,7 @@ export MAKEFLAGS="-j$((2 * $(nproc)))"
# --- more powerful aliases built with shell functions
package-plan-unpack () {
- package="$1"
- patches="$HOME/src/package-plan/patches/${package%-*}/${package##*-}"
- cd /tmp
- cabal unpack --pristine "$package"
- cd "$package"
- mkdir -p "$patches"
- ln -s "$patches" patches
- ls "$(readlink $patches)"
+ ~/src/dotfiles/scripts/debian/package-plan-unpack "$1"; cd "/tmp/$1"
}
# tidy up if I deleted files from stowed repos without properly