code stringlengths 1 1.96M | language stringclasses 1
value |
|---|---|
#!/bin/sh
# sh is buggy on RS/6000 AIX 3.2. Replace above line with #!/bin/ksh
# Bzcmp/diff wrapped for bzip2,
# adapted from zdiff by Philippe Troin <phil@fifi.org> for Debian GNU/Linux.
# Bzcmp and bzdiff are used to invoke the cmp or the diff pro-
# gram on compressed files. All options specified are passed
#... | Shell |
#!/bin/bash
# see the README in this directory for usage etc.
usage() {
echo '';
echo 'Usage: xmlproc.sh -[option] <filename.xml>';
echo 'Specify a target from:';
echo '-v verify xml file conforms to dtd';
echo '-html output in html format (single file)';
echo '-ps output in postscript format';
... | Shell |
#!/bin/sh
# Bzmore wrapped for bzip2,
# adapted from zmore by Philippe Troin <phil@fifi.org> for Debian GNU/Linux.
PATH="/usr/bin:$PATH"; export PATH
prog=`echo $0 | sed 's|.*/||'`
case "$prog" in
*less) more=less ;;
*) more=more ;;
esac
if test "`echo -n a`" = "-n a"; then
# looks like a SysV system:
... | Shell |
#!/bin/bash
Res=res/
Alt=donottranslate-altchars.xml
Map=donottranslate-keymap.xml
Out=assets/kbd/
mkdir -p "$Out"
for Dir in res/values res/values-*
do
[ -f $Dir/$Map ] || continue # -o -f $Dir/$Alt ] || continue
Args="$Res/values/$Alt"
[ -f $Dir/$Alt ] && Args="$Args $Dir/$Alt"
Args="$Args $Res/values/$Map... | Shell |
#!/bin/bash
getLangsForFiles () {
echo "en" # default language
for F in "$@"
do
find res/ -name "$F"
done \
| sed -n '
s/.*res.[a-z]*-\(..\)-r\(..\).*/\1_\2/p; # yy-rXX => yy_XX
s/.*res.[a-z]*-\(..\)\/.*/\1/p; # yy => yy
'
}
getLangsForDicts () {
ls ../Dicts \
| sed 's/.*-//;... | Shell |
#!/bin/bash
#
# This script checks the java version and bails if it's less
# than Java6 (because we use @Override annotations on interface
# overriding methods. It then proceeds to do a maven build that
# first cleans, then builds the normal lifecycle through compilation
# unit testing (if available) up to packaging. ... | 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
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
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 -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
rm org/jivesoftware/smack/debugger/LiteDebugger.java
rm org/jivesoftware/smackx/debugger/EnhancedDebugger.java
rm org/jivesoftware/smackx/debugger/EnhancedDebuggerWindow.java
| 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
#
# Starts a basic web server on the port specified.
#
# ./serve.sh 3000 -> http://localhost:3000
#
# Copyright 2012 Eric Bidelman <ebidel@gmail.com>
port=$1
if [ $# -ne 1 ]
then
port=8000
fi
if [ $(uname -s) == "Darwin" ]
then
open=open
else
open=xdg-open
fi
$open http://localhost:$port/templat... | Shell |
#!/bin/sh
#
# Detects OS we're compiling on and outputs a file specified by the first
# argument, which in turn gets read while processing Makefile.
#
# The output will set the following variables:
# CC C Compiler path
# CXX C++ Compiler path
# PLATFORM_LDFLAGS ... | 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
#
# Simple test of Go oracle/Emacs integration.
# Requires that GOROOT and GOPATH are set.
# Side effect: builds and installs oracle in $GOROOT.
set -eu
[ -z "$GOROOT" ] && { echo "Error: GOROOT is unset." >&2; exit 1; }
[ -z "$GOPATH" ] && { echo "Error: GOPATH is unset." >&2; exit 1; }
log=/tmp/$(basen... | Shell |
#!/usr/bin/env bash
# Copyright 2011 The Go Authors. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
# This script creates a complete godoc app in $APPDIR.
# It copies the cmd/godoc and src/go/... sources from GOROOT,
# synthesizes an app.yaml... | 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
# 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
if [ $# != 1 ]
then
echo "Usage: $0 emailAddress"
exit 1
fi
read -s -p "Password: " mypassword
echo ""
curl https://www.google.com/accounts/ClientLogin -d Email=$1 -d "Passwd=$mypassword" -d accountType=GOOGLE -d source=Google-cURL-Example -d service=ac2dm
| Shell |
#!/bin/sh
# Need to run a full clean install when changing the request factory interfaces
# Doing so deletes the local debug app engine database
# This script backs that up first
SRC=shuffle-app-engine/target/shuffle-app-engine-2.0.0-SNAPSHOT/WEB-INF/appengine-generated
DEST=../db_backup
rm -r $DEST
mkdir $DEST
cp -... | Shell |
#!/bin/sh
# Create a backup tar gzip file of the cwd with the date appended
# located in the parent directory.
FILENAME=../`pwd|xargs basename`-`date -j "+%Y-%m-%d"`.tgz
echo Will create $FILENAME
tar cfz $FILENAME .
echo Done.
| Shell |
#!/bin/bash
doxygen Doxyfile
| Shell |
export OSGSWIG_DIR_LIB=$(pwd)/../build-debug/lib/python/osgswig-2.9.9
export PYTHONPATH=${OSGSWIG_DIR_LIB}:$PYTHONPATH | Shell |
#!/bin/sh
rm -f *.o
rm -f *.cpp
# OSG_ART="D:\Development\OSGART\include"
OSG_ROOT="/usr"
swig -c++ -lua -I${OSG_ROOT}/include -o osgLua.cpp ../../osg.i
swig -c++ -lua -I${OSG_ROOT}/include -o osgLuaUtil.cpp ../../osgUtil.i
swig -c++ -lua -I${OSG_ROOT}/include -o osgLuaProducer.cpp ../../osgProducer.i
swig -c++ -lua... | Shell |
#!/bin/sh
rm -f ../../../bin/lua/*.so
LUA_CFLAGS=`pkg-config lua5.1 --cflags`
OSG_CFLAGS=`pkg-config openscenegraph --cflags`
LUA_LIBS=`pkg-config lua5.1 --libs`
OSG_LIBS=`pkg-config openscenegraph --libs`
CFLAGS="${LUA_CFLAGS} ${OSG_CFLAGS}"
LIBS="${LUA_LIBS} ${OSG_LIBS}"
g++ -c -fPIC osgLua.cpp ${CFLAGS}
g++ -sh... | Shell |
#!/bin/sh
# OSG_ART="D:\Development\OSGART\include"
OSG_ROOT="/usr"
swig -c++ -ruby -I${OSG_ROOT}/include -o osgRuby.cpp ../../osg.i
swig -c++ -ruby -I${OSG_ROOT}/include -o osgRubyUtil.cpp ../../osgUtil.i
swig -c++ -ruby -I${OSG_ROOT}/include -o osgRubyProducer.cpp ../../osgProducer.i
swig -c++ -ruby -I${OSG_ROOT}/i... | Shell |
#!/bin/sh
RUBY_CFLAGS="-I/usr/lib/ruby/1.8/i486-linux/"
OSG_CFLAGS=`pkg-config openscenegraph --cflags`
RUBY_LIBS="-lruby1.8"
OSG_LIBS=`pkg-config openscenegraph --libs`
CFLAGS="${RUBY_CFLAGS} ${OSG_CFLAGS}"
LIBS="${RUBY_LIBS} ${OSG_LIBS}"
g++ -c -fPIC osgRuby.cpp ${CFLAGS}
g++ -shared -o ../../../bin/ruby/wosg.so ... | Shell |
#!/bin/bash
PYTHON_PATH=""
PYTHON_CFLAGS="`python-config --cflags`"
OSG_CFLAGS=""
PYTHON_LDFLAGS="`python-config --ldflags`"
PYTHON_LIBS="-framework Python"
OSG_LIBS="-framework osg -framework OpenThreads -framework OpenGL"
FRAME_EXT=""
CFLAGS="${CFLAGS} ${PYTHON_CFLAGS} ${OSG_CFLAGS}"
LIBS="`python-config --ldfl... | Shell |
#!/bin/bash
rm -f *.cpp
rm -f *.o
WRAP_INCLUDE="include"
items=( "" "Util" "DB" "GA" "FX" "Manipulator" "Particle" "Sim" "Shadow" "Terrain" "Text" "Viewer" "ART" )
# items=( "" "Util" "DB" "GA" "FX" "ART" )
# items=( "" "FX" )
# items=( "" "DB")
rm -rf ${WRAP_INCLUDE}
mkdir ${WRAP_INCLUDE}
# generate a standard in... | Shell |
#!/bin/bash
rm -f *.cpp
rm -f *.o
# OSG_ART="D:\Development\OSGART\include"
OSG_ROOT="/usr"
WRAP_INCLUDE="include"
items=( "" "Util" "DB" "GA" "FX" "ART" )
# items=( "" "FX" )
# wrap all packages
for i in "${items[@]}"
do
echo Working on wrapping "osg${i}"
swig -c++ -python -I${OSG_ROOT}/include -o "osgPython${i}... | Shell |
#!/bin/bash
items=("" "Utils")
PYTHON_CFLAGS="-I/usr/include/python2.4/"
OSG_CFLAGS=`pkg-config openscenegraph --cflags`
PYTHON_LIBS="-lpython2.4"
OSG_LIBS=`pkg-config openscenegraph --libs`
CFLAGS="-fPIC ${PYTHON_CFLAGS} ${OSG_CFLAGS} ${CFLAGS}"
LIBS="${PYTHON_LIBS} ${OSG_LIBS}"
# looping through
for i in "${ite... | Shell |
#!/bin/sh
# Using this script should be identical to the resulto of "autoreconf -fi".
# Some code taken from the gnome macros/autogen.sh scripts.
# $Id$
###############################################################################
# utility functions
###############################################################... | Shell |
convert $1 -resize 150x130 $1
| Shell |
#!/bin/sh
#clear out any extended attributes that Finder may add
sudo xattr -r -d com.apple.FinderInfo *
rm -f config.log config.report configure
rm -f m4/libtool.m4 m4/lt~obsolete.m4 m4/ltsugar.m4 m4/ltversion.m4 m4/ltoptions.m4
rm -fr autom4te.cache build-aux
rm -f Makefile Makefile.in
rm -f src/Makefile src/Makef... | Shell |
#! /bin/sh
# Output a system dependent set of variables, describing how to set the
# run time search path of shared libraries in an executable.
#
# Copyright 1996-2003 Free Software Foundation, Inc.
# Taken from GNU libtool, 2001
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
#
# This program is ... | Shell |
#!/system/bin/sh
DIR=/data/data/org.gaeproxy
PATH=$DIR:$PATH
case $1 in
start)
echo "
base {
log_debug = off;
log_info = off;
log = stderr;
daemon = on;
redirector = iptables;
}
redsocks {
local_ip = 127.0.0.1;
local_port = 8123;
ip = 127.0.0.1;
port = $2;
type = http-relay;
}
redsocks {
local_ip = 12... | Shell |
#!/system/bin/sh
DIR=/data/data/org.gaeproxy
PYTHONPATH=${1}/python-extras
PYTHONPATH=${PYTHONPATH}:${DIR}/python/lib/python2.6/lib-dynload
export PYTHONPATH
export TEMP=${1}/python-extras
export PYTHONHOME=${DIR}/python
export LD_LIBRARY_PATH=${DIR}/python/lib
case $2 in
goagent)
echo "
[listen]
ip = 127.0.0... | Shell |
#!/system/bin/sh
DIR=/data/data/org.gaeproxy
PYTHONPATH=${1}/python-extras
PYTHONPATH=${PYTHONPATH}:${DIR}/python/lib/python2.6/lib-dynload
export PYTHONPATH
export TEMP=${1}/python-extras
export PYTHONHOME=${DIR}/python
export LD_LIBRARY_PATH=${DIR}/python/lib
case $2 in
goagent)
echo "
[listen]
ip = 127.0.0... | Shell |
#!/bin/sh
# Create a backup tar gzip file of the cwd with the date appended
# located in the parent directory.
FILENAME=../`pwd|xargs basename`-`date -j "+%Y-%m-%d"`.tgz
echo Will create $FILENAME
tar cfz $FILENAME .
echo Done.
| Shell |
#!/bin/sh
UNAME=`uname`
if [ "$UNAME" = "Linux" ]; then
size=$(stat -c%s "${T_OBJ}/kern-bin")
elif [ "$UNAME" = "FreeBSD" ]; then
size=$(stat -f %z "${T_OBJ}/kern-bin")
else
echo "Unsupported platform!"
exit 1
fi
kern_sect_size=$(echo "(( $size + 511 ) / 512)" | bc)
echo $kern_sect_size > ${T_OBJ}/kern-sect_size
... | Shell |
cat script/test2.sh > test/tmp.sh
ls test
sh < test/tmp.sh
unlink test/tmp.sh
echo test3.sh end.
| Shell |
cd test
mkdir pp
cd pp
ls /bin | cat > qq
link qq pp
ls
cd ..
link pp/pp orz
unlink pp/pp pp/qq
rename pp qq
unlink qq
unlink orz
echo test2.sh end.
| Shell |
ls
cd test
pwd
ls /testman > xx
cat xx
unlink xx
echo test1.sh end.
| Shell |
#!/bin/sh
# These variables are automatically filled in by the configure script.
name="@PACKAGE_TARNAME@"
version="@PACKAGE_VERSION@"
show_usage()
{
echo "Usage: gtest-config [OPTIONS...]"
}
show_help()
{
show_usage
cat <<\EOF
The `gtest-config' script provides access to the necessary compile and linking
flag... | Shell |
#!/bin/sh
# These variables are automatically filled in by the configure script.
name="@PACKAGE_TARNAME@"
version="@PACKAGE_VERSION@"
show_usage()
{
echo "Usage: gtest-config [OPTIONS...]"
}
show_help()
{
show_usage
cat <<\EOF
The `gtest-config' script provides access to the necessary compile and linking
flag... | Shell |
#!/bin/bash
# Executes the samples and tests for the Google Test Framework
# Help the dynamic linker find the path to the framework
export DYLD_FRAMEWORK_PATH=$BUILT_PRODUCTS_DIR
# Create an array of test executables
test_executables=("$BUILT_PRODUCTS_DIR/sample1_unittest"
"$BUILT_PRODUCTS_DIR/sam... | Shell |
#!/bin/bash
# Executes the samples and tests for the Google Test Framework
# Help the dynamic linker find the path to the framework
export DYLD_FRAMEWORK_PATH=$BUILT_PRODUCTS_DIR
# Create an array of test executables
test_executables=("$BUILT_PRODUCTS_DIR/sample1_unittest"
"$BUILT_PRODUCTS_DIR/sam... | Shell |
ant clean; ant release; adb install -r bin/MetaTracker-release.apk
| Shell |
#!/bin/sh
path=`dirname $0`
pythonhome=$path/../Frameworks/Python.framework/Versions/2.6
export PYTHONHOME=$pythonhome
export DYLD_LIBRARY_PATH=$path/../MacOS:$DYLD_LIBRARY_PATH
export DYLD_LIBRARY_PATH=$path/../coral:$DYLD_LIBRARY_PATH
export DYLD_LIBRARY_PATH=$path/../coral/coral:$DYLD_LIBRARY_PATH
export DYLD_LIBRA... | Shell |
#!/bin/bash
#
# Copyright (C) 2007 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 ap... | Shell |
#!/bin/bash
#
# Copyright (C) 2007 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 ap... | Shell |
#!/system/bin/sh
DIR=/data/data/org.gaeproxy
PYTHONPATH=${1}/python-extras
PYTHONPATH=${PYTHONPATH}:${DIR}/python/lib/python2.6/lib-dynload
export PYTHONPATH
export TEMP=${1}/python-extras
export PYTHONHOME=${DIR}/python
export LD_LIBRARY_PATH=${DIR}/python/lib
case $2 in
goagent)
echo "
[listen]
ip = 127.0.0... | Shell |
#!/system/bin/sh
DIR=/data/data/org.gaeproxy
PATH=$DIR:$PATH
case $1 in
start)
echo "
base {
log_debug = off;
log_info = off;
log = stderr;
daemon = on;
redirector = iptables;
}
redsocks {
local_ip = 127.0.0.1;
local_port = 8123;
ip = 127.0.0.1;
port = $2;
type = http-relay;
}
redsocks {
local_ip = 12... | Shell |
#!/system/bin/sh
DIR=/data/data/org.gaeproxy
PYTHONPATH=${1}/python-extras
PYTHONPATH=${PYTHONPATH}:${DIR}/python/lib/python2.6/lib-dynload
export PYTHONPATH
export TEMP=${1}/python-extras
export PYTHONHOME=${DIR}/python
export LD_LIBRARY_PATH=${DIR}/python/lib
case $2 in
goagent)
echo "
[listen]
ip = 127.0.0... | 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/sh
# Copyright 2014 Google Inc. All rights reserved.
#
# 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 applica... | Shell |
#!/bin/sh
if [[ -z $ADB ]]; then ADB=adb; fi
./kill_process.sh
$ADB shell rm -r /data/data/com.google.android.apps.iosched/* | Shell |
#!/bin/sh
adb shell cat /data/data/com.google.android.apps.iosched/shared_prefs/com.google.android.apps.iosched_preferences.xml | xmllint --format - | Shell |
#!/bin/sh
if [[ -z $ADB ]]; then ADB=adb; fi
$ADB shell am start \
-a android.intent.action.MAIN \
-c android.intent.category.LAUNCHER \
-n com.google.android.apps.iosched/.ui.HomeActivity
| Shell |
#!/bin/sh
adb shell pm clear com.google.android.apps.iosched | Shell |
#!/bin/sh
if [[ -z $ADB ]]; then ADB=adb; fi
$ADB shell am force-stop com.google.android.apps.iosched
| Shell |
#!/bin/sh
if [[ -z $ADB ]]; then ADB=adb; fi
MAC_UNAME="Darwin"
if [[ "`uname`" == ${MAC_UNAME} ]]; then
DATE_FORMAT="%Y-%m-%dT%H:%M:%S"
else
DATE_FORMAT="%Y-%m-%d %H:%M:%S"
fi
if [ -z "$1" ]; then
NOW_DATE=$(date "+${DATE_FORMAT}")
echo Please provide a mock time in the format \"${NOW_DATE}\" or \"d\" to del... | Shell |
#!/bin/sh
# Remember VERBOSE only works on debug builds of the app
adb shell setprop log.tag.iosched_SyncHelper VERBOSE
adb shell setprop log.tag.iosched_SessionsHandler VERBOSE
adb shell setprop log.tag.iosched_ImageCache VERBOSE
adb shell setprop log.tag.iosched_ImageWorker VERBOSE
adb shell setprop log.tag.iosched_I... | Shell |
#!/bin/sh
if [[ -z $ADB ]]; then ADB=adb; fi
$ADB shell "echo '$*' | sqlite3 -header -column /data/data/com.google.android.apps.iosched/databases/schedule.db" | Shell |
#!/bin/sh
# Sessions list
#adb shell am start -a android.intent.action.VIEW -d content://com.google.android.apps.iosched/tracks/android/sessions
# Vendors list
#adb shell am start -a android.intent.action.VIEW -d content://com.google.android.apps.iosched/tracks/android/vendors
# Session detail
#adb shell am start -a... | Shell |
#!/bin/sh
# Copyright 2014 Google Inc. All rights reserved.
#
# 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 applica... | Shell |
#!/bin/bash
curl -O http://tesseract-ocr.googlecode.com/files/tesseract-ocr-3.02.eng.tar.gz
tar -zxvf tesseract-ocr-3.02.eng.tar.gz
rm -f tesseract-ocr-3.02.eng.tar.gz
mkdir data
mv tesseract-ocr data/tesseract
adb push data/ /sdcard/
adb shell sync
| Shell |
#!/bin/bash
curl -O https://tesseract-ocr.googlecode.com/files/tesseract-ocr-3.02.02.tar.gz
curl -O http://leptonica.googlecode.com/files/leptonica-1.69.tar.gz
tar -zxvf tesseract-ocr-3.02.02.tar.gz
tar -zxvf leptonica-1.69.tar.gz
rm -f tesseract-ocr-3.02.02.tar.gz
rm -f leptonica-1.69.tar.gz
mv tesseract-ocr jni/com_g... | 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/sh
# Run this to generate the configure script.
(autoconf --version) < /dev/null > /dev/null 2>&1 || {
echo
echo "Error: You must have 'autoconf' installed on your system in order"
echo " to generate a configure script."
echo
exit 1
}
(autoheader --version) < /dev/null > /dev/null 2>&1 || {
echo
echo "... | Shell |
spawn-fcgi -u www-data -g www-data -d /var/www/simplecd/ -f /var/www/simplecd/code.py -a 127.0.0.1 -p 9001 -F 2
| Shell |
ant clean; ant release; adb install -r bin/MetaTracker-release.apk
| Shell |
#!/bin/sh
if [[ -z $ADB ]]; then ADB=adb; fi
./kill_process.sh
$ADB shell rm -r /data/data/com.google.android.apps.iosched/* | Shell |
#!/bin/sh
adb shell cat /data/data/com.google.android.apps.iosched/shared_prefs/com.google.android.apps.iosched_preferences.xml | xmllint --format - | Shell |
#!/bin/sh
if [[ -z $ADB ]]; then ADB=adb; fi
$ADB shell am start \
-a android.intent.action.MAIN \
-c android.intent.category.LAUNCHER \
-n com.google.android.apps.iosched/.ui.HomeActivity
| Shell |
#!/bin/sh
adb shell pm clear com.google.android.apps.iosched | Shell |
#!/bin/sh
if [[ -z $ADB ]]; then ADB=adb; fi
$ADB shell am force-stop com.google.android.apps.iosched
| Shell |
#!/bin/sh
if [[ -z $ADB ]]; then ADB=adb; fi
MAC_UNAME="Darwin"
if [[ "`uname`" == ${MAC_UNAME} ]]; then
DATE_FORMAT="%Y-%m-%dT%H:%M:%S"
else
DATE_FORMAT="%Y-%m-%d %H:%M:%S"
fi
if [ -z "$1" ]; then
NOW_DATE=$(date "+${DATE_FORMAT}")
echo Please provide a mock time in the format \"${NOW_DATE}\" or \"d\" to del... | Shell |
#!/bin/sh
# Remember VERBOSE only works on debug builds of the app
adb shell setprop log.tag.iosched_SyncHelper VERBOSE
adb shell setprop log.tag.iosched_SessionsHandler VERBOSE
adb shell setprop log.tag.iosched_ImageCache VERBOSE
adb shell setprop log.tag.iosched_ImageWorker VERBOSE
adb shell setprop log.tag.iosched_I... | Shell |
#!/bin/sh
if [[ -z $ADB ]]; then ADB=adb; fi
$ADB shell "echo '$*' | sqlite3 -header -column /data/data/com.google.android.apps.iosched/databases/schedule.db" | Shell |
#!/bin/sh
# Sessions list
#adb shell am start -a android.intent.action.VIEW -d content://com.google.android.apps.iosched/tracks/android/sessions
# Vendors list
#adb shell am start -a android.intent.action.VIEW -d content://com.google.android.apps.iosched/tracks/android/vendors
# Session detail
#adb shell am start -a... | Shell |
for arg in "$@"
do
case $arg in
*=*) optarg=`expr "X$arg" : '[^=]*=\(.*\)'` ;;
esac
case "$arg" in
--name=*)
name=$optarg
;;
--id=*)
id=$optarg
;;
--version=*)
version=$optarg
;;
--exec=*)
exec=$optarg
;;
--vendor=*)
vendor=$optarg
;;
--website=*)
website=$optarg
;;
--... | Shell |
for arg in "$@"
do
case $arg in
*=*) optarg=`expr "X$arg" : '[^=]*=\(.*\)'` ;;
esac
case "$arg" in
--name=*)
name=$optarg
;;
--id=*)
id=$optarg
;;
--version=*)
version=$optarg
;;
--bundle-name=*)
bundleName=$optarg
;;
--exec=*)
exec=$optarg
;;
--vendor=*)
vendor=$optarg
... | Shell |
for arg in "$@"
do
case $arg in
*=*) optarg=`expr "X$arg" : '[^=]*=\(.*\)'` ;;
esac
case "$arg" in
--name=*)
name=$optarg
;;
--id=*)
id=$optarg
;;
--version=*)
version=$optarg
;;
--version-code=*)
versionCode=$optarg
;;
--vendor=*)
vendor=$optarg
;;
--min-sdk=*)
minSDK=$op... | Shell |
for arg in "$@"
do
case $arg in
*=*) optarg=`expr "X$arg" : '[^=]*=\(.*\)'` ;;
esac
#echo $arg
case "$arg" in
--name=*)
name=$optarg
;;
--id=*)
id=$optarg
;;
--version=*)
version=$optarg
;;
--vendor=*)
vendor=$optarg
;;
--exec=*)
exec=$optarg
;;
--required-memory=*)
req... | Shell |
for arg in "$@"
do
case $arg in
*=*) optarg=`expr "X$arg" : '[^=]*=\(.*\)'` ;;
esac
case "$arg" in
--name=*)
name=$optarg
;;
--id=*)
id=$optarg
;;
--version=*)
version=$optarg
;;
--bundle-name=*)
bundleName=$optarg
;;
--exec=*)
exec=$optarg
;;
--vendor=*)
vendor=$optarg
... | Shell |
#!/bin/sh
# Run this to set up the build system: configure, makefiles, etc.
# (based on the version in enlightenment's cvs)
package="vorbisdec"
olddir=`pwd`
srcdir=`dirname $0`
test -z "$srcdir" && srcdir=.
cd "$srcdir"
DIE=0
echo "checking for autoconf... "
(autoconf --version) < /dev/null > /dev/null 2>&1 || {
... | Shell |
NEW=
for def in $2; do
NEW="${NEW}#define ${def/=/ }
"
done
for inc in $3; do
NEW="${NEW}#include $inc
"
done
for inc in $4; do
NEW="${NEW}#include_next $inc
"
done
if [ -f $1 ]; then
OLD=`cat $1`"
"
#echo -n "$NEW"
#echo -n "$OLD"
if [[ "$NEW" == "$OLD" ]]; then
exit 0
fi
fi
#echo "writing config to $1"
... | Shell |
g++-4.5 -std=gnu++0x -I../../../.. -o generate generate.cpp
| Shell |
java -cp examples.jar:../lib/morena.jar:../lib/morena_license.jar:../lib/morena_osx.jar -Dmorena.debug=true HelloWorld
| Shell |
java -cp examples.jar:../lib/morena.jar:../lib/morena_license.jar:../lib/morena_osx.jar -Dmorena.debug=true ListSaneOptionsExample
| Shell |
java -Duser.language=en -Duser.country=en -cp examples.jar:../lib/morena.jar:../lib/morena_license.jar:../lib/morena_osx.jar MorenaCapabilitiesExample
| Shell |
java -cp examples.jar:../lib/morena.jar:../lib/morena_license.jar:../lib/morena_osx.jar -Dmorena.debug=true TwainAutomatedTest
| Shell |
java -cp examples.jar:../lib/morena.jar:../lib/morena_license.jar:../lib/morena_osx.jar -Dmorena.debug=true MorenaStudio
| Shell |
#!/bin/sh
#
# Detects OS we're compiling on and outputs a file specified by the first
# argument, which in turn gets read while processing Makefile.
#
# The output will set the following variables:
# CC C Compiler path
# CXX C++ Compiler path
# PLATFORM_LDFLAGS ... | Shell |
#!/bin/bash
if [ $# != 1 ]
then
echo "Usage: $0 emailAddress"
exit 1
fi
read -s -p "Password: " mypassword
echo ""
curl https://www.google.com/accounts/ClientLogin -d Email=$1 -d "Passwd=$mypassword" -d accountType=GOOGLE -d source=Google-cURL-Example -d service=ac2dm
| Shell |
#!/bin/sh
# Create a backup tar gzip file of the cwd with the date appended
# located in the parent directory.
FILENAME=../`pwd|xargs basename`-`date -j "+%Y-%m-%d"`.tgz
echo Will create $FILENAME
tar cfz $FILENAME .
echo Done.
| Shell |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.