From d7c470f15c88c9865be020d068ad2de4b006bb70 Mon Sep 17 00:00:00 2001 From: Kenneth Shaw Date: Sun, 12 Nov 2023 13:38:58 +0700 Subject: [PATCH] Removing most.sh --- most.sh | 67 --------------------------------------------------------- 1 file changed, 67 deletions(-) delete mode 100755 most.sh diff --git a/most.sh b/most.sh deleted file mode 100755 index 93364ee9478..00000000000 --- a/most.sh +++ /dev/null @@ -1,67 +0,0 @@ -#!/bin/bash - -# most.sh builds a development version of usql with "most" drivers. -# -# Options: -# -i go install instead of go build -# -m disable sqlite3 driver (no_sqlite3) and diasble CGO. -# causes moderncsqlite to register aliases for sqlite3. -# -v add -v to go build/install -# -x add -x to go build/install -# -t add build tag -# -# Usage: ./most.sh -i -t godror -v - -NAME=usql -VER="$(date +%y.%m.%d)-dev" - -PLATFORM=$(go env GOOS) - -CGO_ENABLED=1 -BUILDVERB=build -TAGS=() -SQLITE_TAGS=( - sqlite_app_armor - sqlite_fts5 - sqlite_introspect - sqlite_json1 - sqlite_math_functions - sqlite_stat4 - sqlite_userauth - sqlite_vtable -) -EXTRA=() - -case $PLATFORM in - darwin|linux) - TAGS+=(no_adodb) - ;; -esac - -OPTIND=1 -while getopts "imvxt:" opt; do -case "$opt" in - i) BUILDVERB=install ;; - m) CGO_ENABLED=0 SQLITE_TAGS=(no_sqlite3) ;; - v) EXTRA+=(-v) ;; - x) EXTRA+=(-x) ;; - t) TAGS+=($OPTARG) ;; -esac -done - -TAGS="most ${SQLITE_TAGS[@]} ${TAGS[@]}" -LDFLAGS=( - -s - -w - -X github.com/xo/usql/text.CommandName=$NAME - -X github.com/xo/usql/text.CommandVersion=$VER -) -LDFLAGS="${LDFLAGS[@]}" - -(set -x; - CGO_ENABLED=$CGO_ENABLED \ - go $BUILDVERB \ - -tags="$TAGS" \ - -ldflags="$LDFLAGS" \ - ${EXTRA[@]} -)