code
stringlengths
1
1.96M
language
stringclasses
1 value
#!/bin/bash ./limpa2.rb|./indexa2.rb|./monta3.rb
Shell
#!/bin/sh APPDIR=$(dirname "$0") java -Djava.library.path="$APPDIR" -cp "$APPDIR/lib/AnemProgrammer.jar:$APPDIR/lib/core.jar:$APPDIR/lib/serial.jar:$APPDIR/lib/RXTXcomm.jar" AnemProgrammer
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
unzip -o ../../1218-xabber.zip -d ../ find ../res/ -name faq.xml -delete perl -pi -w -e 's/&([l|g]t;)/&$1/g' $(find ../res/ -path ../res/values*.xml) perl -pi -w -e "s/\\\\\\\\'/\\\\'/g" $(find ../res/ -path ../res/values*.xml) for i in `find ../res/ -type d -name value*`; do echo $i git diff ^HEAD $i | gre...
Shell
#!/bin/bash svn --force export http://svn.scipy.org/svn/scipy/trunk/scipy/sparse/sparsetools/bsr.h svn --force export http://svn.scipy.org/svn/scipy/trunk/scipy/sparse/sparsetools/coo.h svn --force export http://svn.scipy.org/svn/scipy/trunk/scipy/sparse/sparsetools/csc.h svn --force export http://svn.scipy.org/svn/sc...
Shell
#!/usr/bin/env bash ################################################################################ # # Bake is a shell script for running CakePHP bake script # PHP 5 # # CakePHP(tm) : Rapid Development Framework (http://cakephp.org) # Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) # # Licen...
Shell
#!/usr/bin/env bash ################################################################################ # # Bake is a shell script for running CakePHP bake script # PHP 5 # # CakePHP(tm) : Rapid Development Framework (http://cakephp.org) # Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) # # Licen...
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 # # 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 # # Copyright 2007 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 # # Copyright 2011 Google Inc. All Rights Reserved. # Author: jcgregorio@google.com (Joe Gregorio) # # Uploads a training data set to Google Storage to be used by this sample # application. # # Usage: # setup.sh bucket/object # # Requirements: # gsutil - a client application for interacting with Google ...
Shell
export PYTHONPATH=`pwd`:${PYTHONPATH}
Shell
#!/bin/bash # set -uex curl 'http://localhost:9100/list-games'
Shell
#!/bin/bash # set -ue set -x curl -H "Content-Type: application/json" "http://localhost:12345/ping"
Shell
#!/bin/bash # set -ue backend="" # match dev_appserver oauth2 default user_id userID="0" while [ $# -ge 1 ] do arg="$1" shift if [ "$arg" == "-b" ] then backend=1 else userID="$arg" fi done if [ "$backend" ] then # matcher backend set -x curl --data-binary "{}" -H "Content-Type: applicatio...
Shell
#!/bin/bash # set -uex dev_appserver.py --address 0.0.0.0 --skip_sdk_update_check --backends . $*
Shell
#!/bin/bash # set -uex curl 'http://localhost:9100/debug'
Shell
#!/bin/bash # set -uex curl 'http://localhost:9100/start-game'
Shell
#!/bin/bash # set -ue set -x curl -H "Content-Type: application/json" "http://localhost:12345/log"
Shell
#!/bin/bash # set -ue # make sure stuff is installed [ ! -d 'node_modules' ] && npm install socket.io express set -x # run the game node games-server/main.js $*
Shell
#!/bin/bash # set -ue pairing_key=$( cat shared/pairing-key.json | sed -e 's/{"key": "//' -e 's/".*//' ) set -x data='{ "userID": 823478923748932, "displayName": "fredsa", "game_name": "syXv", "player_game_key": "283473289478329" }' curl --data-binary "$data" -H "Content-Type: application/json" "http://localhost:1234...
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 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
#!/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
#!/bin/rc -e # 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. if(! test -f make.rc){ echo 'all.rc must be run from $GOROOT/src' >[1=2] exit wrongdir } . ./make.rc --no-banner ./run.rc --no-rebuild $GOTOOLDIR/d...
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
#!/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. 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
#!/bin/rc -e # 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. # Environment variables that control make.rc: # # GOROOT_FINAL: The expected final Go root, baked into binaries. # The default is the location of the ...
Shell
#!/bin/rc -e # 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. eval `{go env -9} # allow all.rc to avoid double-build of everything rebuild = true if(~ $1 --no-rebuild) shift if not { echo '# Building packages ...
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 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
#!/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 # 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/rc -e # 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. eval `{go tool dist env -9} if(! test -x $GOTOOLDIR/dist){ echo 'cannot find $GOTOOLDIR/dist; nothing to clean' >[1=2] exit noclean } $GOBIN/go cl...
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 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
#!/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
#!/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 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
#!/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/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/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 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/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 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
#!/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 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
#! /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 SCRIPTDIR=`dirname $0` cd $SCRIPTDIR/.. RED="0.5 0.5 0.5 0 0 0 0 0 0" GREEN="0 0 0 0.5 0.5 0.5 0 0 0" for x in btn_zoom_down_disabled.9 btn_zoom_down_disabled_focused.9 btn_zoom_down_normal.9 btn_zoom_up_disabled.9 btn_zoom_up_disabled_focused.9 btn_zoom_up_normal.9 btn_zoom_width_normal ; do conv...
Shell
#!/bin/sh # make sure ndk-build is in path SCRIPTDIR=`dirname $0` MUPDF_FILE=mupdf-1.1-source.tar.gz MUPDF=mupdf-1.1-source FREETYPE=freetype-2.4.10 OPENJPEG=openjpeg-1.5.1 JBIG2DEC=jbig2dec-0.11 JPEGSRC=jpegsrc.v8d.tar.gz JPEGDIR=jpeg-8d cd $SCRIPTDIR/../deps tar xvf $FREETYPE.tar.bz2 tar xvf $JPEGSRC tar xvf $MUPDF...
Shell
#!/bin/sh SCRIPTDIR=`dirname $0` cd $SCRIPTDIR/.. for x in upfolder folder home recent1 recent2 recent3 recent4 recent5 ; do convert res/drawable-hdpi/$x.png -resize 66.7% res/drawable-mdpi/$x.png convert res/drawable-hdpi/$x.png -resize 50% res/drawable-ldpi/$x.png done
Shell
#!/bin/bash # # Copyright 2007 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 # # Copyright 2011 Google Inc. All Rights Reserved. # Author: jcgregorio@google.com (Joe Gregorio) # # Uploads a training data set to Google Storage to be used by this sample # application. # # Usage: # setup.sh bucket/object # # Requirements: # gsutil - a client application for interacting with Google ...
Shell
export PYTHONPATH=`pwd`:${PYTHONPATH}
Shell
#!/bin/bash PYTHONPATH=LIBDIR:$PYTHONPATH GTKMOZEMBED_PATH python LIBDIR/cf/__init__.py "$@"
Shell
#!/bin/sh if [ "$1" = "win7" ] ; then DSTVERSION="7" elif [ "$1" = "winxp" ] ; then DSTVERSION="XP" else echo "Usage: MakeRelease.sh [win7|winxp] [chk]" exit fi if [ "$2" = "chk" ] ; then FRECHK="chk" else FRECHK="fre" fi DSTDIR="Release $DSTVERSION" ARCHIVE="ghost-win$DSTVERSION.zip" if [ "$DSTVERSION" = "7" ...
Shell
#!/usr/bin/env bash ############################################################################## ## ## Gradle start up script for UN*X ## ############################################################################## # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to ...
Shell
#!/bin/bash -u # -*- mode: shell-script; mode: flyspell-prog; -*- # # Copyright (c) 2010, Tadashi G Takaoka # 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 m...
Shell
#!/bin/bash # -*- mode: shell-script; mode:flyspell-prog; -*- # # Copyright (c) 2010, Tadashi G Takaoka # 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 must ...
Shell
#!/bin/bash # -*- mode: shell-script; mode: flyspell-prog; -*- # # Copyright (c) 2010, Tadashi G Takaoka # 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 must...
Shell
#!/bin/bash # -*- mode: shell-script; mode: flyspell-prog; -*- # # Copyright (c) 2010, Tadashi G Takaoka # 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 must...
Shell
#!/bin/bash # -*- mode: shell-script; mode: flyspell-prog; -*- # # Copyright (c) 2010, Tadashi G Takaoka # 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 must...
Shell
#!/bin/bash # -*- mode: shell-script; mode: flyspell-prog; -*- # # Copyright (c) 2010, Tadashi G Takaoka # 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 must...
Shell
#!/bin/bash -u # -*- mode: shell-script; mode: flyspell-prog; -*- # # Copyright (c) 2012, Tadashi G Takaoka # 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 m...
Shell
#!/bin/bash # -*- mode: shell-script; mode: flyspell-prog; -*- # # Copyright (c) 2010, Tadashi G Takaoka # 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 must...
Shell
#!/bin/bash -u # -*- mode: shell-script; mode: flyspell-prog; -*- # # Copyright (c) 2012, Tadashi G Takaoka # 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 m...
Shell
#!/bin/bash -u # -*- mode: shell-script; mode: flyspell-prog; -*- # # Copyright (c) 2010, Tadashi G Takaoka # 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 m...
Shell
#!/bin/bash -u # -*- mode: shell-script; mode: flyspell-prog; -*- # # Copyright (c) 2012, Tadashi G Takaoka # 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 m...
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/sh exec java -jar `rospack find rosjava`/dist/rosjava.jar org.ros.SlaveApiTestNode $@
Shell
#!/bin/sh exec java -jar `rospack find rosjava`/dist/rosjava.jar org.ros.ParameterServerTestNode $@
Shell
#!/bin/sh exec java -jar `rospack find rosjava`/dist/rosjava.jar org.ros.PassthroughTestNode $@
Shell
#!/bin/bash # Copyright (c) 2010 The ANGLE Project Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. # Generates GLSL ES parser - glslang_tab.h and glslang_tab.cpp script_dir=$(dirname $0) input_file=$script_dir/glslang.y output_header=...
Shell
#!/bin/bash # Copyright (c) 2010 The ANGLE Project Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. # Generates GLSL ES lexer - glslang_lex.cpp script_dir=$(dirname $0) input_file=$script_dir/glslang.l output_file=$script_dir/glslang_l...
Shell
#!/bin/bash # Copyright (c) 2010 The ANGLE Project Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. # Generates GLSL ES lexer - glslang_lex.cpp script_dir=$(dirname $0) input_file=$script_dir/glslang.l output_file=$script_dir/glslang_l...
Shell
#!/bin/bash # Copyright (c) 2010 The ANGLE Project Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. # Generates GLSL ES parser - glslang_tab.h and glslang_tab.cpp script_dir=$(dirname $0) input_file=$script_dir/glslang.y output_header=...
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 INSTALL_DIR="`pwd`/jni/libraw" SRC_DIR="`pwd`/../LibRaw-0.14.7" cd $SRC_DIR export TOOLCHAIN="$HOME/NVPACK/toolchain-14" export NDK="$HOME/NVPACK/android-ndk-r8b" export SYSROOT="$TOOLCHAIN/sysroot" export PATH="$TOOLCHAIN/bin:$SYSROOT/usr/local/bin:$PATH" export ARCH="armv7-a" export SYS_ROOT="$NDK_ROOT...
Shell
#!/bin/bash INSTALL_DIR="`pwd`/jni/exiv2" SRC_DIR="`pwd`/../exiv2-0.22" cd $SRC_DIR export TOOLCHAIN="$HOME/NVPACK/toolchain-14" export NDK="$HOME/NVPACK/android-ndk-r8b" export SYSROOT="$TOOLCHAIN/sysroot" export PATH="$TOOLCHAIN/bin:$SYSROOT/usr/local/bin:$PATH" export ARCH="armv7-a" export SYS_ROOT="$NDK_ROOT/pla...
Shell
#!/bin/sh SCRIPTDIR=`dirname $0` cd $SCRIPTDIR/.. RED="0.5 0.5 0.5 0 0 0 0 0 0" GREEN="0 0 0 0.5 0.5 0.5 0 0 0" for x in btn_zoom_down_disabled.9 btn_zoom_down_disabled_focused.9 btn_zoom_down_normal.9 btn_zoom_up_disabled.9 btn_zoom_up_disabled_focused.9 btn_zoom_up_normal.9 btn_zoom_width_normal ; do conv...
Shell
#!/bin/sh SCRIPTDIR=`dirname $0` cd $SCRIPTDIR/.. for x in upfolder folder home recent1 recent2 recent3 recent4 recent5 ; do convert res/drawable-hdpi/$x.png -resize 66.7% res/drawable-mdpi/$x.png convert res/drawable-hdpi/$x.png -resize 50% res/drawable-ldpi/$x.png done
Shell
#!/bin/sh # make sure ndk-build is in path SCRIPTDIR=`dirname $0` MUPDF_FILE=mupdf-snapshot-20111207.tar.gz MUPDF=mupdf #MUPDF_FILE=mupdf-0.9-source.tar.gz #MUPDF=mupdf-0.9 FREETYPE=freetype-2.4.6 OPENJPEG=openjpeg_v1_4_sources_r697 JBIG2DEC=jbig2dec-0.11 JPEGSRC=jpegsrc.v8a.tar.gz JPEGDIR=jpeg-8a cd $SCRIPTDIR/../de...
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/sh # Runs pylint on all python files in codereview/ # # Skips over 'cpplint' which is a third part in the chromium branch. # ROOT="$(dirname $(readlink -f $0))/.." cd "$ROOT" GAE="$ROOT/../google_appengine" FILES=$(find codereview -iname "*.py" | grep -v "cpplint") IMPORTS="$GAE:$GAE/lib/django-1.3:$GAE/lib/goog...
Shell
#!/bin/bash # Copyright (c) 2010 The ANGLE Project Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. # Generates GLSL ES parser - glslang_lex.cpp, glslang_tab.h, and glslang_tab.cpp run_flex() { input_file=$script_dir/$1.l output_source...
Shell
#!/bin/bash # Copyright (c) 2012 The ANGLE Project Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. # Generates various components of GLSL ES preprocessor. run_flex() { input_file=$script_dir/$1 output_source=$script_dir/$2 flex --noli...
Shell
#!/bin/sh # rough export PATH=$PATH:$JAVA_HOME/bin base=`dirname $0` export ALLOCATION_JAR=$base/lib/allocation.jar exec java -cp $base/lib/caliper-@VERSION@.jar:$ALLOCATION_JAR:$CLASSPATH com.google.caliper.Runner $*
Shell
#!/bin/sh # # run unit tests under nose if available, # optionally with coverage # # test.sh [cover [gluon.rewrite]] # # easy_install nose # easy_install coverage # NOSETESTS=nosetests COVER=gluon # change to (eg) gluon.rewrite to collect coverage stats on a single module PROCESSES=4 WHICH=`which $NOSETESTS` if ...
Shell
echo "This script will: 1) Install modules needed to run web2py on Fedora and CentOS/RHEL 2) Install Python 2.6 to /opt and recompile wsgi if not provided 2) Install web2py in /opt/web-apps/ 3) Configure SELinux and iptables 5) Create a self signed ssl certificate 6) Setup web2py with mod_wsgi 7) Create virtualhost ent...
Shell
# install virtualenv easy_install virtualenv python virtualenv.py w2env # install missing modules w2env/bin/easy_install -U pysqlite hashlib # donwload web2py and unpack wget http://web2py.com/examples/static/web2py_src.zip unzip web2py_src.zip cd web2py # start web2py using command-line script w2env/bin/python web2py....
Shell
#!/bin/bash echo 'setup-web2py-nginx-uwsgi-ubuntu-precise.sh' echo 'Requires Ubuntu 12.04 and installs Nginx + uWSGI + Web2py' # Get Web2py Admin Password echo -e "Web2py Admin Password: \c " read PW # Upgrade and install needed software apt-get update apt-get -y upgrade apt-get -y dist-upgrade apt-get...
Shell
# # Author: Christopher Steel # Organization: Voice of Access # Date: 2010-11-24 # License: Same as Web2py, MIT / GNU # Email: Christopher DOT Steel AT Voice of Access DOT org # # This script will : # download and install virtualenv # start a virtual environment # move into the virtual environment # download a...
Shell
#!/bin/bash # the script should be run # from WEB2PY root directory prog=`basename $0` cd `pwd` chmod +x $prog function web2py_start { nohup ./$prog -a "<recycle>" 2>/dev/null & pid=`pgrep $prog | tail -1` if [ $pid -ne $$ ] then echo "WEB2PY has been started." fi } function web2py_stop { kill -15 `p...
Shell
chown -R nobody:nobody *.py chown -R nobody:nobody gluon chown -R nobody:nobody scripts chown -R nobody:nobody applications/*/modules/ chown -R nobody:nobody applications/*/models/ chown -R nobody:nobody applications/*/controllers/ chown -R nobody:nobody applications/*/views/ chown -R nobody:nobody applications/*/stati...
Shell
#!/bin/bash # # /etc/rc.d/init.d/web2pyd # # Starts the Web2py Daemon on Fedora (Red Hat Linux) # # To execute automatically at startup # # sudo chkconfig --add web2pyd # # chkconfig: 2345 90 10 # description: Web2py Daemon # processname: web2pyd # pidfile: /var/lock/subsys/web2pyd source /etc/rc.d/init.d/fun...
Shell