code
stringlengths
1
1.96M
language
stringclasses
1 value
#! /bin/sh # Wrapper for compilers which do not understand `-c -o'. scriptversion=2010-11-15.09; # UTC # Copyright (C) 1999, 2000, 2003, 2004, 2005, 2009, 2010 Free Software # Foundation, Inc. # Written by Tom Tromey <tromey@cygnus.com>. # # This program is free software; you can redistribute it and/or modify # it un...
Shell
#!/bin/sh # py-compile - Compile a Python program scriptversion=2009-04-28.21; # UTC # Copyright (C) 2000, 2001, 2003, 2004, 2005, 2008, 2009 Free Software # Foundation, Inc. # 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 ...
Shell
#! /bin/sh # ylwrap - wrapper for lex/yacc invocations. scriptversion=2010-02-06.18; # UTC # Copyright (C) 1996, 1997, 1998, 1999, 2001, 2002, 2003, 2004, 2005, # 2007, 2009, 2010 Free Software Foundation, Inc. # # Written by Tom Tromey <tromey@cygnus.com>. # # This program is free software; you can redistribute it a...
Shell
#! /bin/sh set -e # # usage: util/overlap.sh [directory] # # This script runs the overlap example program on a complete directory tree. # # Copyright (C) 1996-2011 Markus Franz Xaver Johannes Oberhumer # OVERLAP="overlap" test -x ./examples/overlap && OVERLAP="./examples/overlap" test -x ./overlap.exe && OVERLAP="./o...
Shell
#! /bin/sh set -e # # usage: util/check.sh [directory] # # This script runs lzotest with all algorithms on a complete directory tree. # It is not suitable for accurate timings. # # Copyright (C) 1996-2011 Markus Franz Xaver Johannes Oberhumer # LZOTEST="lzotest" test -x ./lzotest/lzotest && LZOTEST="./lzotest/lzotest...
Shell
#! /bin/sh set -e # # usage: util/checkasm.sh [directory] # # This script runs lzotest with all assembler decompressors # on a complete directory tree. # It is not suitable for accurate timings. # # Copyright (C) 1996-2011 Markus Franz Xaver Johannes Oberhumer # LZOTEST="lzotest" test -x ./lzotest/lzotest && LZOTEST=...
Shell
#! /bin/sh # vi:ts=4:et # Copyright (C) 1996-2011 Markus F.X.J. Oberhumer rm -f *.o liblzo2.a dict.out lzopack.out precomp.out precomp2.out simple.out lzotest.out testmini.out true
Shell
#! /bin/sh # vi:ts=4:et test "X${top_srcdir}" = X && top_srcdir=`echo "$0" | sed 's,[^/]*$,,'`../.. LZO_CFG_FREESTANDING=1 . $top_srcdir/B/generic/build.sh
Shell
#! /bin/sh # vi:ts=4:et set -e echo "// Copyright (C) 1996-2011 Markus F.X.J. Oberhumer" echo "//" echo "// Generic Posix/Unix system" echo "// Generic C compiler" test "X${top_srcdir}" = X && top_srcdir=`echo "$0" | sed 's,[^/]*$,,'`../.. test "X${AR}" = X && AR="ar" test "X${CC}" = X && CC="cc" test "X${CFLAGS+...
Shell
#! /bin/sh # vi:ts=4:et set -e echo "// Using GNU C compiler." echo "//" test "X${top_srcdir}" = X && top_srcdir=`echo "$0" | sed 's,[^/]*$,,'`../.. UNAME_MACHINE=unknown CC="gcc -fPIC" CC="gcc -static" CC="gcc" CFLAGS="-Wall -O2 -fomit-frame-pointer" # delete the next line to disable assembler support UNAME_MACHINE...
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 # # 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 the License, o...
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../../..}" CC="${CC:-gcc}" CFLAGS="${CFLAGS:--O2 -Wall -g}" $CC $CPPFLAGS $CFLAGS -fPIC -c $1.c &...
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
ndk-build APP_API=all -j 8 if [ $? = 0 ]; then cd libs mkdir -p ../assets for i in * do cp -v $i/minivpn ../assets/minivpn.$i done # Removed compiled openssl libs, will use platform so libs # Reduces size of apk rm -v */libcrypto.so */libssl.so fi
Shell
<?php /** * @file * This script runs Drupal tests from command line. */ define('SIMPLETEST_SCRIPT_COLOR_PASS', 32); // Green. define('SIMPLETEST_SCRIPT_COLOR_FAIL', 31); // Red. define('SIMPLETEST_SCRIPT_COLOR_EXCEPTION', 33); // Brown. // Set defaults and get overrides. list($args, $count) = simpletest_script_par...
Shell
#!/bin/sh /usr/bin/lynx -source http://example.com/cron.php > /dev/null 2>&1
Shell
#!/bin/sh curl --silent --compressed http://example.com/cron.php
Shell
#!/bin/sh find . -name "*~" -type f | xargs rm -f find . -name ".#*" -type f | xargs rm -f find . -name "*.rej" -type f | xargs rm -f find . -name "*.orig" -type f | xargs rm -f find . -name "DEADJOE" -type f | xargs rm -f find . -type f | grep -v ".psp" | grep -v ".gif" | grep -v ".jpg" | grep -v ".png" | grep -v ".t...
Shell
#!/bin/sh /usr/bin/lynx -source http://example.com/cron.php > /dev/null 2>&1
Shell
#!/bin/sh find . -name "*~" -type f | xargs rm -f find . -name ".#*" -type f | xargs rm -f find . -name "*.rej" -type f | xargs rm -f find . -name "*.orig" -type f | xargs rm -f find . -name "DEADJOE" -type f | xargs rm -f find . -type f | grep -v ".psp" | grep -v ".gif" | grep -v ".jpg" | grep -v ".png" | grep -v ".t...
Shell
#!/bin/sh curl --silent --compressed http://example.com/cron.php
Shell
#!/bin/bash # Run this from the terminal inside a drupal root folder # i.e. DRUPAL_ROOT_DIR/sites/all/modules/contrib/ctools/tests/ctools.drush.sh function stamp { echo ============== echo timestamp : `date` echo ============== } DRUPAL_ROOT=`drush dd` MODULE_DIR="$DRUPAL_ROOT/sites/all/modules" MODULE_NAME="c...
Shell
#!/bin/bash # Run this from the terminal inside a drupal root folder # i.e. DRUPAL_ROOT_DIR/sites/all/modules/contrib/ctools/tests/ctools.drush.sh function stamp { echo ============== echo timestamp : `date` echo ============== } DRUPAL_ROOT=`drush dd` MODULE_DIR="$DRUPAL_ROOT/sites/all/modules" MODULE_NAME="c...
Shell
#!/bin/bash grep -rl org\.andglk\. . | xargs perl -pi~ -e "s/org\.andglk\./org\.andglkmod\./g" grep -rl org\/andglk\/ . | xargs perl -pi~ -e "s/org\/andglk\//org\/andglkmod\//g" rm -rf src/org/andglkmod mv src/org/andglk src/org/andglkmod
Shell
#!/bin/ash # This is a shell wrapper that finds an appropriate nitfol in your path # and runs it. Requires 'which' and sh. (only tested with bash, so YMMV) if [ $DISPLAY ] && [ `which xnitfol` ] ; then xnitfol "$@" elif [ `which termnitfol` ] ; then termnitfol -revgrid yes -border no -ml no "$@" elif [ `whic...
Shell
#!/bin/sh # Preprocessor tests echo Preprocessor test: $1 test_tok -I$T3_DAT -P $T3_DAT/$1.c >$T3_OUT/$1.log 2>&1 test_diff $1 echo
Shell
#!/bin/sh # Preinit tests echo Preinit test: $1 test_prs_top -It3inc $T3_DAT/$1.t $T3_OUT/$1.t3 >$T3_OUT/$1.log 2>&1 t3pre $T3_OUT/$1.t3 $T3_OUT/${1}_pre.t3 >>$T3_OUT/$1.log 2>&1 test_exec -cs cp437 $T3_OUT/${1}_pre.t3 >>$T3_OUT/$1.log 2>&1 test_diff $1 echo
Shell
#!/bin/sh # Setup test environment and run all tests . test_env # Delete old test output rm -f $T3_OUT/* # object test - doesn't produce any output; mostly check for no crashiness test_obj # Preprocessor tests for i in ansi circ circ2 embed define ifdef concat varmacpp; do test_pp $i done # Execution tests for...
Shell
#!/bin/sh # Execution tests echo Execution test: $1 test_prs_top -It3inc $T3_DAT/$1.t $T3_OUT/$1.t3 >$T3_OUT/$1.log 2>&1 test_exec -cs cp437 $T3_OUT/$1.t3 >>$T3_OUT/$1.log 2>&1 test_diff $1 echo
Shell
#!/bin/sh # Make and execute tests case "$1" in -nodef) shift t3make -test -I$T3_DAT -a -nodef -nobanner -nopre -Fs $T3_DAT -Fo $T3_OUT -Fy $T3_OUT -o $T3_OUT/$1.t3 $2 $3 $4 $5 $6 $7 $8 $9 >$T3_OUT/$1.log 2>&1 ;; -debug) shift t3make -test -d -I$T3_DAT -a -nobanner -nopr...
Shell
#!/bin/sh # Setup the test environment # go up to the main TADS 3 source directory cd ../.. PATH=./unix/exe:./unix/test:$PATH # T3_DAT - Data files used in testing # T3_OUT - Our test output # T3_LOG - Pregenerated logfiles to diff our output against T3_DAT=test/data T3_OUT=test/out T3_LOG=test/log export PATH T3_D...
Shell
#!/bin/sh # Test restoring a saved state echo "'Restore' test: $1" test_exec -cs cp437 $T3_OUT/$2.t3 restore >$T3_OUT/$1.log 2>&1 test_diff $1 echo
Shell
#!/bin/sh # Setup test environment and run a particular test. Put the text command and # all its arguments on the command line. source test_env exec $*
Shell
#!/bin/sh # Diff a test result against the reference log # # The reference log is in $T3_LOG # The result file to compare is in $T3_OUT # # We'll store a .diff or a .succ file in $T3_OUT based on the result # clean up any old success/difference files we have hanging around rm -f $T3_OUT/$1.succ rm -f $T3_OUT/$1.diff ...
Shell
#!/bin/sh TEST_DIR=`dirname $0` echo "Running Alabaster.glorb..." ${TEST_DIR}/../git ${TEST_DIR}/Alabaster.gblorb \ < ${TEST_DIR}/Alabaster.walk > ${TEST_DIR}/Alabaster.tmp echo "Comparing output against Alabaster.golden..." if diff -q ${TEST_DIR}/Alabaster.tmp ${TEST_DIR}/Alabaster.golden; then echo "TEST PAS...
Shell
# # Darwin has install_name magic to find the dylib. # ELF has no such provision, which makes it necessary # to set LD_LIBRARY_PATH. # if [ `uname` != Darwin ] then abspath=`readlink -f $0` # get the full path of this script dirpath=`dirname $abspath` # get directory part if [ -z "$LD_LIBRARY_PATH" ] ...
Shell
#!/bin/bash export JAVA_HOME=/usr/lib/jvm/jdk1.6.0_33 export M2_HOME=/usr/local/maven/3.0.4 export M2=$M2_HOME/bin export EDITOR=vim export ANDROID_SDK=/usr/local/android.sdk export PATH="$HOME/bin:$PATH:$HOME/IDEA/idea-IC-117.418/bin/:$M2:$ANDROID_SDK/tools" alias a='alias' a l='ls -alF' a la='ls -A' a ll='ls -CF...
Shell
#!/usr/bin/env bash # Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved. # For licensing, see LICENSE.html or http://ckeditor.com/license # Use this file to quickly run the sample under Linux. adl application.xml ../../
Shell
#!/usr/bin/env bash # Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved. # For licensing, see LICENSE.html or http://ckeditor.com/license # Use this file to quickly run the sample under Linux. adl application.xml ../../
Shell
#!/bin/sh # Detects OS we're compiling on and generates build_config.mk, # which in turn gets read while processing Makefile. # build_config.mk will set the following variables: # - PORT_CFLAGS will either set: # -DLEVELDB_PLATFORM_POSIX if cstatomic is present # -DLEVELDB_PLATFORM_NOATOMI...
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
#!/system/bin/sh DIR=/data/data/org.sshtunnel PATH=$DIR:$PATH case $1 in start) echo " base { log_debug = off; log_info = off; log = stderr; daemon = on; redirector = iptables; } " >$DIR/redsocks.conf echo " redsocks { local_ip = 127.0.0.1; local_port = 8123; ip = 127.0.0.1; port = $2; type = socks5;...
Shell
#!/system/bin/sh DIR=/data/data/org.sshtunnel PATH=$DIR:$PATH case $1 in start) echo " base { log_debug = off; log_info = off; log = stderr; daemon = on; redirector = iptables; } " >$DIR/redsocks.conf echo " redsocks { local_ip = 127.0.0.1; local_port = 8123; ip = 127.0.0.1; port = $2; type = http-re...
Shell
#!/bin/bash # Copyright (C) 2011 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 to...
Shell
#!/bin/bash set -e ./runant war third_party/appengine-sdk/sdk/bin/appcfg.sh update build/war
Shell
#!/bin/bash # Sample shell script for invoking ant. # Copy to a new file and fill in the values below. # To keep the secret secret, don't share your runant script. ant -Dapp-id='your-app-id' \ -Dapp-version='1' \ -Doauth-client-id='your-oauth-client-id' \ -Doauth-client-secret='your-oauth-client-secret' \...
Shell
#!/bin/sh # Copyright 2003-2009, Mike Solomon <mas63@cornell.edu> # SIMBL is released under the GNU General Public License v2. # http://www.opensource.org/licenses/gpl-2.0.php PACKAGE_PATH="$1" INSTALL_PATH="$2" INSTALL_VOLUME="$3" SYSTEM_ROOT="$4" RESOURCES="${PACKAGE_PATH}/Contents/Resources" # FIXME(mike) maybe w...
Shell
#!/bin/sh # Copyright 2003-2009, Mike Solomon <mas63@cornell.edu> # SIMBL is released under the GNU General Public License v2. # http://www.opensource.org/licenses/gpl-2.0.php LAUNCHD_PLIST="/Library/LaunchAgents/net.culater.SIMBL.Agent.plist" # stop any running agent by unloading it echo "Stopping SIMBL Agent..." /bi...
Shell
starttime=`cat /var/log/kern.log | grep 'eth0'| awk '{print $3}' | head -1 ` endtime=`cat /var/log/kern.log | grep 'eth0'| awk '{print $3}' | tail -1` start_hour=`echo $starttime | sed 's/:/ /g' | awk '{print $1}' ` start_min=`echo $starttime | sed 's/:/ /g' | awk '{print $2}' ` start_second=`echo $starttime | sed 's/...
Shell
#!/bin/bash # Android Screenshot Library # ############################## # Startup script # echo "Android Screenshot Library -- initializing..." # if [ -z $ANDROID ]; then echo "*** Android SDK not found ***" echo "Make sure the ANDROID variable is pointing to Android SDK root directory" else adb="$AN...
Shell
#!/bin/bash set -e # fail early function die() { echo "Error: " $* echo echo "USage: $0 [dest]" exit 1 } shopt -s extglob # extended glob pattern function process() { SRC="$1" BASE="${SRC/.apk/}" DATE=`date +%Y%m%d` N=1 while /bin/true; do EXT=`python -c "print chr(96+$N)"` DEST="${BASE}_${DATE...
Shell
#!/bin/bash # (C) Copyright 2014, 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 to in wr...
Shell
#!/bin/bash if [ $# -ne 1 ] then echo "Usage:$0 scantype" echo "UNLV data comes in several scan types:" echo "3B=300 dpi binary" echo "3A=adaptive thresholded 300 dpi" echo "3G=300 dpi grey" echo "4B=400dpi binary" echo "2B=200dpi binary" echo "For now we only use 3B" exit 1 fi ext=...
Shell
#!/bin/bash # File: runalltests.sh # Description: Script to run a set of UNLV test sets. # Author: Ray Smith # Created: Thu Jun 14 08:21:01 PDT 2007 # # (C) Copyright 2007, Google Inc. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with...
Shell
#!/bin/bash # File: runtestset.sh # Description: Script to run tesseract on a single UNLV set. # Author: Ray Smith # Created: Wed Jun 13 10:13:01 PDT 2007 # # (C) Copyright 2007, Google Inc. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in complianc...
Shell
#!/bin/bash # File: counttestset.sh # Description: Script to count the errors on a single UNLV set. # Author: Ray Smith # Created: Wed Jun 13 11:58:01 PDT 2007 # # (C) Copyright 2007, Google Inc. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in comp...
Shell
#-*- mode: shell-script;-*- # # bash completion support for tesseract # # Copyright (C) 2009 Neskie A. Manuel <neskiem@gmail.com> # Distributed under the Apache License, Version 2.0. # _tesseract_languages() { local TESSDATA="/usr/share/tesseract-ocr/tessdata/" local langs="$(ls $TESSDATA | grep traineddata | cut -...
Shell
#!/bin/bash # # File: generate_manpages.sh # Description: Converts .asc files into man pages, etc. for Tesseract. # Author: eger@google.com (David Eger) # Created: 9 Feb 2012 # # (C) Copyright 2012 Google Inc. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this f...
Shell
#!/bin/sh # This is a simple script which is meant to help developers # better deal with the GNU autotools, specifically: # # aclocal # autoheader # autoconf # automake # # The whole thing is quite complex... # # The idea is to run this collection of tools on a single platform, # typically the main development...
Shell
ant clean; ant release; adb install -r bin/MetaTracker-release.apk
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 CP=`ls lib/*.jar|tr '\n' ':'` # Tatoeba indexing uses quite a lot of memory on Linux 64bit JAVA_OPTS=-Xmx1024m java $JAVA_OPTS -cp $CP sk.baka.aedict.indexer.Main "$@"
Shell
#!/bin/bash cd .. # Index Edict # We need edict.gz to be present locally, for Tanaka/Tatoeba parsing wget http://ftp.monash.edu.au/pub/nihongo/edict.gz || exit 1 ./ai.sh -f edict.gz -g --upload || exit 1 # Index Kanjidic ./ai.sh -d -k --upload || exit 1 # Index Tanaka ./ai.sh -d -t --upload || exit 1 # Index Tatoeb...
Shell
#!/bin/sh ROOT=../.. CLASSPATH="4shared-api-demo.jar:../lib/4shared-api.jar" java -classpath $CLASSPATH \ com.pmstation.shared.soap.demo.BrowseRecycleBeanDemo $*
Shell
#!/bin/sh ROOT=../.. JARS=`ls ../../lib` CLASSPATH="4shared-api-demo.jar:../lib/4shared-api.jar" for i in $JARS ; do CLASSPATH="${CLASSPATH}:../../lib/${i}" done java -classpath $CLASSPATH \ com.pmstation.shared.soap.demo.FolderSettingsDemo $*
Shell
#!/bin/sh ROOT=../.. CLASSPATH="4shared-api-demo.jar:../lib/4shared-api.jar" java -classpath $CLASSPATH \ com.pmstation.shared.soap.demo.DownloadDemo $*
Shell
#!/bin/sh ROOT=../.. CLASSPATH="4shared-api-demo.jar:../lib/4shared-api.jar" java -classpath $CLASSPATH \ com.pmstation.shared.soap.demo.SignupDemo $*
Shell
#!/bin/sh ROOT=../.. CLASSPATH="4shared-api-demo.jar:../lib/4shared-api.jar" java -classpath $CLASSPATH \ com.pmstation.shared.soap.demo.BrowseFolderDemo $*
Shell
#!/bin/sh ROOT=../.. CLASSPATH="4shared-api-demo.jar:../lib/4shared-api.jar" java -classpath $CLASSPATH \ com.pmstation.shared.soap.demo.PreviewLinkDemo $*
Shell
#!/bin/sh ROOT=../.. JARS=`ls ../../lib` CLASSPATH="4shared-api-demo.jar:../lib/4shared-api.jar" for i in $JARS ; do CLASSPATH="${CLASSPATH}:../../lib/${i}" done java -classpath $CLASSPATH \ com.pmstation.shared.soap.demo.UploadDemo $*
Shell
#!/bin/sh ROOT=../.. CLASSPATH="4shared-api-demo.jar:../lib/4shared-api.jar" java -classpath $CLASSPATH \ com.pmstation.shared.soap.demo.CreateFolderDemo $*
Shell