aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authoronefang2020-03-16 14:45:30 +1000
committeronefang2020-03-16 14:45:30 +1000
commit204a0ea6a57d82e485ea4fbad50d51892d0246fa (patch)
treef4e4577008cdd8423393e8e823c561535ba70ce7
parentAdd a bunch of test key bindings. (diff)
downloadopensim-SC_OLD-204a0ea6a57d82e485ea4fbad50d51892d0246fa.zip
opensim-SC_OLD-204a0ea6a57d82e485ea4fbad50d51892d0246fa.tar.gz
opensim-SC_OLD-204a0ea6a57d82e485ea4fbad50d51892d0246fa.tar.bz2
opensim-SC_OLD-204a0ea6a57d82e485ea4fbad50d51892d0246fa.tar.xz
Add a build script.
-rwxr-xr-xBuildIt.sh33
-rw-r--r--miniconfig12
-rw-r--r--src/git-sub-modules/README3
3 files changed, 48 insertions, 0 deletions
diff --git a/BuildIt.sh b/BuildIt.sh
new file mode 100755
index 0000000..fdcb747
--- /dev/null
+++ b/BuildIt.sh
@@ -0,0 +1,33 @@
1#!/bin/bash
2
3# Poor mans git sub modules / subtrees, coz otherwise it gets complex.
4if [ ! -d src/git-sub-modules/toybox ]; then
5 pushd src/git-sub-modules
6 git clone https://github.com/landley/toybox.git
7 popd
8else
9 pushd src/git-sub-modules/toybox
10 git pull
11 popd
12fi
13
14pushd src/git-sub-modules/toybox
15#git stash save
16#git pull
17#git stash pop
18popd
19
20mkdir -p build
21rm -fr build/toybox
22cp -r src/git-sub-modules/toybox build/
23ln -fs ../../../src/boxes build/toybox/toys/boxes
24ln -fs ../toys/boxes/handlekeys.c build/toybox/lib
25ln -fs ../toys/boxes/handlekeys.h build/toybox/lib
26
27pushd build/toybox >/dev/null
28make clean
29#make defconfig
30##make menuconfig
31make allnoconfig KCONFIG_ALLCONFIG=../../miniconfig || exit 1
32make || exit 1
33popd >/dev/null
diff --git a/miniconfig b/miniconfig
new file mode 100644
index 0000000..a8b01c4
--- /dev/null
+++ b/miniconfig
@@ -0,0 +1,12 @@
1CONFIG_BOXES=y
2CONFIG_HELP=y
3CONFIG_PS=y
4CONFIG_RM=y
5CONFIG_SH=y
6CONFIG_SU=y
7CONFIG_UUIDGEN=y
8CONFIG_TOYBOX_FREE=y
9CONFIG_TOYBOX_HELP=y
10CONFIG_TOYBOX_HELP_DASHDASH=y
11CONFIG_TOYBOX_I18N=y
12CONFIG_TOYBOX_SUID=y
diff --git a/src/git-sub-modules/README b/src/git-sub-modules/README
new file mode 100644
index 0000000..1cf4e1a
--- /dev/null
+++ b/src/git-sub-modules/README
@@ -0,0 +1,3 @@
1Put git sub modules here, and then add code to BuildIt.sh to move them to
2where they are needed, or link them. Poor man's git sub modules /
3subtrees, coz otherwise it gets complex.