Browse Source

feat: Initial commit

Matthias Ladkau 1 year ago
commit
14451091a2

+ 1 - 0
.gitignore

@@ -0,0 +1 @@
+/linux/

+ 21 - 0
bin/env-go

@@ -0,0 +1,21 @@
+#!/bin/bash
+
+if [ "$0" == "env-go" ]; then
+    PATH_SCRIPT="."
+else
+    PATH_SCRIPT=${0/%\/env-go}
+fi
+
+CURRENT_PATH=`pwd`
+cd $PATH_SCRIPT
+PATH_SCRIPT=`pwd`
+
+cd $PATH_SCRIPT
+. ./go.env
+cd $CURRENT_PATH
+
+if [ "$1" == "" ]; then
+    bash
+else
+    $*
+fi

+ 9 - 0
bin/go.env

@@ -0,0 +1,9 @@
+#!/bin/sh
+
+BIN_PATH=`pwd`
+
+export GOROOT=$BIN_PATH/../linux/go
+# export GOPATH= ??? - Deprecated in favor of modules (see blog post: https://blog.golang.org/modules2019)
+export LITEIDE=$BIN_PATH/../linux/liteide
+
+export PATH=$GOROOT/bin:$LITEIDE/bin:$BIN_PATH:$PATH

BIN
setup/mod/arm32/go/errcheck


BIN
setup/mod/arm32/go/golint


BIN
setup/mod/linux/go/errcheck


BIN
setup/mod/linux/go/golint


BIN
setup/pkg/arm32/go1.12.5.linux-armv6l.tar.gz


BIN
setup/pkg/arm32/liteidex36.arm32-qt5.5.1.tar.gz


BIN
setup/pkg/linux/go1.12.5.linux-amd64.tar.gz


BIN
setup/pkg/linux/liteidex36.linux64-qt5.5.1.tar.gz


+ 43 - 0
setup/setup-arm32.sh

@@ -0,0 +1,43 @@
+#!/bin/bash
+
+PATH_CURRENT=`pwd`
+SETUP_ENV_SCRIPT_NAME=setup-arm32.sh
+
+# Find out the path of the setup script
+
+if [ $0 == $SETUP_ENV_SCRIPT_NAME ]; then
+    PATH_SETUP_SH="."
+else
+    PATH_SETUP_SH=${0/%\/$SETUP_ENV_SCRIPT_NAME}
+fi
+
+cd $PATH_SETUP_SH/..
+
+# Root dir of env-go
+
+ROOT_PATH=`pwd`
+
+# Define the paths
+
+TARGET_PATH=$ROOT_PATH/linux
+SOURCE_PATH=$ROOT_PATH/setup/pkg/arm32
+MOD_PATH=$ROOT_PATH/setup/mod/arm32
+
+# Extract files in place
+
+rm -fR $TARGET_PATH
+mkdir -p $TARGET_PATH
+
+cd $TARGET_PATH
+for filename in $SOURCE_PATH/*; do
+    echo ${filename}
+    echo ${filename: -7}
+    if [ ${filename: -7} == ".tar.gz" ]; then
+        tar -xvzf ${filename}
+    fi
+done
+
+# Apply mods
+
+# Copy golint and errcheck into place
+cp $MOD_PATH/go/* $TARGET_PATH/go/bin

+ 43 - 0
setup/setup.sh

@@ -0,0 +1,43 @@
+#!/bin/bash
+
+PATH_CURRENT=`pwd`
+SETUP_ENV_SCRIPT_NAME=setup.sh
+
+# Find out the path of the setup script
+
+if [ $0 == $SETUP_ENV_SCRIPT_NAME ]; then
+    PATH_SETUP_SH="."
+else
+    PATH_SETUP_SH=${0/%\/$SETUP_ENV_SCRIPT_NAME}
+fi
+
+cd $PATH_SETUP_SH/..
+
+# Root dir of env-go
+
+ROOT_PATH=`pwd`
+
+# Define the paths
+
+TARGET_PATH=$ROOT_PATH/linux
+SOURCE_PATH=$ROOT_PATH/setup/pkg/linux
+MOD_PATH=$ROOT_PATH/setup/mod/linux
+
+# Extract files in place
+
+rm -fR $TARGET_PATH
+mkdir -p $TARGET_PATH
+
+cd $TARGET_PATH
+for filename in $SOURCE_PATH/*; do
+    echo ${filename}
+    echo ${filename: -7}
+    if [ ${filename: -7} == ".tar.gz" ]; then
+        tar -xvzf ${filename}
+    fi
+done
+
+# Apply mods
+
+# Copy golint and errcheck into place
+cp $MOD_PATH/go/* $TARGET_PATH/go/bin