diff options
| author | adnano <me@adnano.co> | 2024-05-02 21:40:46 -0400 | 
|---|---|---|
| committer | adnano <me@adnano.co> | 2024-05-02 21:40:46 -0400 | 
| commit | 477c0419b4a06b286bf09405e44c5fdc36e44b2f (patch) | |
| tree | b469ab7dc8ef2cdc5c13cacdf4c24906a4f35b4c | |
| parent | 41e8599392a543a537f15447e20fd7bc8d8f2297 (diff) | |
| download | wmenu-477c0419b4a06b286bf09405e44c5fdc36e44b2f.tar.gz | |
Remove wmenu_run script
| -rw-r--r-- | meson.build | 2 | ||||
| -rwxr-xr-x | wmenu_run | 35 | 
2 files changed, 0 insertions, 37 deletions
diff --git a/meson.build b/meson.build index 552e1f8..6a745aa 100644 --- a/meson.build +++ b/meson.build @@ -33,8 +33,6 @@ rt = cc.find_library('rt')  subdir('protocols')  subdir('docs') -install_data('wmenu_run', install_dir: get_option('bindir')) -  executable(  	'wmenu',  	files( diff --git a/wmenu_run b/wmenu_run deleted file mode 100755 index b243b38..0000000 --- a/wmenu_run +++ /dev/null @@ -1,35 +0,0 @@ -#!/bin/sh - -cachedir="${XDG_CACHE_HOME:-"$HOME/.cache"}" -cache="$cachedir/wmenu_run" - -[ -d "$cachedir" ] || mkdir -p "$cachedir" - -uptodate() { -	[ -f "$cache" ] || return 1 -	IFS=: -	for path in $PATH; do -		# non-POSIX -		test "$path" -nt "$cache" && return 1 -	done -	return 0 -} - -bins() { -	IFS=: -	for path in $PATH; do -		for bin in "$path"/*; do -			[ -x "$bin" ] && echo "${bin##*/}" -		done -	done -} - -path() { -	if uptodate; then -		cat "$cache" -	else -		bins | sort -u | tee "$cache" -	fi -} - -path | wmenu "$@" | ${SHELL:-"/bin/sh"} &  | 
