aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoriceyrazor <iceyrazor@mailfence.com>2026-09-28 19:30:33 -0500
committericeyrazor <iceyrazor@mailfence.com>2026-09-28 19:30:33 -0500
commitba6e043c28cebf8138974a29b03974963d99b123 (patch)
treee74798d4565a4a090247643012c5735c520f4d5c
parentb0eef38989c7ab4fece2c654daaaf82eb916406a (diff)
removed get-libs.sh. using submodules now
-rw-r--r--.gitignore1
-rw-r--r--.gitmodules3
-rw-r--r--README.md5
-rwxr-xr-xbuild.sh4
-rwxr-xr-xget-libs.sh2
-rwxr-xr-xget-reqs.sh2
m---------libs/tinyosc0
7 files changed, 9 insertions, 8 deletions
diff --git a/.gitignore b/.gitignore
index b47d68b..3d81b6a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,2 @@
bin/**
-tinyosc/
src/config.c
diff --git a/.gitmodules b/.gitmodules
new file mode 100644
index 0000000..61af03f
--- /dev/null
+++ b/.gitmodules
@@ -0,0 +1,3 @@
+[submodule "libs/tinyosc"]
+ path = libs/tinyosc
+ url = https://github.com/mhroth/tinyosc.git
diff --git a/README.md b/README.md
index 9c993c0..4bdb8d1 100644
--- a/README.md
+++ b/README.md
@@ -13,7 +13,10 @@ This is made for me so its complicated to use.
# Installation / Setup
-- run ``getreqs.sh`` or download tinyosc and put it in this directory.
+- run
+ - ``git clone --recursive repo`` or.
+ - ``git submodule init`` then ``git submodule update`` or
+ - download tinyosc and put it in libs.
- run ``build.sh`` once or ``cp src/config.def.c src/config.c``.
- edit ``src/config.c`` to your liking.
- run ``build.sh``.
diff --git a/build.sh b/build.sh
index f90f790..d5bae99 100755
--- a/build.sh
+++ b/build.sh
@@ -1,9 +1,9 @@
#!/bin/sh
DEBUG=""
-LIB="-I tinyosc"
+LIB="-I libs/tinyosc"
-[ ! -d "bin" ] && mkdir bin
+mkdir -p bin
while getopts "d" opt; do
case "$opt" in
diff --git a/get-libs.sh b/get-libs.sh
deleted file mode 100755
index b7734e6..0000000
--- a/get-libs.sh
+++ /dev/null
@@ -1,2 +0,0 @@
-#!/bin/sh
-git clone --depth 1 --revision 7acc37ad4ea555c1ab8b89c4e94eac84e6af8d3a https://github.com/mhroth/tinyosc.git \ No newline at end of file
diff --git a/get-reqs.sh b/get-reqs.sh
deleted file mode 100755
index b7734e6..0000000
--- a/get-reqs.sh
+++ /dev/null
@@ -1,2 +0,0 @@
-#!/bin/sh
-git clone --depth 1 --revision 7acc37ad4ea555c1ab8b89c4e94eac84e6af8d3a https://github.com/mhroth/tinyosc.git \ No newline at end of file
diff --git a/libs/tinyosc b/libs/tinyosc
new file mode 160000
+Subproject 7acc37ad4ea555c1ab8b89c4e94eac84e6af8d3