...
 
Commits (3)
#!/bin/bash
WORKDIR=$(dirname "$(readlink -f "$0")")
export PATH="${WORKDIR}"/usr/bin:$PATH
export LD_LIBRARY_PATH="${WORKDIR}/usr/lib:${LD_LIBRARY_PATH}"
TEXT_CONF=$(mktemp)
BINARY_CONF=$(mktemp)
CONFIG="dll \".so\"
module \"${WORKDIR}/usr/module/\"
include \"${WORKDIR}/usr/include/\"
maxstep 0
maxlocalstep 0
maxlevel 29666
maxmem 0
"
echo "$CONFIG" > "${TEXT_CONF}"
scriba -f ${BINARY_CONF} -k ${TEXT_CONF} 2>/dev/null
export SCRIBACONF="${BINARY_CONF}"
scriba $@
[[ -e "${TEXT_CONF}" ]] && rm "${TEXT_CONF}"
[[ -e "${BINARY_CONF}" ]] && rm "${BINARY_CONF}"
[Desktop Entry]
Type=Application
Name=sb64
Exec=scriba
Comment=ScriptBasic Programming Language
Icon=sb
Categories=Development;
Terminal=true
......@@ -18,7 +18,7 @@ The C compiler is 'gcc'
{#define cc=gcc -w}
{#define CcOptOutput/X=-o X}
{#define CcOptInput/X=X}
{#define CcOptCompile=-c -fpic}
{#define CcOptCompile=-c -fpic -fsigned-char}
{#define CcOptDefine/X=-DX}
{@comment }
......
#!/bin/bash
APT=$(which appimagetool)
[[ -z $APT ]] && echo "Missing appimagetool" && exit 1
DEST=$(mktemp -d)
if [[ -n $DEST ]];then
mkdir -p "$DEST"/usr/{bin,include,module,lib}
cp appimage_files/* "$DEST"
cp bin/exe/* "$DEST/usr/bin"
cp bin/lib/* "$DEST/usr/lib"
cp bin/mod/dll/* "$DEST/usr/module"
find extensions -name "*.bas" -exec cp {} "$DEST/usr/include" \;
"$APT" "$DEST" "$PWD/bin/sb.AppImage"
[[ -d "$DEST" ]] && rm -r "$DEST"
else
printf "\n**WARNING** Missing path to destination folder\n"
printf "\nUsage: $0 <FULL path to destination FOLDER>\n\n"
printf "Ex: ./mkdist.sh ~/Projects/sb\n\n"
fi
libcurl4-gnutls-dev
libiodbc2-dev
libmariadbclient-dev-compat
libncurses5-dev
libsqlite3-dev
libssl-dev