summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: fa3a8f9)
raw | patch | inline | side by side (parent: fa3a8f9)
author | Alexander Shiryaev <aixp@mail.ru> | |
Mon, 14 Nov 2016 03:52:20 +0000 (06:52 +0300) | ||
committer | Alexander Shiryaev <aixp@mail.ru> | |
Mon, 14 Nov 2016 03:52:20 +0000 (06:52 +0300) |
BlackBox/_FreeBSDLinuxOpenBSD_/run-BlackBox | [moved from BlackBox/_Linux_/run-BlackBox with 97% similarity] | patch | blob | history |
BlackBox/_FreeBSDLinuxOpenBSD_/run-BlackBox1 | [new file with mode: 0755] | patch | blob |
BlackBox/export | patch | blob | history | |
BlackBox/run-dev0 | patch | blob | history | |
BlackBox/switch-target | patch | blob | history |
similarity index 97%
rename from BlackBox/_Linux_/run-BlackBox
rename to BlackBox/_FreeBSDLinuxOpenBSD_/run-BlackBox
index d08d281cb8e4e6048fa1078161b1ce24c5e8babc..d905f27646c34d18c12d2dcdf6e1cb17023fb849 100755 (executable)
rename from BlackBox/_Linux_/run-BlackBox
rename to BlackBox/_FreeBSDLinuxOpenBSD_/run-BlackBox
index d08d281cb8e4e6048fa1078161b1ce24c5e8babc..d905f27646c34d18c12d2dcdf6e1cb17023fb849 100755 (executable)
export LIBOVERLAY_SCROLLBAR=0
# export LD_DEBUG=all
-env \
+exec env \
BB_PRIMARY_DIR="${pd}" BB_SECONDARY_DIR="${sd}" \
BB_PACKED_NAME="${lib}" \
"${pd}"/${loader} "${pd}"/${lib}
diff --git a/BlackBox/_FreeBSDLinuxOpenBSD_/run-BlackBox1 b/BlackBox/_FreeBSDLinuxOpenBSD_/run-BlackBox1
--- /dev/null
@@ -0,0 +1,21 @@
+#!/bin/sh
+
+# ulimit -s 32000
+# ulimit -a
+
+rn=`readlink -f "${0}"`
+pd=`dirname "${rn}"`
+sd=`readlink -f .`
+
+exe="BlackBox1.run"
+
+# fix Ubuntu-specific problems:
+unset UBUNTU_MENUPROXY
+unset GTK_MODULES
+export LIBOVERLAY_SCROLLBAR=0
+
+# export LD_DEBUG=all
+exec env \
+ BB_PRIMARY_DIR="${pd}" BB_SECONDARY_DIR="${sd}" \
+ BB_PACKED_NAME="${exe}" \
+ "${pd}"/${exe}
diff --git a/BlackBox/export b/BlackBox/export
index 7dbe714baa6b3694bd17f4becb7ee396499ea525..1c591a0ff5fa4e8ea0375afec4ce194a24199693 100755 (executable)
--- a/BlackBox/export
+++ b/BlackBox/export
outDir="${1}"
if [ ! -e "${outDir}" ]; then
mkdir "${outDir}"
- pax -r -w -L `ls -p | grep -E "^[A-Z].+\/$" | grep -v "^${outDir}\/$"` libBB.so loader run-BlackBox blackbox* BlackBox* "${outDir}"
+ pax -r -w -L -s ',^Lin/Mod/gen-.*,,' -s ',^Lin/Rsrc.*,,' `ls -p | grep -E "^[A-Z].+\/$" | grep -v "^${outDir}\/$"` libBB.so loader run-BlackBox BlackBox1.run run-BlackBox1 blackbox* BlackBox* "${outDir}"
else
echo "${outDir}: already exists"
exit 2
diff --git a/BlackBox/run-dev0 b/BlackBox/run-dev0
index 486e03636d0c140ad786d71b664338d1e3e63ba9..c32d608c1b9d9a4d348647efb49b73ed3d404542 100755 (executable)
--- a/BlackBox/run-dev0
+++ b/BlackBox/run-dev0
lib="libBB0.so"
# export LD_DEBUG=all
-env \
+exec env \
BB_PRIMARY_DIR="${pd}" BB_SECONDARY_DIR="${sd}" \
BB_PACKED_NAME="${lib}" \
"${pd}"/${loader} "${pd}"/${lib}
diff --git a/BlackBox/switch-target b/BlackBox/switch-target
index 92fbc9cb1d418dd43801f86940a08c2cff904fec..f94de7028a665ee2e303b75318e3f43c7df88534 100755 (executable)
--- a/BlackBox/switch-target
+++ b/BlackBox/switch-target
none() {
checkAndRm || exit 2
- rm -rf *.exe *.so loader
+ rm -rf *.exe *.so loader BlackBox1.run
# System/Code/Kernel.ocf System/Sym/Kernel.osf Code/Kernel.ocf Sym/Kernel.osf \
# System/Code/Init.ocf System/Sym/Init.osf Code/Init.ocf Sym/Init.osf \
# System/Code/Config.ocf System/Sym/Config.osf Code/Config.ocf Sym/Config.osf \