diff options
| author | Raymaekers Luca <luca@spacehb.net> | 2025-11-03 23:25:05 +0100 |
|---|---|---|
| committer | Raymaekers Luca <luca@spacehb.net> | 2025-11-03 23:25:05 +0100 |
| commit | 4eb0e6ca3adea9f6139299316b0fac1f1369bd8e (patch) | |
| tree | bb75b8c92c7027ceebd0486241e29640c0a08059 /install_lib.sh | |
checkpoint
Diffstat (limited to 'install_lib.sh')
| -rwxr-xr-x | install_lib.sh | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/install_lib.sh b/install_lib.sh new file mode 100755 index 0000000..cf3fda3 --- /dev/null +++ b/install_lib.sh @@ -0,0 +1,17 @@ +#!/bin/sh + +CurrentDir="$(readlink -f ".")" + +ScriptDir="$(dirname "$(readlink -f "$0")")" +cd "$ScriptDir" + +Dir="$CurrentDir/${ScriptDir##*/}" +rm -rf "$Dir" +mkdir "$Dir" + +Files="$(find "$ScriptDir" -type f \( -iname '*.cpp' -o -iname '*.c' -o -iname '*.h' \))" + +for File in $Files +do + ln -sf "$File" "$Dir" +done |
