code
stringlengths
1
1.96M
language
stringclasses
1 value
#!/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/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/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/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
#!/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 OLDPATH="$PATH" . ./make.bash --no-banner bash...
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 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. 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
#!/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
#!/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
#!/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/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
#!/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
#!/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. 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. # 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
#!/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 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
rm -f datalog_*.txt rm -f properties*.txt rm -f screenshot_*.bmp rm -f extract.dat* rm -f *.eps rm -f genomes*.log rm -f organism-sizes*.log rm -f organisms*.log rm -f output*.log rm -f location*.log
Shell
cp manyruns_traceDistance_template.gp tmp.many.d.gp cat $1 | grep monitorDistance | sed 's/monitorDistance:\ //' | sort -n -t, -k3,3n -k4,4n > tmp.many.rawdata python manyruns_aggregateValues.py >> tmp.many.d.gp gnuplot tmp.many.d.gp rm -f tmp.many.rawdata rm -f tmp.many.d.gp epspdf plot.manyruns.d.eps
Shell
#!/bin/bash DIR=$1 ARRAYSIZE=$2 # default was 100 GEN=$3 # default was 198 for i in "$DIR"/datalog*.txt do echo $i #cat $i | grep monitorOrientation | sed 's/monitorOrientation:\ //' | sort -n -t, -k3,3n -k4,4n | tail -n$ARRAYSIZE done for it in {0..99} do echo $it cat $DIR/datalog_*.txt | grep monitorOrientat...
Shell
#!/bin/bash DIR=$1 ARRAYSIZE=$2 # default was 100 GEN=$3 # default was 198 for it in {0..99} do #echo $it cat $DIR/datalog_*.txt | grep monitorOrientation | sed 's/monitorOrientation:\ //' | egrep [[:digit:]]\{1,3\}\\,[[:digit:]]\{1,3\}\\,$GEN\\,$it\\,[[:digit:]]\{1,3\} done
Shell
./monorun_traceDistance.sh $1 ./monorun_traceOrientation.sh $1
Shell
cp monorun_traceOrientation_template.gp tmp.o.gp cat $1 | grep monitorOrientation | sed 's/monitorOrientation:\ //' >> tmp.o.gp gnuplot tmp.o.gp rm -f tmp.o.gp epspdf plot.monorun.o.eps
Shell
#!/bin/bash DIR=$1 ARRAYSIZE=$2 # default was 100 GEN=$3 # default was 198 for it in {0..99} do #echo $it cat $DIR/datalog_*.txt | grep monitorDistance | sed 's/monitorDistance:\ //' | egrep [[:digit:]]\{1,3\}\\,[[:digit:]]\{1,3\}\\,$GEN\\,$it\\,[[:digit:]]\{1,3\} done
Shell
cp monorun_traceDistance_template.gp tmp.d.gp cat $1 | grep monitorDistance | sed 's/monitorDistance:\ //' >> tmp.d.gp gnuplot tmp.d.gp rm -f tmp.d.gp epspdf plot.monorun.d.pdf
Shell
cp manyruns_traceOrientation_template.gp tmp.many.o.gp cat $1 | grep monitorOrientation | sed 's/monitorOrientation:\ //' | sort -n -t, -k3,3n -k4,4n > tmp.many.rawdata python manyruns_aggregateValues.py >> tmp.many.o.gp gnuplot tmp.many.o.gp rm -f tmp.many.rawdata rm -f tmp.many.o.gp epspdf plot.manyruns.o.eps
Shell
./roborobo -l config/config_10_16.properties mkdir logs/exp_10_16 mv logs/datalog* logs/exp_10_16/ mv logs/properties* logs/exp_10_16/ mv logs/screenshot* logs/exp_10_16/ ./roborobo -l config/config_10_32.properties mkdir logs/exp_10_32 mv logs/datalog* logs/exp_10_32/ mv logs/properties* logs/exp_10_32/ mv logs/screen...
Shell
./manyruns_traceDistance.sh $1 ./manyruns_traceOrientation.sh $1
Shell
#!/bin/bash float_scale=2 function float_eval() { local stat=0 local result=0.0 if [[ $# -gt 0 ]]; then result=$(echo "scale=$float_scale; $*" | bc -q 2>/dev/null) stat=$? if [[ $stat -eq 0 && -z "$result" ]]; then stat=1; fi fi echo $result return $stat } cd Roborobo11 mkdir resu...
Shell
#!/bin/bash ### Set the simulation-specific parameters DIR=$(cd "$(dirname "$0")"; pwd -P) BASEDIR="$(dirname $DIR)/" TEMPLATEDIR=scripts/templates/ CONFNAME=symbrion_0_p TESTNAME=symbrion_0_p FULLCOMMAND="$0 $@" . ${BASEDIR}/scripts/shflags #define the flags DEFINE_integer 'repeats' '30' 'The number of times the si...
Shell
#!/bin/bash ### Set the simulation-specific parameters BASEDIR=/home/bweel/workspace/ahhs/ CONFNAME=ahhs_p TESTNAME=ahhs_p FULLCOMMAND="$0 $@" . ${BASEDIR}shflags #define the flags DEFINE_integer 'repeats' '50' 'The number of times the simulation should be run'; DEFINE_string 'robots' '10' 'The number of robots in t...
Shell
#!/bin/bash ### Set the simulation-specific parameters BASEDIR=/Users/$LOGNAME/Roborobo/ CONFNAME=newscast_p TESTNAME=newscast_p2 ARENANAME=box4 ARENAZONESNAME=box4_zones ARENA_SIZE=500 offsetX=25 offsetY=25 ### Run the simulation cd $BASEDIR . ${BASEDIR}run_general.sh
Shell
#!/bin/bash # run_egg.sh # roborobo # # Created by Berend Weel on 10/16/12. # FULLCOMMAND="$0 $@" # Parse the flags FLAGS "$@" || exit 1 eval set -- "${FlAGS_ARGV}" RID=$RANDOM ### copy the template configuration to the config dir, making the neccesary adjustments # Determine some properties of the test ROBOTCO...
Shell
#!/bin/bash ### Set the simulation-specific parameters BASEDIR=/home/bwl400/scratch/RoboRobo/trunk/ CONFNAME=scalepower_simple_p TESTNAME=scalepower_simple_p ### Run the simulation cd $BASEDIR . ${BASEDIR}run_scale.sh
Shell
#!/bin/bash TIMESTAMP=`date "+%Y%m%d.%Hh%Mm%Ss"` BASEDIR=../ RESULTDIR=${BASEDIR}results/v8/$TIMESTAMP mkdir $RESULTDIR mkdir $RESULTDIR/config mkdir $RESULTDIR/logs mkdir $RESULTDIR/fitness mkdir $RESULTDIR/organisms mkdir $RESULTDIR/organismsizes mkdir $RESULTDIR/output mkdir $RESULTDIR/genomes mv ${BASEDIR}output....
Shell
#!/bin/bash ### MAKE SURE TO INCLUDE THIS FILE FROM ANOTHER WHERE YOU SET THE SIMULATION-SPECIFIC PARAMETERS ### Source shflags FULLCOMMAND="$0 $@" . ${BASEDIR}shflags RID=$RANDOM # Define the flags DEFINE_string 'robots' '4' 'The number of robots in the simulation' 'n'; DEFINE_string 'seed' '-1' 'Seed' 'x'; DEFINE_...
Shell
#!/bin/bash # THIS SCRIPT REQUIRES IMAGEMAGICK ### Source shflags #BASEDIR=/Users/$LOGNAME/Roborobo/ . ${BASEDIR}shflags # Define the flags DEFINE_string 'name' 'box4' 'The name of the basic arena image' 'n'; DEFINE_string 'x' '2' 'Horizontal repeats' 'x' DEFINE_string 'y' '2' 'Vertical repeats' 'y' # Parse the flag...
Shell
#!/bin/bash # run_parcours.sh # roborobo # # Created by B.P.M. Weel on 3/20/12. # Copyright 2012 VU. All rights reserved. ### Set the simulation-specific parameters BASEDIR=/Users/bwl400/workspace/ahhs/ TEMPLATEDIR=scripts/templates/ CONFNAME=parcours_p TESTNAME=parcours_p FULLCOMMAND="$0 $@" . ${BASEDIR}scripts/shf...
Shell
#!/bin/bash ### Set the simulation-specific parameters BASEDIR=/home/bweel/workspace/ahhs/ TEMPLATEDIR=scripts/templates/ CONFNAME=riverbed_p TESTNAME=riverbed_p FULLCOMMAND="$0 $@" . ${BASEDIR}/scripts/shflags #define the flags DEFINE_integer 'repeats' '50' 'The number of times the simulation should be run'; DEFINE...
Shell
#!/bin/bash FULLCOMMAND="$0 $@" . ${BASEDIR}scripts/shflags #define the flags DEFINE_string 'robots' '10' 'The number of robots in the simulation' 'n'; DEFINE_integer 'seed' '-1' 'Seed' 'x'; DEFINE_string 'mu' '5' 'Mu' 'm' DEFINE_string 'stepsPerCandidate' '500' 'Steps per candidate' 't' DEFINE_string 'reEvaluationRa...
Shell
#!/bin/bash ### Set the simulation-specific parameters BASEDIR=/home/bweel/experiments/scalepower/ TEMPLATEDIR=scripts/templates/ CONFNAME=scalepower_p TESTNAME=scalepower_p . ${BASEDIR}scripts/shflags DEFINE_integer 'repeats' '50' 'The number of times the simulation should be run' 'X'; DEFINE_string 'robots' '10' '...
Shell
#!/bin/bash ### Set the simulation-specific parameters BASEDIR=/home/bweel/RoboRobo/ CONFNAME=mpo_p TESTNAME=mpo_p2 ARENANAME=box4 ARENAZONESNAME=box4_zones ARENA_SIZE=500 offsetX=25 offsetY=25 ### Run the simulation cd $BASEDIR . ${BASEDIR}run_general.sh
Shell
#!/bin/bash ### Set the simulation-specific parameters BASEDIR=/home/bweel/workspace/ahhs/ CONFNAME=ahhs_p TESTNAME=ahhs_p FULLCOMMAND="$0 $@" . ${BASEDIR}shflags #define the flags DEFINE_string 'robots' '10' 'The number of robots in the simulation' 'n'; DEFINE_integer 'seed' '-1' 'Seed' 'x'; DEFINE_string 'mu' '5' ...
Shell
# $Id: shflags 133 2009-05-10 18:04:51Z kate.ward@forestent.com $ # vim:et:ft=sh:sts=2:sw=2 # # Copyright 2008 Kate Ward. All Rights Reserved. # Released under the LGPL (GNU Lesser General Public License) # # shFlags -- Advanced command-line flag library for Unix shell scripts. # http://code.google.com/p/shflags/ # # A...
Shell
#!/bin/bash if [ -z "$1" ] then echo "Please provide the number of lines in the file to digest" exit fi if [ -z "$2" ] then echo "Please provide the number of samples per setting to include (0 for all)" exit fi if [ -z "$3" ] then echo "Please provide the filename of the file to digest" exit fi if [ ! -f "$3"...
Shell
#!/bin/bash if [ -z "$1" ] then echo "Please provide the number of lines in the file to digest" exit fi if [ -z "$2" ] then echo "Please provide the filename of the file to digest" exit fi if [ ! -f "$2" ] then echo "File to digest does not exist" exit fi head -n $1 $2 | sort -n | tail -n 20
Shell
#!/bin/bash ### Set the simulation-specific parameters DIR=$(cd "$(dirname "$0")"; pwd -P) BASEDIR="$(dirname $DIR)/" TEMPLATEDIR=scripts/templates/ CONFNAME=symbrion_7_p TESTNAME=symbrion_7_p FULLCOMMAND="$0 $@" . ${BASEDIR}/scripts/shflags #define the flags DEFINE_integer 'repeats' '30' 'The number of times the si...
Shell
#!/bin/bash # run_dynamic.sh # roborobo # # Created by B.P.M. Weel on 3/20/12. # Copyright 2012 VU. All rights reserved. ### Set the simulation-specific parameters DIR=$(cd "$(dirname "$0")"; pwd -P) BASEDIR="$(dirname $DIR)/" TEMPLATEDIR=scripts/templates/ CONFNAME=changingworld_p FULLCOMMAND="$0 $@" . ${BASEDIR}sc...
Shell
BASEDIR=.. cd $BASEDIR valgrind --leak-check=full --track-origins=yes ./roborobo -l config/ahhsscalepower.properties
Shell
#!/bin/bash ### Set the simulation-specific parameters DIR=$(dirname $(readlink -f $0)) BASEDIR="$(dirname $DIR)/" TEMPLATEDIR=scripts/templates/ CONFNAME=dynamic_p TESTNAME=dynamic_p FULLCOMMAND="$0 $@" . ${BASEDIR}scripts/shflags #define the flags DEFINE_string 'robots' '10' 'The number of robots in the simulation...
Shell
#Run script for Bonesa on the Lisa system #TO RUN: 1. Create a distributed package with Bonesa. Set the host # name to any string (it will not be used). # 2. Copy the "dist" directory created by Bonesa to Lisa # 3. Edit the directory/file settings below # 4. Copy the "autoru...
Shell
#!/bin/sh # run_changing.sh # roborobo # # Created by Berend Weel on 10/24/12. # #!/bin/bash echo "starting job submissions" scaleFactors=( "0,2,0,-2,0" "0,10,0,-10,0" "0,5,10,5,0,-5,-10,-5,0" "0,5,0,5,0,10,0,10,0" ) repeats=40 REPEATREP=s/--REPEATS/${repeats}/g for sf in "${scaleFactors[@]}" do : SCALEREP=...
Shell
#!/bin/bash ### Set the simulation-specific parameters BASEDIR=/Users/$LOGNAME/Roborobo/ CONFNAME=hivemind_p TESTNAME=hivemind_p2 ARENANAME=box4 ARENAZONESNAME=box4_zones ARENA_SIZE=500 offsetX=25 offsetY=25 ### Run the simulation cd $BASEDIR . ${BASEDIR}run_general.sh
Shell
#!/bin/bash ### Set the simulation-specific parameters DIR=$(cd "$(dirname "$0")"; pwd -P) BASEDIR="$(dirname $DIR)/" TEMPLATEDIR=scripts/templates/ CONFNAME=symbrion_p TESTNAME=symbrion_p FULLCOMMAND="$0 $@" . ${BASEDIR}/scripts/shflags #define the flags DEFINE_integer 'repeats' '40' 'The number of times the simula...
Shell
#!/bin/sh set -e # Copyright (c) 2010, Pierre-Olivier Latour # 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 retain the above copyright # notice...
Shell
#!/bin/sh set -e # Copyright (c) 2010, Pierre-Olivier Latour # 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 retain the above copyright # notice...
Shell
#!/bin/sh set -e # Copyright (c) 2010, Pierre-Olivier Latour # 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 retain the above copyright # notice...
Shell
#!/bin/sh set -e # Copyright (c) 2010, Pierre-Olivier Latour # 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 retain the above copyright # notice...
Shell
#!/bin/sh set -e # Copyright (c) 2010, Pierre-Olivier Latour # 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 retain the above copyright # notice...
Shell
#!/bin/sh set -e # Copyright (c) 2010, Pierre-Olivier Latour # 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 retain the above copyright # notice...
Shell
#!/bin/sh set -e # Copyright (c) 2010, Pierre-Olivier Latour # 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 retain the above copyright # notice...
Shell
#!/bin/sh set -e # Copyright (c) 2010, Pierre-Olivier Latour # 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 retain the above copyright # notice...
Shell
#!/bin/sh set -e # Copyright (c) 2010, Pierre-Olivier Latour # 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 retain the above copyright # notice...
Shell
#!/bin/sh set -e # Copyright (c) 2010, Pierre-Olivier Latour # 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 retain the above copyright # notice...
Shell
#!/bin/sh set -e # Copyright (c) 2010, Pierre-Olivier Latour # 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 retain the above copyright # notice...
Shell
#!/bin/sh set -e # Copyright (c) 2010, Pierre-Olivier Latour # 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 retain the above copyright # notice...
Shell
#!/bin/sh set -e # Copyright (c) 2010, Pierre-Olivier Latour # 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 retain the above copyright # notice...
Shell
#!/bin/sh #set -x # for debugging if [ -z "$NMSRC" ]; then NMSRC=~/netmap-release fi DRIVER="ixgbe" #IF="eth0" # force an interface if [ ! -f ${NMSRC}/LINUX/netmap_lin.ko ]; then echo "LINUX/netmap_lin.ko missing. Please compile netmap." exit 1 fi if [ ! -f ${NMSRC}/LINUX/${DRIVER}/${DRIVER}.ko ]; the...
Shell
#!/bin/sh sed -n 's/^## \?//p' $1 | fmt
Shell
#!/bin/sh #set -x function pgset() { local result echo $1 > ${PGDEV} result=$(cat $PGDEV | fgrep "Result: OK:") if [ "$result" = "" ]; then cat $PGDEV | fgrep "Result:" fi } ##################### Script configuration ###################### N="$1" # number of T...
Shell
#!/bin/bash ## Manage linux driver patches for netmap. ## usage (from the dir containing the Makefile): ## ## scripts/np <action> [args...] ## ## where <action> is any of the functions below. ## [ -f scripts/conf ] && source scripts/conf ## The following enviroment variables must be set: ## ## GITDIR: the absolu...
Shell
# See http://wiki.archlinux.org/index.php/VCS_PKGBUILD_Guidelines # for more information on packaging from GIT sources. # Maintainer: Vincenzo Maffione <v.maffione@gmail.com> pkgname=netmap pkgver=2.0 pkgrel=1 pkgdesc="Netmap is a framework for high speed network packet I/O." arch=('any') url="http://info.iet.unipi.it...
Shell
#!/bin/bash # Sample shell script for invoking ant. # Copy to a new file and fill in the values below. # To keep the secrets secret, don't share your runant script. # 01234567890123456789 ant -Dsecret=<a random secret string, 20 chars long> \ -Dapp-id=your-app-id \ -Dapp-version=1 \ -Doauth-cli...
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 # 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 # TODO: check for mogenerator and warn we need to build mogenerator for release first. ../../../mogenerator/build/Release/mogenerator --template-path ../../../mogenerator/templates --model ../CoreDataBooks.xcdatamodel -M ./ -H ./ || exit 1
Shell
#!/bin/bash # TODO: check for mogenerator and warn we need to build mogenerator for release first. # TODO: check for the output paths and, if they don't exist, make them. ../../mogenerator/build/Release/mogenerator --template-path ../../mogenerator/templates --model ./demoApp.xcdatamodel -M ./ -H ./ || exit 1
Shell
#!/bin/sh cd "`dirname \"$0\"`" sudo echo sudo rm -rf 'build' mkdir -p 'build/root/Library/Application Support/mogenerator' cd .. xcodebuild -configuration Release CONFIGURATION_BUILD_DIR="$PWD/installer/build/root/usr/bin/" cp templates/*.motemplate "$PWD/installer/build/root/Library/Application Support/mogenerator...
Shell
#!/bin/sh cd "`dirname \"$0\"`" cd MOs mogenerator -model ../mogeneratorTestMule_DataModel.xcdatamodel -baseClass MyBaseClass -includem include.m
Shell
#! /bin/bash tmpdir=$(mktemp -d); wrkdir=`pwd` cd src tar --exclude .svn -cf $tmpdir/src.tar * cd ../ cd war/WEB-INF/classes/ tar --exclude .svn -cf $tmpdir/class.tar * cd ../../../ pushd $tmpdir > /dev/null tar -xf src.tar tar -xf class.tar rm src.tar class.tar jar -cf $wrkdir/antlr3.2-gwt-module.jar * popd > ...
Shell
#! /bin/bash tmpdir=$(mktemp -d); wrkdir=`pwd` cd src tar --exclude .svn -cf $tmpdir/src.tar * cd ../ cd war/WEB-INF/classes/ tar --exclude .svn -cf $tmpdir/class.tar * cd ../../../ pushd $tmpdir > /dev/null tar -xf src.tar tar -xf class.tar rm src.tar class.tar jar -cf $wrkdir/antlr3.2-gwt-module.jar * popd > ...
Shell
#!/bin/bash GOOS=`go env GOOS` case $GOOS in linux) go tool cgo -godefs=true types_linux.go >ztypes_linux.go rm -rf _obj ;; *) echo "Don't know how to compile types for $GOOS" exit 1 esac
Shell
#!/bin/sh -x PROJECT="gmail-delay-send" USER="blairkutz@gmail.com" ENV=dev FILE_NAME="output/${PROJECT}.${ENV}" echo "Combining and uploading files for $ENV" rm -f ${FILE_NAME} touch ${FILE_NAME} for FILE in ../src/* do cat $FILE >> ${FILE_NAME} done python utils/googlecode_upload.py -s "Uploading for $ENV" -p ...
Shell
#!/bin/sh VERSION=BETA_0.7.3 git tag -f ${VERSION} mkdir -f output FILE_NAME=output/${VERSION}.combined for FILE in ../src/downloaded/* do cat $FILE >> ${FILE_NAME} done
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 2005-2012, Cake Software Foundation, Inc. # # Licensed under The MIT Lic...
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 2005-2012, Cake Software Foundation, Inc. # # Licensed under The MIT Lic...
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 2005-2012, Cake Software Foundation, Inc. # # Licensed under The MIT Lic...
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 2005-2012, Cake Software Foundation, Inc. # # Licensed under The MIT Lic...
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 2005-2012, Cake Software Foundation, Inc. # # Licensed under The MIT Lic...
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 2005-2012, Cake Software Foundation, Inc. # # Licensed under The MIT Lic...
Shell
#!/bin/sh android update project --name Pano --path .
Shell
#!/bin/sh android update project --name Pano --path .
Shell