diff options
| author | Mohammad Reza Karimi <m.r.karimi.j@gmail.com> | 2026-01-29 11:40:03 -0500 |
|---|---|---|
| committer | Mohammad Reza Karimi <m.r.karimi.j@gmail.com> | 2026-01-29 11:40:03 -0500 |
| commit | ab7303e1d893f33e09dbc8493f9a9179a7a40a4a (patch) | |
| tree | aaa279dd2282ef48f4f684768ccb422e0dab30fe /paru/dot-local/bin/makepkg-smart | |
| parent | e2a70a92822b22633562e9695c300efec2b5cbeb (diff) | |
updates
Diffstat (limited to 'paru/dot-local/bin/makepkg-smart')
| -rwxr-xr-x | paru/dot-local/bin/makepkg-smart | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/paru/dot-local/bin/makepkg-smart b/paru/dot-local/bin/makepkg-smart index e231d25..ad4f314 100755 --- a/paru/dot-local/bin/makepkg-smart +++ b/paru/dot-local/bin/makepkg-smart @@ -1,13 +1,12 @@ #!/bin/bash -echo "==> makepkg-smart: got input "$@"" >&2 - DEFAULT_BUILDDIR="/tmp/makepkg" PERSIST_ROOT="$HOME/.cache/makepkg/build" KEEP_PKGS=" neovim-bundled-git +quickshell-git " pkgname_from_pkgbuild() @@ -31,6 +30,10 @@ for p in $KEEP_PKGS; do [ "$PKGNAME" = "$p" ] && KEEP=true && break done +BOLDGREEN='\e[1;32m' +NOCOLOR='\e[0m' +BOLD='\e[0;1m' + if $KEEP; then export BUILDDIR="$PERSIST_ROOT/$PKGNAME" mkdir -p "$BUILDDIR" @@ -43,7 +46,7 @@ if $KEEP; then export CCACHE_BASEDIR="$PWD" export CCACHE_SLOPPINESS="time_macros" - echo "==> makepkg-smart: using persistent BUILDDIR=$BUILDDIR with ccache" >&2 + echo -e "${BOLDGREEN}==>${NOCOLOR} ${BOLD}makepkg-smart:${NOCOLOR} using persistent BUILDDIR=$BUILDDIR with ccache" >&2 else export BUILDDIR="$DEFAULT_BUILDDIR" fi |
