code stringlengths 1 1.96M | language stringclasses 1
value |
|---|---|
#!/bin/sh
#
set -e
export LANG=C
export LC_ALL=C
PROGDIR=$(dirname "$0")
PROGNAME=$(basename "$0")
panic () {
echo "ERROR: $@"
exit 1
}
VERBOSE=1
# Dump message is $VERBOSE >= $1
# $1+: message.
dump_n () {
local LOG_LEVEL=$1
shift
if [ "$VERBOSE" -ge "$LOG_LEVEL" ]; then
printf "%s\n" "$@"
fi
}
#... | Shell |
#!/bin/bash
#
# Copyright (C) 2010 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by a... | Shell |
#!/bin/sh
#
# CA - wrapper around ca to make it easier to use ... basically ca requires
# some setup stuff to be done before you can use it and this makes
# things easier between now and when Eric is convinced to fix it :-)
#
# CA -newca ... will setup the right stuff
# CA -newreq ... will generate a certific... | Shell |
#!/bin/bash
#
# Copyright (C) 2009 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by a... | Shell |
#!/bin/sh
#
# build using pthreads where it's already built into the system
#
/bin/rm -f mttest
gcc -DPTHREADS -I../../include -g mttest.c -o mttest -L../.. -lssl -lcrypto -lpthread
| Shell |
#!/bin/sh
#
# build using pthreads
#
# http://www.mit.edu:8001/people/proven/pthreads.html
#
/bin/rm -f mttest
pgcc -DPTHREADS -I../../include -g mttest.c -o mttest -L../.. -lssl -lcrypto
| Shell |
#!/bin/sh
/bin/rm -f mttest
cc -DSOLARIS -I../../include -g mttest.c -o mttest -L../.. -lthread -lssl -lcrypto -lnsl -lsocket
| Shell |
#!/bin/sh
/bin/rm -f mttest
cc -p -DSOLARIS -I../../include -g mttest.c -o mttest -L/usr/lib/libc -ldl -L../.. -lthread -lssl -lcrypto -lnsl -lsocket
| Shell |
#!/bin/sh
/bin/rm -f mttest
purify cc -DSOLARIS -I../../include -g mttest.c -o mttest -L../.. -lthread -lssl -lcrypto -lnsl -lsocket
| Shell |
#!/bin/bash
#
# Copyright (C) 2010 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by a... | Shell |
#!/bin/sh
if [ "$1" = "" ]; then
key=../apps/server.pem
else
key="$1"
fi
if [ "$2" = "" ]; then
cert=../apps/server.pem
else
cert="$2"
fi
ssltest="adb shell /system/bin/ssltest -key $key -cert $cert -c_key $key -c_cert $cert"
if adb shell /system/bin/openssl x509 -in $cert -text -noout | fgrep 'DSA Public Key... | Shell |
OPENVPN_PACKAGE_NAME="@PACKAGE_NAME@"
OPENVPN_PACKAGE_TARNAME="@PACKAGE_TARNAME@"
OPENVPN_PACKAGE_VERSION="@PACKAGE_VERSION@"
OPENVPN_PACKAGE_HOST="@host@"
| Shell |
#!@SHELL@
#
# run OpenVPN client against ``test reference'' server
# - check that ping, http, ... via tunnel works
# - check that interface config / routes are properly cleaned after test end
#
# prerequisites:
# - openvpn binary in current directory
# - writable current directory to create subdir for logs
# - t_client... | Shell |
#! /bin/sh
#
# t_cltsrv.sh - script to test OpenVPN's crypto loopback
# Copyright (C) 2005, 2006, 2008 Matthias Andree
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of th... | Shell |
#! /bin/sh
echo "${role}:${signal}" >&3
| Shell |
#! /bin/sh
#
# t_lpback.sh - script to test OpenVPN's crypto loopback
# Copyright (C) 2005 Matthias Andree
# Copyright (C) 2014 Steffan Karger
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation;... | Shell |
#!/bin/sh
# Sample script to perform OCSP queries with OpenSSL
# given a certificate serial number.
# If you run your own CA, you can set up a very simple
# OCSP server using the -port option to "openssl ocsp".
# Full documentation and examples:
# http://www.openssl.org/docs/apps/ocsp.html
# Edit the following val... | Shell |
#!/bin/sh
# Copyright (c) 2005-2010 OpenVPN Technologies, Inc.
# Licensed under the GPL version 2
# First version by Jesse Adelman
# someone at boldandbusted dink com
# http://www.boldandbusted.com/
# PURPOSE: This script automatically removes the /etc/resolv.conf entries previously
# set by the companion script "cl... | Shell |
#!/bin/sh
# Copyright (c) 2005-2010 OpenVPN Technologies, Inc.
# Licensed under the GPL version 2
# First version by Jesse Adelman
# someone at boldandbusted dink com
# http://www.boldandbusted.com/
# PURPOSE: This script automatically sets the proper /etc/resolv.conf entries
# as pulled down from an OpenVPN server.... | Shell |
#!/bin/sh
#
# Bring down vpn routing.
# calculate the network address
remote_network=`ipcalc -n "$remote"/"$remote_netmask_bits"`
remote_network="${remote_network#*=}"
# clear routing via VPN
ip route del "$remote_network"/"$remote_netmask_bits" via "$5" table vpn.out
ip route del table vpnonly.out via "$5"
iptabl... | Shell |
#!/bin/sh
#
# Bring up vpn routing.
# calculate the network address
remote_network=`ipcalc -n "$remote"/"$remote_netmask_bits"`
remote_network="${remote_network#*=}"
# add the stuff that doesn't change if it's not already there
grep -q '^202 ' /etc/iproute2/rt_tables
if [ "$?" -ne 0 ]
then
echo 202 vpn.out >> /e... | Shell |
#!/bin/sh
#
# openvpn This shell script takes care of starting and stopping
# openvpn on RedHat or other chkconfig-based system.
#
# chkconfig: 345 24 76
#
# description: OpenVPN is a robust and highly flexible tunneling application \
# that uses all of the encryption, authentication, a... | Shell |
#!/bin/sh
### BEGIN INIT INFO
# Provides: openvpn
# Required-Start: $network
# Required-Stop: $network
# Default-Start: 3 5
# Default-Stop: 0 1 2 6
# Short-Description: This shell script takes care of starting and stopping OpenVP... | Shell |
#!/bin/sh
#################################
# Set up Ethernet bridge on Linux
# Requires: bridge-utils
#################################
# Define Bridge Interface
br="br0"
# Define list of TAP interfaces to be bridged,
# for example tap="tap0 tap1 tap2".
tap="tap0"
# Define physical ethernet interface to be bridged... | Shell |
#!/bin/sh
####################################
# Tear Down Ethernet bridge on Linux
####################################
# Define Bridge Interface
br="br0"
# Define list of TAP interfaces to be bridged together
tap="tap0"
ifconfig $br down
brctl delbr $br
for t in $tap; do
openvpn --rmtun --dev $t
done
| Shell |
#!/bin/sh
#
# Build an OpenVPN plugin module on *nix. The argument should
# be the base name of the C source file (without the .c).
#
# This directory is where we will look for openvpn-plugin.h
CPPFLAGS="${CPPFLAGS:--I../../../include}"
CC="${CC:-gcc}"
CFLAGS="${CFLAGS:--O2 -Wall -g}"
$CC $CPPFLAGS $CFLAGS -fPIC -... | Shell |
#!/bin/sh
#
# Build an OpenVPN plugin module on *nix. The argument should
# be the base name of the C source file (without the .c).
#
# This directory is where we will look for openvpn-plugin.h
CPPFLAGS="${CPPFLAGS:--I../../..}"
CC="${CC:-gcc}"
CFLAGS="${CFLAGS:--O2 -Wall -g}"
$CC $CPPFLAGS $CFLAGS -fPIC -c $1.c &... | Shell |
#!/bin/sh
#
# Build an OpenVPN plugin module on *nix. The argument should
# be the base name of the C source file (without the .c).
#
# This directory is where we will look for openvpn-plugin.h
CPPFLAGS="${CPPFLAGS:--I../../../include}"
CC="${CC:-gcc}"
CFLAGS="${CFLAGS:--O2 -Wall -g}"
$CC $CPPFLAGS $CFLAGS -fPIC -... | Shell |
#!/bin/sh
# A Sample OpenVPN-aware firewall.
# eth0 is connected to the internet.
# eth1 is connected to a private subnet.
# Change this subnet to correspond to your private
# ethernet subnet. Home will use HOME_NET/24 and
# Office will use OFFICE_NET/24.
PRIVATE=10.0.0.0/24
# Loopback address
LOOP=127.0.0.1
# De... | Shell |
#!/bin/sh
# stop all openvpn processes
killall -TERM openvpn
| Shell |
#!/bin/sh
route add -net 10.0.0.0 netmask 255.255.255.0 gw $5
| Shell |
#!/bin/sh
# A sample OpenVPN startup script
# for Linux.
# openvpn config file directory
dir=/etc/openvpn
# load the firewall
$dir/firewall.sh
# load TUN/TAP kernel module
modprobe tun
# enable IP forwarding
echo 1 > /proc/sys/net/ipv4/ip_forward
# Invoke openvpn for each VPN tunnel
# in daemon mode. Alternative... | Shell |
#!/bin/sh
route add -net 10.0.1.0 netmask 255.255.255.0 gw $5
| Shell |
#!/bin/sh
#
# Run this script to set up a test CA, and test key-certificate pair for a
# server, and various clients.
#
# Copyright (C) 2014 Steffan Karger <steffan@karger.me>
set -eu
command -v openssl >/dev/null 2>&1 || { echo >&2 "Unable to find openssl. Please make sure openssl is installed and in your path."; exi... | Shell |
#! /bin/bash
# Binary of the Texturepacker:
TEXTUREPACKER_BINARY=/usr/local/bin/TexturePacker
# Shared Spritesheet-Output-Definitions:
SPRITESHEET_OUTPUT_DIRECTORY="../assets/gfx/spritesheets/"
SPRITESHEET_OUTPUT_JAVAIDS_PACKAGE="org.anddev.andengine.examples.spritesheets"
SPRITESHEET_OUTPUT_JAVAIDS_DIRECTORY="../src... | Shell |
#!/bin/bash
# Adjust these to reflect the location of NUnit in your system,
# and how you want NUnit to run
NUNIT=~/protobuf/NUnit-2.5.0.9122/bin/net-2.0/nunit-console.exe
NUNIT_OPTIONS=-noshadow
# The rest should be okay.
SRC=../src
LIB=../lib
KEYFILE=../keys/Google.ProtocolBuffers.snk
rm -rf bin
mkdir bin
# Runn... | Shell |
#!/bin/bash
echo Compiling protobufs
rm -rf tmp
mkdir tmp
PROTOS_DIR=../protos
./protoc --proto_path=$PROTOS_DIR --descriptor_set_out=tmp/compiled.pb \
$PROTOS_DIR/google/protobuf/descriptor.proto \
$PROTOS_DIR/google/protobuf/csharp_options.proto \
$PROTOS_DIR/google/protobuf/unittest.proto \
$PROTOS_DIR/goo... | Shell |
#!/bin/bash
echo "## Step 00: initialize"
(
if ! [ -d build ]; then
mkdir build
mkdir build/src
mkdir build/src/trunk
fi
)
fetch() {
(
cd src
if ! [ -f "${2}/.svn/entries" ]; then
mkdir "${2}"
cd "${2}"
svn co --non-interactive --trust-server-cert "${1}" "."
else
cd "${2}"
sv... | Shell |
#!/bin/bash
find org/jivesoftware -name '*.java' -exec sed -i 's:import org.xmlpull.mxp1.MXParser:import org.xmlpull.v1.XmlPullParserFactory:' '{}' ';'
find org/jivesoftware -name '*.java' -exec sed -i 's:new MXParser():XmlPullParserFactory.newInstance().newPullParser():g' '{}' ';'
| Shell |
#!/bin/bash
rm org/xbill/DNS/spi/DNSJavaNameServiceDescriptor.java
| Shell |
#!/bin/bash
rm -rf org/ietf/
rm -rf org/apache/harmony/auth
rm -rf org/apache/harmony/javax/security/auth/kerberos/
rm -rf org/apache/harmony/javax/security/auth/x500/
rm org/apache/harmony/javax/security/auth/Policy.java
| Shell |
#!/bin/bash
find -name '*.java' -exec sed -i 's:import org.apache.harmony.javax.security.sasl.Sasl;:import de.measite.smack.Sasl;:g' '{}' ';'
| Shell |
#!/bin/bash
find org/apache/harmony -name '*.java' -exec sed -i 's:import org.apache.harmony.auth.internal.nls.Messages;::' '{}' ';'
find org/apache/harmony -name '*.java' -exec sed -i 's:Messages.getString(\("[^"]*"\)):\1:g' '{}' ';'
| Shell |
#!/bin/bash
rm org/jivesoftware/smack/debugger/LiteDebugger.java
rm org/jivesoftware/smackx/debugger/EnhancedDebugger.java
rm org/jivesoftware/smackx/debugger/EnhancedDebuggerWindow.java
| Shell |
#!/bin/bash
mkdir -p org/apache/harmony/
mv javax org/apache/harmony/
find org/apache/harmony/ -name '*.java' -exec sed -i 's:package javax:package org.apache.harmony.javax:g' '{}' ';'
find -name '*.java' -exec sed -i 's:import javax.security.sasl:import org.apache.harmony.javax.security.sasl:g' '{}' ';'
find -name '*... | Shell |
#!/bin/bash
# 打开apache.http调试信息
adb shell setprop log.tag.org.apache.http VERBOSE
adb shell setprop log.tag.org.apache.http.wire VERBOSE
adb shell setprop log.tag.org.apache.http.headers VERBOSE
echo "Enable Debug"
| Shell |
#!/bin/bash
#
# Copyright 2010 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed ... | Shell |
#!/bin/bash
ps aux | sort -r -k 3 | head -n 15 > /tmp/psaux.txt
| Shell |
#!/bin/bash
ps aux | sort -r -k 3 | head -n 15 > /tmp/psaux.txt
| Shell |
#!/bin/bash
# 打开apache.http调试信息
adb shell setprop log.tag.org.apache.http VERBOSE
adb shell setprop log.tag.org.apache.http.wire VERBOSE
adb shell setprop log.tag.org.apache.http.headers VERBOSE
echo "Enable Debug"
| Shell |
#!/bin/bash
#
# Copyright 2010 Google Inc. All Rights Reserved.
# Author: jcgregorio@google.com (Joe Gregorio)
#
# Creates the documentation set for the library by
# running pydoc on all the files in apiclient.
#
# Notes: You may have to update the location of the
# App Engine library for your local system.
set... | Shell |
echo "The following files are missing or are not checked in:"
hg st
echo "Enter to continue"
read -e YES
echo "The following files are missing from the MANIFEST file:"
cat MANIFEST | sort > sorted-manifest.txt
hg st --clean| sed "s/^C //" | grep -v "^v3" > sorted-allfiles.txt
diff sorted-allfiles.txt sorted-manifest.tx... | Shell |
#!/bin/sh
installResources=`pwd`/Resources
scriptResources=$installResources/scripts
productFolder=/Developer/Cocotron/1.0
downloadFolder=$productFolder/Downloads
PREFIX=/Developer/Cocotron/1.0/Windows/i386/gcc-4.3.1/i386-mingw32msvc/
INCLUDE=$PREFIX/include
BIN=$PREFIX/bin
LIB=$PREFIX/lib
$scriptResources/downloadF... | Shell |
#!/bin/sh
installResources=`pwd`/Resources
scriptResources=$installResources/scripts
productFolder=/Developer/Cocotron/1.0
downloadFolder=$productFolder/Downloads
PREFIX=/Developer/Cocotron/1.0/Windows/i386/gcc-4.3.1/i386-mingw32msvc/
INCLUDE=$PREFIX/include
BIN=$PREFIX/bin
LIB=$PREFIX/lib
SSLVERSION=0.9.8h-1
$scrip... | Shell |
#!/bin/sh
installResources=`pwd`/Resources
scriptResources=$installResources/scripts
productFolder=/Developer/Cocotron/1.0
downloadFolder=$productFolder/Downloads
PREFIX=/Developer/Cocotron/1.0/Windows/i386/hunspell-1.3.1
BUILD=/tmp/build_hunspell
$scriptResources/downloadFilesIfNeeded.sh $downloadFolder http://down... | Shell |
#!/bin/sh
installResources=`pwd`/Resources
scriptResources=$installResources/scripts
productFolder=/Developer/Cocotron/1.0
downloadFolder=$productFolder/Downloads/pthread
PREFIX=/Developer/Cocotron/1.0/Windows/i386/gcc-4.3.1/i386-mingw32msvc/
INCLUDE=$PREFIX/include
BIN=$PREFIX/bin
LIB=$PREFIX/lib
mkdir -p $downloa... | Shell |
#!/bin/sh
./install_FreeType.sh
installResources=`pwd`/Resources
scriptResources=$installResources/scripts
productFolder=/Developer/Cocotron/1.0
downloadFolder=$productFolder/Downloads
if [ ""$1"" = "" ];then
AGG_VERSION=2.4
else
AGG_VERSION=$1
fi
PREFIX=/Developer/Cocotron/1.0/Windows/i386/agg-$AGG_VERSION
BUILD... | Shell |
#!/bin/sh
installResources=`pwd`/Resources
scriptResources=$installResources/scripts
productFolder=/Developer/Cocotron/1.0
downloadFolder=$productFolder/Downloads
if [ ""$1"" = "" ];then
targetPlatform="Windows"
else
targetPlatform=$1
fi
if [ ""$2"" = "" ];then
targetArchitecture="i386"
else
targetArchitectu... | Shell |
#!/bin/sh
installResources=`pwd`/Resources
scriptResources=$installResources/scripts
productFolder=/Developer/Cocotron/1.0
downloadFolder=$productFolder/Downloads
PREFIX=/Developer/Cocotron/1.0/Windows/i386/gcc-4.3.1/i386-mingw32msvc/
$scriptResources/downloadFilesIfNeeded.sh $downloadFolder "http://cocotron.googlec... | Shell |
#!/bin/sh
#Copyright (c) 2006 Christopher J. W. Lloyd
#
#Permission is hereby granted, free of charge, to any person obtaining a copy of this
#software and associated documentation files (the "Software"), to deal in the Software
#without restriction, including without limitation the rights to use, copy, modify,
#merge,... | Shell |
#!/bin/sh
installResources=`pwd`/Resources
scriptResources=$installResources/scripts
productFolder=/Developer/Cocotron/1.0
downloadFolder=$productFolder/Downloads
PREFIX=/Developer/Cocotron/1.0/Windows/i386/gcc-4.3.1/i386-mingw32msvc/
$scriptResources/downloadFilesIfNeeded.sh $downloadFolder "http://www.opengl.org/r... | Shell |
#!/bin/sh
./install_zlib.sh
installResources=`pwd`/Resources
scriptResources=$installResources/scripts
productFolder=/Developer/Cocotron/1.0
downloadFolder=$productFolder/Downloads
PREFIX=/Developer/Cocotron/1.0/Windows/i386/freetype-2.3.5
$scriptResources/downloadFilesIfNeeded.sh $downloadFolder "http://downloads.... | Shell |
#!/bin/sh
echo "Installing zlib"
installResources=`pwd`/Resources
scriptResources=$installResources/scripts
productFolder=/Developer/Cocotron/1.0
downloadFolder=$productFolder/Downloads
PREFIX=/Developer/Cocotron/1.0/Windows/i386/
# We need the headers/libraries, zlib.net only provides a dll or source which is more... | Shell |
#!/bin/sh
installResources=`pwd`/Resources
scriptResources=$installResources/scripts
productFolder=/Developer/Cocotron/1.0
downloadFolder=$productFolder/Downloads
if [ ""$1"" = "" ];then
targetPlatform="Windows"
else
targetPlatform=$1
fi
if [ ""$2"" = "" ];then
targetArchitecture="i386"
else
targetArchitectu... | Shell |
#!/bin/sh
installResources=`pwd`/Resources
scriptResources=$installResources/scripts
productFolder=/Developer/Cocotron/1.0
downloadFolder=$productFolder/Downloads
if [ ""$1"" = "" ];then
targetPlatform="Windows"
else
targetPlatform=$1
fi
if [ ""$2"" = "" ];then
targetArchitecture="i386"
else
targetArchitectu... | Shell |
#!/bin/sh
#Copyright (c) 2006 Christopher J. W. Lloyd
#
#Permission is hereby granted, free of charge, to any person obtaining a copy of this
#software and associated documentation files (the "Software"), to deal in the Software
#without restriction, including without limitation the rights to use, copy, modify,
#merge,... | Shell |
#/bin/sh
#Copyright (c) 2006 Christopher J. W. Lloyd
#
#Permission is hereby granted, free of charge, to any person obtaining a copy of this
#software and associated documentation files (the "Software"), to deal in the Software
#without restriction, including without limitation the rights to use, copy, modify,
#merge, ... | Shell |
#!/bin/sh
#Copyright (c) 2006 Christopher J. W. Lloyd
#
#Permission is hereby granted, free of charge, to any person obtaining a copy of this
#software and associated documentation files (the "Software"), to deal in the Software
#without restriction, including without limitation the rights to use, copy, modify,
#merge,... | Shell |
#!/bin/sh
echo "Installing libxml2"
./install_zlib.sh
installResources=`pwd`/Resources
scriptResources=$installResources/scripts
productFolder=/Developer/Cocotron/1.0
downloadFolder=$productFolder/Downloads
PREFIX=/Developer/Cocotron/1.0/Windows/i386/
$scriptResources/downloadFilesIfNeeded.sh $downloadFolder "ftp:/... | Shell |
#!/bin/bash
# the name of the server on which we test
export TESTING_SERVER=192.168.2.102
# the directory under which our build directory is available on the _server_
export TESTING_DIR=/Tests
# specifies if files should be linked or copied to the test harness folder
export TESTING_LINK_FILES=YES
| Shell |
#!/bin/sh
installResources=`pwd`/Resources
scriptResources=$installResources/scripts
productFolder=/Developer/Cocotron/1.0
downloadFolder=$productFolder/Downloads
if [ ""$1"" = "" ];then
targetPlatform="Windows"
else
targetPlatform=$1
fi
if [ ""$2"" = "" ];then
targetArchitecture="i386"
else
targetArchitectu... | Shell |
#!/bin/sh
cd extension/chrome
[ -e xul-amarok.jar ] && rm -f xul-amarok.jar
find content locale skin -path '*.svn*' -prune -o -print -type f | zip xul-amarok.jar -@
cd ..
[ -e ../xulremote/xul-amarok.xpi ] && rm -f ../xulremote/xul-amarok.xpi
cp chrome.manifest.release chrome.manifest
zip -r ../xulremote/xul-ama... | Shell |
#!/bin/sh
./makexpi.sh
rm xulremote/*.pyc xulremote/*.ini
tar cvzf xulremote-x.x.amarokscript.tar.gz xulremote/*
| Shell |
#!/bin/sh
cd extension/chrome
[ -e xul-amarok.jar ] && rm -f xul-amarok.jar
find content locale skin -path '*.svn*' -prune -o -print -type f | zip xul-amarok.jar -@
cd ..
[ -e ../xulremote/xul-amarok.xpi ] && rm -f ../xulremote/xul-amarok.xpi
cp chrome.manifest.release chrome.manifest
zip -r ../xulremote/xul-ama... | Shell |
#!/bin/sh
./makexpi.sh
rm xulremote/*.pyc xulremote/*.ini
tar cvzf xulremote-x.x.amarokscript.tar.gz xulremote/*
| Shell |
#!/bin/bash
#
# Copyright 2010 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed ... | Shell |
#!/usr/bin/env bash
# not implemented yet
exit 0
DATAPATH='../data'
function test_all () {
datapath="$1"
echo "*** Testing in $datapath"
sleep 1
for file in $datapath; do
echo -n "$file"
echo -n -e "\t\t"
output=`${PYTHON} test_one.py "$file"`
ret=$?
if [ $ret -eq 0 ] ; then
echo 'OK'
else
ec... | Shell |
#!/usr/bin/env bash
DATAPATH='../data'
[ -z "$PYTHON" ] && PYTHON=python
function test_all () {
datapath="$1"
if echo "$datapath" | grep -q '\.\./data/tests'
then
continue
fi
echo "*** Testing in $datapath"
sleep 1
for file in $datapath; do
echo -n "$file"
echo -n -e "\t\t"
output=`${PYTHON} test_o... | Shell |
#!/usr/bin/env bash
if test -z "$PYTHON"
then
PYTHON=python
fi
DATAPATH='../data'
function test_all () {
datapath="$1"
if echo "$datapath" | grep -q '\.\./data/tests'
then
continue
fi
echo "*** Testing in $datapath"
sleep 1
for file in $datapath; do
echo -n "$file"
echo -n -e "\t\t"
output=`${PYT... | Shell |
#!/usr/bin/env bash
path=${1}
interface=${2-octave}
module=`echo ${1} | awk -F/ '{print $3}'`
filename=`echo ${1} | awk -F/ '{print $4}' | cut -d '.' -f 1`
if [ "${interface}" == "octave" ]; then
echo "${module}('${filename}')" | octave
else
echo "${module}('${filename}')" | matlab -nojvm -nodisplay
fi
| Shell |
#!/usr/bin/env bash
DATAPATH='../data'
function test_all () {
datapath="$1"
if echo "$datapath" | grep -q '\.\./data/tests'
then
continue
fi
echo "*** Testing in $datapath"
sleep 1
for file in $datapath; do
echo -n "$file"
echo -n -e "\t\t"
output=`./test_one.sh ${file} ${interface}`
if [ "${int... | Shell |
dump=`echo ${1} | grep WDSVMOcas`
if [ $? -eq 0 ]; then
echo "WDSVMOcas totally unsupported"
exit 1
fi
R --no-save --no-restore --no-readline --slave ${1} < test_one.R
| Shell |
#!/usr/bin/env bash
DATAPATH='../data'
function test_all () {
datapath=${1}
if echo "$datapath" | grep -q '\.\./data/tests'
then
continue
fi
echo "*** Testing in ${datapath}"
sleep 1
for file in ${datapath}; do
dump=`echo ${file} | grep WDSVMOcas`
if [ $? -eq 0 ]; then
echo WDSVMOcas totally unsupp... | Shell |
#!/usr/bin/env bash
path=${1}
interface=${2-octave}
module=`echo ${1} | awk -F/ '{print $3}'`
filename=`echo ${1} | awk -F/ '{print $4}' | cut -d '.' -f 1`
if [ "${interface}" == "octave" ]; then
echo "${module}('${filename}')" | octave
else
echo "${module}('${filename}')" | matlab -nojvm -nodisplay
fi
| Shell |
#!/usr/bin/env bash
DATAPATH='../data'
function test_all () {
datapath="$1"
if echo "$datapath" | grep -q '\.\./data/tests'
then
continue
fi
echo "*** Testing in $datapath"
sleep 1
for file in $datapath; do
echo -n "$file"
echo -n -e "\t\t"
output=`./test_one.sh ${file} ${interface}`
if [ "${int... | Shell |
#!/usr/bin/env bash
# not implemented yet
exit 0
DATAPATH='../data'
function test_all () {
datapath="$1"
echo "*** Testing in $datapath"
sleep 1
for file in $datapath; do
echo -n "$file"
echo -n -e "\t\t"
output=`${PYTHON} test_one.py "$file"`
ret=$?
if [ $ret -eq 0 ] ; then
echo 'OK'
else
ec... | Shell |
#!/usr/bin/env bash
path=${1}
interface=${2-octave}
module=`echo ${1} | awk -F/ '{print $3}'`
filename=`echo ${1} | awk -F/ '{print $4}' | cut -d '.' -f 1`
if [ "${interface}" == "octave" ]; then
echo "${module}('${filename}')" | octave
else
echo "${module}('${filename}')" | matlab -nojvm -nodisplay
fi
| Shell |
#!/usr/bin/env bash
DATAPATH='../data'
function test_all () {
datapath="$1"
if echo "$datapath" | grep -q '\.\./data/tests'
then
continue
fi
echo "*** Testing in $datapath"
sleep 1
for file in $datapath; do
echo -n "$file"
echo -n -e "\t\t"
output=`./test_one.sh ${file} ${interface}`
if [ "${int... | Shell |
#!/bin/sh
path=${1}
module=`echo ${1} | awk -F/ '{print $3}'`
filename=`echo ${1} | awk -F/ '{print $4}' | cut -d '.' -f 1`
dump=`echo ${filename} | grep WDSVMOcas`
if [ $? -eq 0 ]; then
echo "WDSVMOcas totally unsupported"
echo "ans = 0" # matlab compat hack
exit 1
fi
echo "${module}('${filename}') " | octave... | Shell |
#!/usr/bin/env bash
DATAPATH='../data'
function test_all () {
datapath=${1}
if echo "$datapath" | grep -q '\.\./data/tests'
then
continue
fi
echo "*** Testing in ${datapath}"
sleep 1
for file in ${datapath}; do
echo -n "${file}"
echo -n -e "\t\t"
output=`./test_one.sh ${file}`
ans=`echo ${output} |... | Shell |
dump=`echo ${1} | grep WDSVMOcas`
if [ $? -eq 0 ]; then
echo "WDSVMOcas totally unsupported"
exit 1
fi
R --no-save --no-restore --no-readline --slave ${1} < test_one.R
| Shell |
#!/usr/bin/env bash
DATAPATH='../data'
function test_all () {
datapath=${1}
if echo "$datapath" | grep -q '\.\./data/tests'
then
continue
fi
echo "*** Testing in ${datapath}"
sleep 1
for file in ${datapath}; do
dump=`echo ${file} | grep WDSVMOcas`
if [ $? -eq 0 ]; then
echo WDSVMOcas totally unsuppo... | Shell |
#!/usr/bin/env bash
set -e
pwd
cd /mnt/galaxyTools/tools/asp-0.3
export LD_LIBRARY_PATH=/mnt/galaxyTools/tools/shogun-0.10.0/lib
export PYTHONPATH=/mnt/galaxyTools/tools/shogun-0.10.0/lib/python2.6/dist-packages
if [ "$3" = "spf1" ]
then
if [ "${10}" = "yes" ]
then
./asp $1 --organism=$2 -t -s $5
else
./a... | Shell |
#!/usr/bin/env bash
static_dirs="cmdline_static elwms_static matlab_and_octave python_static r_static"
modular_dirs="octave_modular python_modular r_modular lua_modular csharp_modular ruby_modular java_modular"
lib_dirs=libshogun
rm -f missing.log
document_interface()
{
iftype=$1
if [ "$iftype" == "static" ]
th... | Shell |
#!/usr/bin/env bash
rm -f error.log
test -n "$LIBRARY_PATH" && LIBRARY_PATH="LIBRARY_PATH=${LIBRARY_PATH}"
test -n "$LIB_PATH" && LIB_PATH="LIB_PATH=${LIB_PATH}"
test -n "$INC_PATH" && INC_PATH="INC_PATH=${INC_PATH}"
test -n "$LIBS" && LIBS="LIBS=${LIBS}"
test -n "$INCLUDES" && INCLUDES="INCLUDES=${INCLUDES}"
test -n... | Shell |
#!/usr/bin/env bash
rm -f error.log
if [ -z "${MONO}" ]
then
MONOC=gmcs
MONO=mono
fi
export LD_LIBRARY_PATH=../../../src/shogun:../../../src/interfaces/csharp_modular
export MONO_PATH=../../../src/interfaces/csharp_modular
MONOFLAGS="Load.cs /lib:../../../src/interfaces/csharp_modular /r:modshogun"
FILES=$@
te... | Shell |
#!/usr/bin/env bash
rm -f error.log
if [ -z "${PYTHON}" ]
then
PYTHON=python
fi
for e in *.py
do
echo -n "running $e .."
if ${PYTHON} "$e" >/dev/null 2>&1
then
echo " OK"
else
echo " ERROR"
echo "================================================================================" >>error.log
echo " error i... | Shell |
#!/usr/bin/env bash
rm -f error.log
if [ -z "${PYTHON}" ]
then
PYTHON=python
fi
for e in *.py
do
echo -n "running $e .."
if ${PYTHON} "$e" >/dev/null 2>&1
then
echo " OK"
else
echo " ERROR"
echo "================================================================================" >>error.log
echo " error i... | Shell |
#!/usr/bin/env bash
MATLAB="$1"
rm -f error.log
for e in *.m
do
echo -n "running $e .."
if [ -n "$MATLAB" ]
then
if cat "$e" | matlab -nojvm -nodesktop -nodisplay >/dev/null
then
echo " OK"
else
echo " ERROR"
cat "$e" | matlab -nojvm -nodesktop -nodisplay >>error.log
fi
else
if octave "$e" >/... | Shell |
#!/usr/bin/env bash
rm -f error.log
export LUA_CPATH=../../../src/interfaces/lua_modular/?.so
for e in $(ls -1 *.lua | grep -v load.lua)
do
echo -n $e
if lua $e >/dev/null 2>&1
then
echo " OK"
else
echo " ERROR"
echo "================================================================================" >>error... | Shell |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.