code
stringlengths
1
1.96M
language
stringclasses
1 value
#!/bin/sh if [ ! -z $1 ]; then echo "Usage: $0 dict-dir" exit 0 fi if [ "$UID" != "0" ] && [ "$EUID" != "0" ]; then echo "ERROR: Your UID/EUID isn't 0. You need to root to run some tests. Use sudo or run as root.\n" exit 1; fi # TCP Port-based tests # Continue with these while we wait for UDP scan to finish tc...
Shell
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head profile="http://selenium-ide.openqa.org/profiles/test-case"> <meta http-equiv="Content-Type" cont...
Shell
#!/bin/bash schemagen -cp bin/classes testful.model.xml.XmlClass testful.model.xml.behavior.Behavior mv schema1.xsd testful.xsd mv schema2.xsd behavior.xsd
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 # # 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/sh EXPECTED_ARGS=1 REPO=https://yaoqingka.googlecode.com/svn/trunk if [ $# -ne $EXPECTED_ARGS ] then echo "Usage: `basename $0` {local/live}" exit 1 fi if [ "$1" = "local" ]; then echo local else if [ "$1" = "live" ]; then echo Deploy yaoqingka to live TMP=`mktemp -d` cd $TMP /usr/bin/svn export https...
Shell
#!/bin/sh EXPECTED_ARGS=1 REPO=https://yaoqingka.googlecode.com/svn/trunk if [ $# -ne $EXPECTED_ARGS ] then echo "Usage: `basename $0` {local/live}" exit 1 fi if [ "$1" = "local" ]; then echo local else if [ "$1" = "live" ]; then echo Deploy yaoqingka to live TMP=`mktemp -d` cd $TMP /usr/bin/svn export https...
Shell
#!/bin/bash wget --delete-after "http://www.weimingge.com/message/sendemail?ctl=1686825444&crc=e233847ad0507ae1d0890633ced692b9" exit 0
Shell
#!/bin/bash # GENERAL CONFIGURATION # DUMP_DST=/root/ PROJECT_NAME=yaoqingka PROJECT_BASE=/root/ DTE="`date +%Y-%m-%d`" DUMP=${DUMP_DST}yaoqingka.$DTE.tar.gz # DB CONFIGURATION # DB=yaoqingka DBDUMP=yaoqingka.db.sql cd $PROJECT_BASE `mysqldump -u root -p $DB > $DBDUMP` || exit 1 tar -zcvpf $DUMP $PROJECT_NAME $DBD...
Shell
#!/bin/bash wget --delete-after "http://www.weimingge.com/message/sendemail?ctl=1686825444&crc=e233847ad0507ae1d0890633ced692b9" exit 0
Shell
#!/bin/bash # GENERAL CONFIGURATION # DUMP_DST=/root/ PROJECT_NAME=yaoqingka PROJECT_BASE=/root/ DTE="`date +%Y-%m-%d`" DUMP=${DUMP_DST}yaoqingka.$DTE.tar.gz # DB CONFIGURATION # DB=yaoqingka DBDUMP=yaoqingka.db.sql cd $PROJECT_BASE `mysqldump -u root -p $DB > $DBDUMP` || exit 1 tar -zcvpf $DUMP $PROJECT_NAME $DBD...
Shell
#!/bin/sh # 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. set -e gcc $(go env GOGCCFLAGS) -shared -o libcgosotest.so cgoso_c.c go build main.go LD_LIBRARY_PATH=. ./main rm -f libcgosotest.so main
Shell
#!/bin/sh # Copyright 2009 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. set -e go build hello.go go build fib.go go build chain.go echo '*' hello >run.out ./hello >>run.out echo '*' fib >>run.out ./fib >>run.out echo '*' ch...
Shell
#!/bin/sh # Copyright 2010 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. set -e go build -o life main.go echo '*' life >run.out ./life >>run.out diff run.out golden.out rm -f life
Shell
#!/usr/bin/env bash # Copyright 2010 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 is a small script for executing go binaries on the android platform. # # example: # ./a 5.out foo bar baz # # The script exports the l...
Shell
#!/bin/bash GOROOT=/usr/local/go echo "Fixing permissions" cd $GOROOT find . -exec chmod ugo+r \{\} \; find bin -exec chmod ugo+rx \{\} \; find . -type d -exec chmod ugo+rx \{\} \; chmod o-w . echo "Fixing debuggers via sudo.bash" # setgrp procmod the debuggers (sudo.bash) cd $GOROOT/src ./sudo.bash echo "Installin...
Shell
#!/bin/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. set -e if ! test -f ../../src/all.bash; then echo >&2 "package.bash must be run from $GOROOT/misc/osx" exit 1 fi echo >&2 "Locating PackageMaker......
Shell
#!/bin/sh # 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. case "$1" in -*) echo 'usage: benchcmp old.txt new.txt' >&2 echo >&2 echo 'Each input file should be go test -test.run=NONE -test.bench=. > [old,new...
Shell
#!/usr/bin/env bash # Copyright 2012 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. # Illustrates how a Go language specification can be installed for Xcode 4.x., # to enable syntax coloring, by adding an entry to a plugindata...
Shell
#!/usr/bin/env bash # Copyright 2009 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. set -e case "`uname`" in Darwin) ;; *) exit 0 esac eval $(go env) if ! [ -x $GOTOOLDIR/cov -a -x $GOTOOLDIR/prof ]; then echo "You don't n...
Shell
#!/usr/bin/env bash # Copyright 2009 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. set -e if [ ! -f make.bash ]; then echo 'all.bash must be run from $GOROOT/src' 1>&2 exit 1 fi . ./make.bash --no-banner bash run.bash --no-r...
Shell
#!/usr/bin/env bash # Copyright 2009 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. # Environment variables that control make.bash: # # GOROOT_FINAL: The expected final Go root, baked into binaries. # The default is the locatio...
Shell
#!/bin/sh # Copyright 2009 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. trap "rm -f arch_GOARCH.h defs_GOOS_GOARCH.h os_GOOS.h signals_GOOS.h" EXIT INT TERM set -e SYS=$1 export GOOS=$(echo $SYS | sed 's/_.*//') export GOARC...
Shell
#!/usr/bin/env bash # Copyright 2009 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. # Generate Go code listing errors and other #defined constant # values (ENAMETOOLONG etc.), by asking the preprocessor # about the definitions....
Shell
#!/usr/bin/env bash # Copyright 2009 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. # Generate Go code listing errors and other #defined constant # values (ENAMETOOLONG etc.), by asking the preprocessor # about the definitions....
Shell
#!/usr/bin/env bash # Copyright 2009 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. set -e eval $(go env) unset CDPATH # in case user has it set unset GOPATH # we disallow local import for non-local packages, if $GOROOT ha...
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 the .zip, index, and configuration files for running # godoc on app-engine. # # If an argument is provided it is assumed...
Shell
#!/bin/sh # Copyright 2009 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. # Generate builtin.c from $* (runtime.go and unsafe.go). # Run this after changing runtime.go and unsafe.go # or after changing the export metadata forma...
Shell
#!/bin/sh # Copyright 2012 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. go help documentation > doc.go gofmt -w doc.go
Shell
#!/bin/bash # Copyright 2012 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. set -e go build -o testgo ok=true unset GOPATH unset GOBIN # Test that error messages have file:line information # at beginning of line. for i in t...
Shell
#!/bin/sh x() { echo '--- ' "$@" "$@" echo '---' echo } x go help x go help build x go help clean x go help install x go help fix x go help fmt x go help get x go help list x go help test x go help version x go help vet x go help gopath x go help importpath x go help remote
Shell
#!/usr/bin/env bash # Copyright 2009 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. set -e eval $(go tool dist env) if [ ! -x $GOTOOLDIR/dist ]; then echo 'cannot find $GOTOOLDIR/dist; nothing to clean' >&2 exit 1 fi "$GOB...
Shell
#!/usr/bin/env bash # Copyright 2010 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. set -e wiki_pid= cleanup() { kill $wiki_pid rm -f test_*.out Test.txt final-test.bin final-test.go } trap cleanup 0 INT go build -o get.bin ...
Shell
#!/usr/bin/env bash # Copyright 2009 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. set -e goos=$(go env GOOS) defer_panic_recover=" defer defer2 " effective_go=" eff_bytesize eff_qr eff_sequence " error_handling=" er...
Shell
#!/bin/sh # Copyright 2012 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 rebuilds the time zone files using files # downloaded from the ICANN/IANA distribution. # Versions to use. CODE=2011i DATA=2011n set -e ...
Shell
#!/bin/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. # Test the code review plugin. # Assumes a local Rietveld is running using the App Engine SDK # at http://localhost:7777/ # # dev_appserver.py -p 7777...
Shell
#!/usr/bin/env bash # Copyright 2009 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. eval $(go tool dist env) export GOARCH GOOS GOROOT export E= case X"$GOARCH" in Xamd64) export A=6 ;; X386) export A=8 ;; Xarm) export A=...
Shell
#!/bin/sh make clean rm `find ./ -print | grep '~'` wc * `find ./ -print | grep -v '.bin' | grep -v '.img' | grep -v '.ppt' | grep -v '.pptx' | grep -v '.mod'`
Shell
#!/bin/sh BIN_KERNEL="kernel.bin" DISK_INITRD="initrd.img" TEMP_CD="cdrom" GRUB_DIR="GRUB" OS_DIR="OS" FILES_DIR="files" GRUB_PATH="$TEMP_CD/boot/grub" GRUB_CONF="$GRUB_PATH_CD/grub.cfg" MENU_CONF="$GRUB_DIR/CD/grub.cfg" PATH_KERNEL="$TEMP_CD/root" PATH_INITRD="$TEMP_CD/initrd" KERNEL="$OS_DIR/release/$BIN_KERNEL" KE...
Shell
#!/bin/bash pyuic4 ui/mainWindow.ui > mainWindow.py pyrcc4 -o mainWindow_rc.py ui/mainWindow.qrc
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 APPDIR=`dirname $0`; java -cp "$APPDIR/src:$APPDIR/bin:$SDKJAR" com.google.gwt.i18n.tools.I18NSync -out $APPDIR/src com.google.livingstories.client.lsp.LspMessages -createMessages ;
Shell
#!/bin/sh APPDIR=`dirname $0`; java -cp "$APPDIR/src:$APPDIR/bin:$SDKJAR" com.google.gwt.i18n.tools.I18NSync -out $APPDIR/src com.google.livingstories.client.contentmanager.ContentManagerConstants ;
Shell
#!/bin/sh APPDIR=`dirname $0`; java -cp "$APPDIR/src:$APPDIR/bin:$SDKJAR" com.google.gwt.i18n.tools.I18NSync -out $APPDIR/src com.google.livingstories.client.lsp.LspConstants ;
Shell
#!/bin/sh APPDIR=`dirname $0`; java -cp "$APPDIR/src:$APPDIR/bin:$SDKJAR" com.google.gwt.i18n.tools.I18NSync -out $APPDIR/src com.google.livingstories.client.ClientConstants ;
Shell
# This shell script compiles the gxps in the project. If you add a new gxp source directory, # add that as an argument to the compiler here as well. java -cp war/WEB-INF/lib/gxp-0.2.4-beta.jar com.google.gxp.compiler.cli.Gxpc --dir genfiles --source src --output_language java src/com/google/livingstories/gxps/*.gxp
Shell
#!/bin/sh APPDIR=`dirname $0`; java -cp "$APPDIR/src:$APPDIR/bin:$SDKJAR" com.google.gwt.i18n.tools.I18NSync -out $APPDIR/src com.google.livingstories.client.contentmanager.ContentManagerMessages -createMessages ;
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 t...
Shell
#!/bin/bash base=`dirname $0` ROBOT_SYSLOG_FILE=$base/tmp/syslog.txt python $base/src/robot/runner.py -P $base/atest/testresources/testlibs -P $base/tmp -L debug -d $base/tmp "$@"
Shell
#!/bin/bash pybot --outputdir results --exclude parallel atest/
Shell
#!/bin/bash cd $1 rm *.xml *html unzip outputs.zip command="rebot --name Robot_Framework_Acceptance_Tests --splitoutputs 1 output.xml" echo "Executing command: " $command $command exit $?
Shell
#!/bin/bash OUTPUTDIR=/opt/cruisecontrol/logs/robot-core BACKUPDIR=$OUTPUTDIR/old/$(date +%Y%m%d-%H%M%S) OUT=$OUTPUTDIR/output.txt cd /opt/cruisecontrol/projects/robot-core rm -rf atest/results echo 'Running Robot Acceptance Tests' >$OUT echo -n 'Date: ' >>$OUT date -R >>$OUT echo >>$OUT echo '1) svn update' >>$OUT...
Shell
#!/bin/bash python src/robot/rebot.py $1 >/dev/null & #/usr/lib/jvm/java-6-sun/jre/bin/java -Xmx1024m -Xss1024k -classpath /home/jth/opt/jython2.5.1/jython.jar: -Dpython.home=/home/jth/opt/jython2.5.1 -Dpython.executable=/home/jth/opt/jython2.5.1/jython org.python.util.jython src/robot/rebot.py $1 >/dev/null & rebotpid...
Shell
ROOTDIR=`dirname $0`/.. LIBPATH=$ROOTDIR/lib SRCPATH=$ROOTDIR/src TESTDATA=$ROOTDIR/atest/vacalc CP=$LIBPATH/robotframework-2.5.4.1.jar:$LIBPATH/swinglibrary-1.1.1.jar:$ROOTDIR/bin/ CLASSPATH=$CP java org.robotframework.RobotFramework -P $SRCPATH -P $ROOTDIR/atest/libraries $* --outputdir $ROOTDIR/results --critical re...
Shell
java -cp lib/robotframework-2.5.4.1.jar:bin/ -Dpython.path=src org.robotframework.vacalc.VacalcRunner
Shell
#!/bin/bash #downloads the project dependencies to lib directory wget -P lib http://robotframework.googlecode.com/files/robotframework-2.5.4.1.jar wget -P lib http://robotframework-swinglibrary.googlecode.com/files/swinglibrary-1.1.1.jar
Shell
CLASSPATH=lib/robotframework-2.5.3.jar javac -d bin src/org/robotframework/vacalc/*java
Shell
#!/bin/sh javac -target 1.5 -source 1.5 testlibs/*.java javac -cp $JYTHON_HOME/jython.jar -target 1.5 -source 1.5 listeners/*.java
Shell
#!/bin/bash basedir=$PWD/test pybot --loglevel DEBUG --log none --report none --outputdir $basedir $basedir/example.html python $basedir/../statuschecker.py $basedir/output.xml rebot $basedir/output.xml
Shell
#!/bin/bash dirname=robotframework-c-example zipname=$dirname-$(date +%Y%m%d).zip files="README.txt login.c LoginLibrary.py LoginTests.tsv Makefile" rm -rf $dirname $zipname mkdir $dirname echo Copying... for file in $files; do cp -v $file $dirname done echo Zipping... zip -r $zipname $dirname rm -rf $dirname ech...
Shell
# -*- sh -*- # x-tools generation helper functions # # Copyright (c) 2013, Stany MARCEL <stanypub@gmail.com> # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # * Redistributions of source code ...
Shell
#!/bin/bash # ===================================================================== [ -z "${VERSION}" ] && VERSION=4.9-$(date +%Y.%m) TARGET=m68k-none-elf GCCCPU=5475 GCCARCH=cf # ===================================================================== # Options # Set to 1 to build GDB with python support GDBPYTHON=1 ...
Shell
#!/bin/bash # ===================================================================== [ -z "${VERSION}" ] && VERSION=4.9-$(date +%Y.%m) # ===================================================================== # Options # Set to 1 to build GDB with python support GDBPYTHON=1 # Language support to build (usualy c or c,c+...
Shell
#!/bin/bash # ===================================================================== [ -z "${VERSION}" ] && VERSION=4.9-$(date +%Y.%m) TARGET=arm-none-eabi HOST=i686-w64-mingw32.static # ===================================================================== # Options # Set to 1 to build GDB with python support GDBPYTH...
Shell
#!/bin/bash # ===================================================================== [ -z "${VERSION}" ] && VERSION=4.9-$(date +%Y.%m) TARGET=powerpc-none-eabi GCCCPU= GCCARCH= # ===================================================================== # Options # Set to 1 to build GDB with python support GDBPYTHON=1 #...
Shell
#!/bin/bash # ===================================================================== [ -z "${VERSION}" ] && VERSION=4.9-$(date +%Y.%m) TARGET=powerpc-none-eabi HOST=i686-w64-mingw32.static GCCCPU= GCCARCH= # ===================================================================== # Options # Set to 1 to build GDB with ...
Shell
#!/bin/bash # ===================================================================== [ -z "${VERSION}" ] && VERSION=4.9-$(date +%Y.%m) TARGET=arm-none-eabi # ===================================================================== # Options # Set to 1 to build GDB with python support GDBPYTHON=1 # Language support to b...
Shell
#!/bin/bash # ===================================================================== [ -z "${VERSION}" ] && VERSION=4.9-$(date +%Y.%m) TARGET=tools HOST=i686-w64-mingw32.static # ===================================================================== SCRIPT_DIR="$(dirname $0)" SCRIPT_NAME="$(basename $0)" # ============...
Shell
GCC=gcc-linaro-4.9-2015.02 NEWLIB=newlib-2.2.0-1 NEWLIBNANO=newlib-nano-2-9312658e6a71651bf4fb9c4b5ee06ed2356bd14a BINUTILS=binutils-2.25 GDB=gdb-7.9 GMP=gmp-5.1.3 MPFR=mpfr-3.1.2 MPC=mpc-1.0.3 EXPAT=expat-2.1.0 MXE=3a66d4e513ed1b1ce82b7e6fcfa30ff05598b696 QEMU=qemu-2.2.0 LIBUSB=libusb-1.0.19 LIBFTDI=libftdi-0.20 LIBFT...
Shell
#!/bin/bash # This script install dependencies required to build the different tools if [ $UID -ne 0 ]; then echo "Please run as root" echo "on ubuntu you can use 'sudo $0'" exit 1 fi install=$(which apt-get 2>/dev/null || which yum 2>/dev/null) case $install in */apt-get) apt-get -y install nsis ...
Shell
#!/bin/bash # ===================================================================== [ -z "${VERSION}" ] && VERSION=4.9-$(date +%Y.%m) TARGET=m68k-none-elf HOST=i686-w64-mingw32.static GCCCPU=5475 GCCARCH=cf # ===================================================================== # Options # Set to 1 to build GDB wit...
Shell
#!/bin/bash # ===================================================================== [ -z "${VERSION}" ] && VERSION=4.9-$(date +%Y.%m) TARGET=tools # ===================================================================== SCRIPT_DIR="$(dirname $0)" SCRIPT_NAME="$(basename $0)" # ========================================...
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/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 file=$1 if [ -z "${file}" ] ; then echo "please provide file ond cmd line" exit 1 fi hash=$(mktemp) md5sum $@ > $hash groovy $file while [ 1 -eq 1 ]; do if md5sum -c $hash 2>&1 | grep -q NOT ; then groovy $file md5sum $@ > $hash else sleep 1; fi done
Shell
#!/bin/bash file=$1 if [ -z "${file}" ] ; then echo "please provide file ond cmd line" exit 1 fi hash=$(mktemp) md5sum $@ > $hash groovy $file while [ 1 -eq 1 ]; do if md5sum -c $hash 2>&1 | grep -q NOT ; then groovy $file md5sum $@ > $hash else sleep 1; fi done
Shell
#!/bin/bash g++ YJDialog.cpp -I/usr/include/YaST2/yui -lyuiNo process is currently running
Shell
#!/bin/bash g++ YJDialog.cpp -I/usr/include/YaST2/yui -lyuiNo process is currently running
Shell
#!/bin/sh # Oracle specific export TWO_TASK=balance-dev.yandex.ru export ORACLE_HOME=/opt/oracle/instantclient_10_2 export LD_LIBRARY_PATH=/opt/oracle/instantclient_10_2 export NLS_NUMERIC_CHARACTERS=. export NLS_SORT=RUSSIAN export NLS_LANG=AMERICAN_CIS.UTF8 YBORM_DBTYPE="@YBORM_DBTYPE@" \ YBORM_DB="@YBORM_DB@" \ Y...
Shell
#!/bin/sh for x in *.en.html *.ru.html ; do y=`echo -n $x | sed 's/\(.*\)[.]\(en\|ru\)[.]html/\2_\1.md/'` echo $x $y python ./html2text.py $x > $y sed -i 's/\([A-Za-z0-9]*\)[.]\(en\|ru\)[.]html/\2_\1/g' $y sed -i 's+pics/+https://raw.githubusercontent.com/vnaydionov/yb-orm/master/doc/pics/+g' $y do...
Shell
cat $1 | sed 's/<\([^>]*\)\(TABLE\)[^>]*>/<\1table>/g' | sed 's/<\([^>]*\)\(STRONG\)[^>]*>/<\1strong>/g' | sed 's/<\([^>]*\)\(TR\)[^>]*>/<\1tr>/g' | sed 's/<\([^>]*\)\(TH\)[^>]*>/<\1th>/g' | sed 's/<\([^>]*\)\(TD\)[^>]*>/<\1td>/g' | sed 's/<\([^>]*\)\(TT\)[^>]*>/<\1tt>/g' | sed 's/<\([^>]*...
Shell
#!/bin/sh YBORM_DBTYPE="@YBORM_DBTYPE@" \ YBORM_DB="@YBORM_DB@" \ YBORM_USER="@YBORM_USER@" \ YBORM_PASSWD="@YBORM_PASSWD@" \ YBORM_URL="@YBORM_URL@" \ `dirname $0`/example1
Shell
#!/bin/sh YBORM_DBTYPE="@YBORM_DBTYPE@" \ YBORM_DB="@YBORM_DB@" \ YBORM_USER="@YBORM_USER@" \ YBORM_PASSWD="@YBORM_PASSWD@" \ YBORM_URL="@YBORM_URL@" \ `dirname $0`/auth
Shell
#!/bin/sh if hash libtoolize 2>&- then libtoolize --automake --copy --force else glibtoolize --automake --copy --force fi && autoheader && rm -rf aclocal.m4 && aclocal -I . && autoconf && automake --foreign --add-missing --copy
Shell
#!/bin/sh YBORM_DBTYPE="@YBORM_DBTYPE@" \ YBORM_DB="@YBORM_DB@" \ YBORM_USER="@YBORM_USER@" \ YBORM_PASSWD="@YBORM_PASSWD@" \ YBORM_URL="@YBORM_URL@" \ `dirname $0`/example2
Shell
#!/bin/sh if hash libtoolize 2>&- then libtoolize --automake --copy --force else glibtoolize --automake --copy --force fi && autoheader && rm -rf aclocal.m4 && aclocal -I . && autoconf && automake --foreign --add-missing --copy
Shell
#!/bin/bash source ../../version.pri DIST=`lsb_release -s -i` RELEASE=`lsb_release -s -r` MACHINE=`uname -m` TGZ_PREFIX=Drishti-$VERSION rm -rf $TGZ_PREFIX TGZ_BIN=$TGZ_PREFIX/bin TGZ_LIB=$TGZ_PREFIX/lib TGZ_DOC=$TGZ_PREFIX/doc TGZ_PLUGINS=$TGZ_PREFIX/plugins TGZ_TRANSLATIONS=$TGZ_PREFIX/translations mkdir -p $TG...
Shell
#!/bin/bash mkdir -p ../../3rdParty/build pushd ../../3rdParty/build FETCH="curl -f" FETCH_URL="http://sf.anu.edu.au/~rph900/drishti/3rdParty" INSTALL_PREFIX=`pwd`/.. MACHINE=`uname -m` if [ "$MACHINE" == "x86_64" ]; then echo "64 bit" pushd .. rm -rf lib64 mkdir -p lib ln -s lib lib64 popd fi prep() {...
Shell
#!/bin/sh source scripts/common.sh #################################################################################################### DRISHTI_BASENAME="Drishti" DRISHTI_DIR="../../drishti" DRISHTI_APP_BUNDLE_DIR=${BUILD_PRODUCTS_DIR}/${DRISHTI_BASENAME}.app DRISHTI_APP_FRAMEWORK_DIR=${DRISHTI_APP_BUNDLE_DIR}/Cont...
Shell
#!/bin/sh source scripts/common.sh #################################################################################################### PAINT_VERSION=${DRISHTI_VERSION} PAINT_BASENAME="Paint" PAINT_DIR="../../tools/paint" PAINT_APP_BUNDLE_DIR=${BUILD_PRODUCTS_DIR}/${PAINT_BASENAME}.app PAINT_APP_FRAMEWORK_DIR=${PAI...
Shell
#!/bin/sh report "Building Third Party dependencies...\n" mkdir -p ../../3rdParty mkdir -p ../../3rdParty/build source scripts/common.sh source scripts/build-freetype.sh || exit 1 source scripts/build-glew.sh || exit 1 source scripts/build-gsfonts.sh || exit 1 source scripts/build-libjpeg.sh || exit 1 source scrip...
Shell