Rework ovo,owo,uwu scripts, to now compile the source code on launch.

This commit is contained in:
2026-01-09 17:57:55 +01:00
parent 68570786a3
commit 3e0f930958
6 changed files with 137 additions and 0 deletions

15
.local/bin/dvd Executable file
View File

@@ -0,0 +1,15 @@
#!/usr/bin/env bash
# Get the executable location, following xdg-state spec.
exe=$XDG_STATE_HOME
[ -z "$exe" ] && exe=$HOME/.local/state
exe+=/dvd
# Compile the executable
[ -x "$exe" ] || {
src="$(dirname "$0")/../share/dvd.c"
cc -s -std=gnu99 -Os -o "$exe" "$src"
}
# Continue executing the executable
exec -a "$(basename "$0")" "$exe" "$@"

Binary file not shown.

1
.local/bin/ovo Symbolic link
View File

@@ -0,0 +1 @@
dvd

Binary file not shown.

1
.local/bin/owo Symbolic link
View File

@@ -0,0 +1 @@
dvd

Binary file not shown.

1
.local/bin/uwu Symbolic link
View File

@@ -0,0 +1 @@
dvd