mirror of https://gitee.com/bigwinds/arangodb
Fix shebangs in scripts so that they work on non-linuxey systems (#9254)
This commit is contained in:
parent
307880ffad
commit
422fd6057e
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
# we first count open sockets in total on the system:
|
# we first count open sockets in total on the system:
|
||||||
echo "open sockets: "
|
echo "open sockets: "
|
||||||
F="/tmp/$$_netstat.log"
|
F="/tmp/$$_netstat.log"
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
# To install the build libraries needed by this script run:
|
# To install the build libraries needed by this script run:
|
||||||
# `sudo apt-get install cmake libjemalloc-dev libssl-dev libreadline-dev`
|
# `sudo apt-get install cmake libjemalloc-dev libssl-dev libreadline-dev`
|
||||||
# After the packages are built you will find them in /var/tmp
|
# After the packages are built you will find them in /var/tmp
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
# To install the build libraries needed by this script run:
|
# To install the build libraries needed by this script run:
|
||||||
# `sudo apt-get install cmake libjemalloc-dev libssl-dev libreadline-dev`
|
# `sudo apt-get install cmake libjemalloc-dev libssl-dev libreadline-dev`
|
||||||
# After the packages are built you will find them in /var/tmp
|
# After the packages are built you will find them in /var/tmp
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
|
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
|
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
if [[ "$1" == "" ]]; then
|
if [[ "$1" == "" ]]; then
|
||||||
echo "usage $0 outfile"
|
echo "usage $0 outfile"
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
if [[ "$1" == "" ]]; then
|
if [[ "$1" == "" ]]; then
|
||||||
echo "usage $0 outfile"
|
echo "usage $0 outfile"
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
function help() {
|
function help() {
|
||||||
echo "USAGE: $0 [options]"
|
echo "USAGE: $0 [options]"
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
if [ "$*" == "" ] ; then
|
if [ "$*" == "" ] ; then
|
||||||
curl -Ls http://localhost:4001/_api/agency/read -d '[["/"]]' | jq .
|
curl -Ls http://localhost:4001/_api/agency/read -d '[["/"]]' | jq .
|
||||||
else
|
else
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
#
|
#
|
||||||
# This script runs the go-driver tests against an ArangoDB enterprise
|
# This script runs the go-driver tests against an ArangoDB enterprise
|
||||||
# docker image that has encryption turned on.
|
# docker image that has encryption turned on.
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
##python-setuptools
|
##python-setuptools
|
||||||
##
|
##
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
#
|
#
|
||||||
# Generate test data for maintenance unit tests
|
# Generate test data for maintenance unit tests
|
||||||
#
|
#
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
killall arangod
|
killall arangod
|
||||||
sleep 2
|
sleep 2
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
# limit memory useage for process
|
# limit memory useage for process
|
||||||
# using control groups https://en.wikipedia.org/wiki/Cgroups
|
# using control groups https://en.wikipedia.org/wiki/Cgroups
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
JSLINTOUT=/tmp/jslintout.$$
|
JSLINTOUT=/tmp/jslintout.$$
|
||||||
trap "rm -rf ${JSLINTOUT}" EXIT
|
trap "rm -rf ${JSLINTOUT}" EXIT
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# This requires the perf utility to be installed and the OS must be linux.
|
# This requires the perf utility to be installed and the OS must be linux.
|
||||||
# Compile with CMAKE_BUILD_TYPE=RelWithDebInfo in the subdirectory "build".
|
# Compile with CMAKE_BUILD_TYPE=RelWithDebInfo in the subdirectory "build".
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# This requires the perf utility to be installed and the OS must be linux.
|
# This requires the perf utility to be installed and the OS must be linux.
|
||||||
# Compile with CMAKE_BUILD_TYPE=RelWithDebInfo in the subdirectory "build".
|
# Compile with CMAKE_BUILD_TYPE=RelWithDebInfo in the subdirectory "build".
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
params=("$@")
|
params=("$@")
|
||||||
|
|
||||||
case $OSTYPE in
|
case $OSTYPE in
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
if [ -z "$XTERM" ] ; then
|
if [ -z "$XTERM" ] ; then
|
||||||
XTERM=x-terminal-emulator
|
XTERM=x-terminal-emulator
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
params=("$@")
|
params=("$@")
|
||||||
|
|
||||||
rm -rf active
|
rm -rf active
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
params=("$@")
|
params=("$@")
|
||||||
|
|
||||||
rm -rf cluster
|
rm -rf cluster
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
DOCKERIMAGE=arangodb/arangodb:3.0.0-p4
|
DOCKERIMAGE=arangodb/arangodb:3.0.0-p4
|
||||||
if [ -z "$XTERM" ] ; then
|
if [ -z "$XTERM" ] ; then
|
||||||
XTERM=x-terminal-emulator
|
XTERM=x-terminal-emulator
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
function help() {
|
function help() {
|
||||||
echo "USAGE: scripts/startStandAloneAgency.sh [options]"
|
echo "USAGE: scripts/startStandAloneAgency.sh [options]"
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
# Author Jan Christoph Uhde
|
# Author Jan Christoph Uhde
|
||||||
|
|
||||||
main(){
|
main(){
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
export PID=$$
|
export PID=$$
|
||||||
export GLIBCXX_FORCE_NEW=1
|
export GLIBCXX_FORCE_NEW=1
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
filename=arango-inspector.json
|
filename=arango-inspector.json
|
||||||
outdir=arango-inspector
|
outdir=arango-inspector
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
rm -f cppcheck.log cppcheck.tmp
|
rm -f cppcheck.log cppcheck.tmp
|
||||||
trap "rm -rf cppcheck.tmp" EXIT
|
trap "rm -rf cppcheck.tmp" EXIT
|
||||||
touch cppcheck.tmp
|
touch cppcheck.tmp
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
export PID=$$
|
export PID=$$
|
||||||
|
|
||||||
if test -n "$ORIGINAL_PATH"; then
|
if test -n "$ORIGINAL_PATH"; then
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
IN=${1:-README.md}
|
IN=${1:-README.md}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
exec python \
|
exec python \
|
||||||
`pwd`/utils/generateSwagger.py \
|
`pwd`/utils/generateSwagger.py \
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
if test "`git status --short | grep '^\(.[MAU]\|[MAU].\) .*js$' | wc -l`" -eq 0; then
|
if test "`git status --short | grep '^\(.[MAU]\|[MAU].\) .*js$' | wc -l`" -eq 0; then
|
||||||
exit 0;
|
exit 0;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
IN="$1"
|
IN="$1"
|
||||||
OUT="$2"
|
OUT="$2"
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
find arangod arangosh lib enterprise \
|
find arangod arangosh lib enterprise \
|
||||||
-name Zip -prune -o \
|
-name Zip -prune -o \
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
while read file; do
|
while read file; do
|
||||||
echo "$file: $1 -> $2"
|
echo "$file: $1 -> $2"
|
||||||
|
|
Loading…
Reference in New Issue