code
stringlengths
1
1.96M
language
stringclasses
1 value
#!/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
#!/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 # # 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 set -x doit() { rm -fr P7ZIP.$1 mkdir P7ZIP.$1 cd P7ZIP.$1 cp ../premake4.lua premake4.lua ${HOME}/PREMAKE/premake4 $1 cd .. } doit codeblocks doit codelite doit gmake
Shell
#!/bin/sh set -x doit() { rm -fr P7ZIP.$1 mkdir P7ZIP.$1 cd P7ZIP.$1 cp ../premake4.lua premake4.lua ${HOME}/PREMAKE/premake4 $1 cd .. } doit codeblocks doit codelite doit gmake
Shell
doit() { cd .. rm -fr "$3.$1" mkdir "$3.$1" cd "$3.$1" cp ../CMAKE/$4 CMakeLists.txt mkdir 7za 7zFM 7zG Format7zFree cp ../CMAKE/CMakeLists_7za.txt 7za/CMakeLists.txt cp ../CMAKE/CMakeLists_7zFM.txt 7zFM/CMakeLists.txt cp ../CMAKE/CMakeLists_7zG.txt 7zG/CMakeLists.txt cp ../CMAKE/CMakeLists_Format...
Shell
doit() { cd .. rm -fr "$3.$1" mkdir "$3.$1" cd "$3.$1" cp ../CMAKE/$4 CMakeLists.txt mkdir 7za 7zFM 7zG Format7zFree cp ../CMAKE/CMakeLists_7za.txt 7za/CMakeLists.txt cp ../CMAKE/CMakeLists_7zFM.txt 7zFM/CMakeLists.txt cp ../CMAKE/CMakeLists_7zG.txt 7zG/CMakeLists.txt cp ../CMAKE/CMakeLists_Format...
Shell
#!/bin/sh # Copyright (c) 2012 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 cd .git/hooks ln -sf ../../git_hooks/* .
Shell
#!/bin/sh RIGHT_PKG_NAME=com.example.android.trivialdrivesample # Check that there isn't a NOCOMMIT flag if find . -name CONFIDENTIAL | grep -q CONFIDENTIAL; then echo "*** The working directory is marked as CONFIDENTIAL" echo "If you're really ready to commit, remove the CONFIDENTIAL files and try again:" fi...
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/bash ./build.sh && ./package.sh
Shell
#!/bin/bash rm -rf dist && mkdir dist BASE=`basename build/*-*.*.*` pushd build/$BASE > /dev/null # package an xpi echo "+ Creating dist/$BASE.xpi" zip -9 ../../dist/$BASE.xpi install.* chrome.manifest chrome/ec2ui.jar README LICENSE cp README LICENSE ../../dist popd > /dev/null pushd dist > /dev/null #...
Shell
#!/bin/bash date set -e function get_dir_revision() { local pkg_release local last_rev # Generate a release number for the entire branch last_rev=$(hg log $1 -b default -l 1 | grep 'changeset') changeset=${last_rev#*:} pkg_release=${changeset%:*} if [ -z "$pkg_release" ] ; then pkg_r...
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
#!/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
#!/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
#!/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
#!/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
#!/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
#!/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
#!/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
ant clean; ant release; adb install -r bin/MetaTracker-release.apk
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 # Name: checksize # Project: AVR-USB # Author: Christian Starkjohann # Creation Date: 2004-12-29 # Tabsize: 4 # Copyright: (c) 2005 OBJECTIVE DEVELOPMENT Software GmbH. # Revision: $Id: checksize 110 2006-02-07 21:26:09Z cs $ error=0 codelimit=16384 datalimit=960 # leave 64 bytes for stack if [ $# -gt 1 ]...
Shell
#!/bin/bash repository=/home/andrei/.m2/repository outdir=/home/andrei/works/edi/target/classes classpath=$outdir classpath=$classpath:$repository/org/javalite/activejdbc-instrumentation/1.4.2-SNAPSHOT/activejdbc-instrumentation-1.4.2-SNAPSHOT.jar classpath=$classpath:$repository/javassist/javassist/3.8.0.GA/javassist...
Shell
#!/bin/bash repository=/home/andrei/.m2/repository outdir=/home/andrei/works/edi/target/classes classpath=$outdir classpath=$classpath:$repository/org/javalite/activejdbc-instrumentation/1.4.2-SNAPSHOT/activejdbc-instrumentation-1.4.2-SNAPSHOT.jar classpath=$classpath:$repository/javassist/javassist/3.8.0.GA/javassist...
Shell
#!/bin/bash set -e # Check if the jar has been built. if [ ! -e target/bitcoinj-tools-*.jar ] || [[ "$ALWAYS_BUILD_WALLETTOOL" != "" ]]; then echo "Compiling WalletTool to a JAR" cd ../core mvn install -DskipTests cd ../tools [ -e target/bitcoinj-tools-*.jar ] && rm target/bitcoinj-tools-*.jar mvn package...
Shell
#!/bin/bash # set -ue echo -e "\n*** Rolling back any pending updates (just in case) ***\n" appcfg.py --oauth2 $* rollback . echo -e "\n*** DEPLOYING ***\n" appcfg.py --oauth2 $* update .
Shell
#!/bin/bash # set -ue APPCFG=$(which appcfg.py) \ || (echo "ERROR: appcfg.py must be in your PATH"; exit 1) while [ -L $APPCFG ] do APPCFG=$(readlink $APPCFG) done SDK_HOME=$(dirname $APPCFG) PYTHONPATH=$PYTHONPATH:$SDK_HOME python scripts/run_tests.py $*
Shell
#!/bin/bash # set -uex dev_appserver.py \ --host 0.0.0.0 \ --skip_sdk_update_check yes \ . $*
Shell
#!/bin/bash set -ue DEVAPPSERVER=$(which dev_appserver.py) \ || (echo "ERROR: dev_appserver.py must be in your PATH"; exit 1) while [ -L $DEVAPPSERVER ] do DEVAPPSERVER=$(readlink $DEVAPPSERVER) done BIN_DIR=$(dirname $DEVAPPSERVER) if [ "$(basename $BIN_DIR)" == "bin" ] then SDK_HOME=$(dirname $BIN_DIR) if ...
Shell
#!/bin/bash # # Copyright (c) 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
java -cp lib/hibernate3.jar:lib/hibernate-commons-annotations.jar:lib/hibernate-annotations.jar:lib/dom4j-1.6.1.jar:lib/commons-logging-1.1.jar:lib/ejb3-persistence.jar:lib/commons-collections-3.2.jar:lib/mysql-connector-java-5.0.3-bin.jar:lib/jta.jar:lib/antlr-2.7.6.jar:jars/servidor.jar union.ServidorChat
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 DIRECTORY=$(cd `dirname $0` && pwd) GIT_DIR="$DIRECTORY"/osmand-git GIT_URL=git://github.com/osmandapp/Osmand.git GIT_ORIGIN_NAME=origin #rm -rf "${GIT_DIR}" # initialize git if it is not present (clone it) if [ ! -d "$GIT_DIR" ]; then git clone ${GIT_URL} "${GIT_DIR}" fi # update git cd "${GIT_DIR}" gi...
Shell
#!/bin/sh DIRECTORY=$(cd `dirname $0` && pwd) GIT_DIR="$DIRECTORY"/osmand-git GIT_ORIGIN_NAME=origin BUILD_DIR="$DIRECTORY"/builds LATESTS_DIR="$DIRECTORY"/latests VERSION_FILE=./DataExtractionOSM/src/net/osmand/Version.java DATE=$(date +%d-%m-%y) SHORT_DATE=$(date +%d-%m) # clean all files in build directory rm -r ...
Shell
#!/bin/sh DIRECTORY=$(cd `dirname $0` && pwd) ## VARIABLES ### LOG_DIR="$DIRECTORY"/logs DATE=$(date +%d-%m-%y) LOG_FILE="$LOG_DIR/${DATE}.log" mkdir $LOG_DIR # check build already run today if [ -e "$LOG_FILE" ]; then echo "Build already ran today" exit fi touch $LOG_FILE # 1. Update git directory "${DIRE...
Shell
#!/bin/sh DIRECTORY=$(cd `dirname $0` && pwd) GIT_DIR="$DIRECTORY"/osmand-git GIT_URL=git://github.com/osmandapp/Osmand.git GIT_ORIGIN_NAME=origin HG_DIR="$DIRECTORY"/osmand-hg HG_URL=https://osmand.googlecode.com/hg BUILD_DIR="$DIRECTORY"/builds if [ ! -d "$HG_DIR" ]; then hg clone ${GIT_URL} "${HG_DIR}" fi cd "...
Shell
#!/bin/sh DIRECTORY=$(cd `dirname $0` && pwd) FTP_SITE=download.osmand.net FTP_FOLDER=night-builds FTP_LATEST=latest-night-build # FTP_USER in local.properties # FTP_PWD= in local.properties BUILD_DIR="$DIRECTORY"/builds LATEST_DIR="$DIRECTORY"/latests . "$DIRECTORY"/local.properties # 3. upload to ftp server lftp -c...
Shell
#!/bin/sh # This file will start the Osm Extraction UI with custom memory settings for # the JVM. With the below settings the heap size (Available memory for the application) # will range from 64 megabyte up to 512 megabyte. java -Djava.util.logging.config.file=logging.properties -Xms64M -Xmx512M -cp "./OsmAndMapCrea...
Shell
# This file will start the Osm Extraction UI with custom memory settings for # the JVM. With the below settings the heap size (Available memory for the application) # will range from 64 megabyte up to 512 megabyte. java -Djava.util.logging.config.file=logging.properties -Xms64M -Xmx512M -cp "./OsmAndMapCreator.jar...
Shell
#!/bin/sh # This file will start the Osm Extraction UI with custom memory settings for # the JVM. With the below settings the heap size (Available memory for the application) # will range from 64 megabyte up to 512 megabyte. java -Djava.util.logging.config.file=logging.properties -Xms64M -Xmx512M -cp "./OsmAndM...
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
ant clean; ant release; adb install -r bin/MetaTracker-release.apk
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/sh if test $# -lt 2 ; then echo "Extract readable stack trace from Android logcat crash" echo "Usage $0 lib.so crash.log" exit 1 fi of=$(mktemp) echo "Disassemble $1" ~/data/android-ndk-r6b/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi-objdump -S $1 > $of echo "P...
Shell
#!/bin/sh if test $# -lt 2 ; then echo "Extract readable stack trace from Android logcat crash" echo "Usage $0 lib.so crash.log" exit 1 fi of=$(mktemp) echo "Disassemble $1" ~/data/android-ndk-r6b/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi-objdump -S $1 > $of echo "P...
Shell
#!/bin/sh # You may find this shell script helpful. DATA_PATH=/afs/ir.stanford.edu/users/a/g/agusev/cs224n/langDetect/data/ java -server -mx500m -cp classes \ language.tools.LanguageDetectorTester \ -dataPath $DATA_PATH \ -testMultiString $@ \
Shell
#!/bin/sh # You may find this shell script helpful. DATA_PATH=/afs/ir.stanford.edu/users/a/g/agusev/cs224n/langDetect/data/ java -server -mx2000m -cp classes \ language.tools.LanguageDetectorTester \ -dataPath $DATA_PATH \ -runMultiTestSet \ -useClassifier 1 \ -boundaryDetector FOUR_WORD_BIGRAM \ -verbos...
Shell
#! /bin/sh ## This script has some modifications to try to find Java on various of the ## ITSS Unix boxes ... Christopher Manning 2008 # Copyright 2001-2005 The Apache Software Foundation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with t...
Shell
#!/bin/sh # You may find this shell script helpful. DATA_PATH=/afs/ir.stanford.edu/users/a/g/agusev/cs224n/langDetect/data/ java -server -mx500m -cp classes \ language.tools.LanguageDetectorTester \ -dataPath $DATA_PATH \ -testString $@ \
Shell
#!/bin/sh # You may find this shell script helpful. DATA_PATH=/afs/ir.stanford.edu/users/a/g/agusev/cs224n/langDetect/data/ java -server -mx500m -cp classes \ language.tools.LanguageDetectorTester \ -dataPath $DATA_PATH \ -genMultiLingSet \ -verbose \ $@
Shell
#!/bin/sh # You may find this shell script helpful. DATA_PATH=/afs/ir.stanford.edu/users/a/g/agusev/cs224n/langDetect/data/ java -server -mx2000m -cp classes \ language.tools.LanguageDetectorTester \ -dataPath $DATA_PATH \ -genModels \ -verbose \ $@
Shell
#!/bin/sh # You may find this shell script helpful. DATA_PATH=/afs/ir.stanford.edu/users/a/g/agusev/cs224n/langDetect/data/ java -server -mx500m -cp classes \ language.tools.LanguageDetectorTester \ -dataPath $DATA_PATH \ -genMultiLingSet \ -verbose \ $@
Shell
#!/bin/sh # You may find this shell script helpful. DATA_PATH=/afs/ir.stanford.edu/users/a/g/agusev/cs224n/langDetect/data/ java -server -mx500m -cp classes \ language.tools.LanguageDetectorTester \ -dataPath $DATA_PATH \ -testString $@ \
Shell
#!/bin/sh # You may find this shell script helpful. DATA_PATH=/afs/ir.stanford.edu/users/a/g/agusev/cs224n/langDetect/data/ java -server -mx500m -cp classes \ language.tools.LanguageDetectorTester \ -dataPath $DATA_PATH \ -genTrainTest \ -verbose \ $@
Shell
#!/bin/sh # You may find this shell script helpful. DATA_PATH=/afs/ir.stanford.edu/users/a/g/agusev/cs224n/langDetect/data/ java -server -mx2000m -cp classes \ language.tools.LanguageDetectorTester \ -dataPath $DATA_PATH \ -runMultiTestSet \ -useClassifier 1 \ -boundaryDetector FOUR_WORD_BIGRAM \ -verbos...
Shell
#!/bin/sh # You may find this shell script helpful. DATA_PATH=/afs/ir.stanford.edu/users/a/g/agusev/cs224n/langDetect/data/ java -server -mx2000m -cp classes \ language.tools.LanguageDetectorTester \ -dataPath $DATA_PATH \ -runTestSet \ -useClassifier 1 \ -verbose \ $@
Shell
#! /bin/sh ## This script has some modifications to try to find Java on various of the ## ITSS Unix boxes ... Christopher Manning 2008 # Copyright 2001-2005 The Apache Software Foundation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with t...
Shell
#!/bin/sh # You may find this shell script helpful. DATA_PATH=/afs/ir.stanford.edu/users/a/g/agusev/cs224n/langDetect/data/ java -server -mx2000m -cp classes \ language.tools.LanguageDetectorTester \ -dataPath $DATA_PATH \ -genModels \ -verbose \ $@
Shell
#!/bin/sh # You may find this shell script helpful. DATA_PATH=/afs/ir.stanford.edu/users/a/g/agusev/cs224n/langDetect/data/ java -server -mx500m -cp classes \ language.tools.LanguageDetectorTester \ -dataPath $DATA_PATH \ -testMultiString $@ \
Shell
#!/bin/sh # You may find this shell script helpful. DATA_PATH=/afs/ir.stanford.edu/users/a/g/agusev/cs224n/langDetect/data/ java -server -mx500m -cp classes \ language.tools.LanguageDetectorTester \ -dataPath $DATA_PATH \ -genTrainTest \ -verbose \ $@
Shell
#!/bin/sh # You may find this shell script helpful. DATA_PATH=/afs/ir.stanford.edu/users/a/g/agusev/cs224n/langDetect/data/ java -server -mx2000m -cp classes \ language.tools.LanguageDetectorTester \ -dataPath $DATA_PATH \ -runTestSet \ -useClassifier 1 \ -verbose \ $@
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
cd ~/gen_indexes rm osmand.log rm console # update map creator cd OsmAndMapCreator yes | unzip /var/www-download/latest-night-build/OsmAndMapCreator-development.zip cd .. # remove backup and create new backup rm -r backup mkdir backup mv indexes/uploaded/*.* backup # remove all previous files rm -r indexes mkdir inde...
Shell
# This file will start the Osm Extraction UI with custom memory settings for # the JVM. With the below settings the heap size (Available memory for the application) # will range from 64 megabyte up to 512 megabyte. java -Djava.util.logging.config.file=logging.properties -Xms64M -Xmx720M -cp "./OsmAndMapCreator.jar:./l...
Shell
#!/bin/sh # This file will start the Osm Extraction UI with custom memory settings for # the JVM. With the below settings the heap size (Available memory for the application) # will range from 64 megabyte up to 512 megabyte. java -Djava.util.logging.config.file=logging.properties -Xms64M -Xmx512M -cp "./OsmAndMapCrea...
Shell
#!/bin/sh # This file will start the Osm Extraction UI with custom memory settings for # the JVM. With the below settings the heap size (Available memory for the application) # will range from 64 megabyte up to 720 megabyte. java -Djava.util.logging.config.file=logging.properties -Xms64M -Xmx720M -cp "./OsmAndMapCrea...
Shell
#!/bin/sh DIRECTORY=$(cd `dirname $0` && pwd) ## VARIABLES ### LOG_DIR="$DIRECTORY"/logs DATE=$(date +%d-%m-%y) LOG_FILE="$LOG_DIR/${DATE}.log" mkdir $LOG_DIR touch $LOG_FILE git pull --rebase 2>&1 >>$LOG_FILE # 1. Update git directory "${DIRECTORY}/update_git.sh" 2>&1 >>$LOG_FILE # 2. Go through branches and gen...
Shell
#!/bin/sh DIRECTORY=$(cd `dirname $0` && pwd) FTP_SITE=download.osmand.net FTP_FOLDER=night-builds FTP_LATEST=latest-night-build # FTP_USER in local.properties # FTP_PWD= in local.properties BUILD_DIR="$DIRECTORY"/builds LATEST_DIR="$DIRECTORY"/latests . "$DIRECTORY"/local.properties # 3. upload to ftp server lftp -c...
Shell
#!/bin/sh DIRECTORY=$(cd `dirname $0` && pwd) GIT_DIR="$DIRECTORY"/osmand-git GIT_URL=git://github.com/osmandapp/Osmand.git if [ ! -d "$GIT_DIR" ]; then git clone ${GIT_URL} "${GIT_DIR}" fi cd "$GIT_DIR" git checkout . git reset HEAD --hard git checkout master # First time add entries to .git/config (!) and add...
Shell
#!/bin/sh DIRECTORY=$(cd `dirname $0` && pwd) GIT_DIR="$DIRECTORY"/osmand-git GIT_ORIGIN_NAME=origin BUILD_DIR="$DIRECTORY"/builds LATESTS_DIR="$DIRECTORY"/latests VERSION_FILE=./DataExtractionOSM/src/net/osmand/Version.java DATE=$(date +%Y-%m-%d) SHORT_DATE=$(date +%d-%m) # clean all files in build directory rm -r ...
Shell
#!/bin/sh DIRECTORY=$(cd `dirname $0` && pwd) GIT_DIR="$DIRECTORY"/osmand-git GIT_URL=git://github.com/osmandapp/Osmand.git GIT_ORIGIN_NAME=origin #rm -rf "${GIT_DIR}" # initialize git if it is not present (clone it) if [ ! -d "$GIT_DIR" ]; then git clone ${GIT_URL} "${GIT_DIR}" fi # update git cd "${GIT_DIR}" gi...
Shell
#!/bin/sh DIRECTORY=$(cd `dirname $0` && pwd) FTP_SITE=download.osmand.net FTP_FOLDER=/var/www-download/night-builds FTP_LATEST=/var/www-download/latest-night-build # FTP_USER in local.properties # FTP_PWD= in local.properties BUILD_DIR="$DIRECTORY"/builds LATEST_DIR="$DIRECTORY"/latests . "$DIRECTORY"/local.properti...
Shell
#!/bin/bash # # Copyright (c) 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 CC=clang CFLAGS="-g -DNMAX=100 -DKMAX=90 -ansi -x c -pipe" out_file="severalstacks.elf64" src_files="main.cpp SeveralStacks.cpp" callf() { echo "$@" $@ } all() { callf ${CC} ${CFLAGS} ${src_files} -o ${out_file} } clean() { callf rm -v $out_file } if [ "x$1" = "x" ] ; then all else $1 fi
Shell
#!/bin/sh clean () { rm -v ./pipe } all () { g++ -pipe -g -pedantic -Wall `echo *.cpp` -o pipe } if [ "x$1" = "x" ] ; then all else $1 fi
Shell
#!/bin/sh clean () { rm -v ./stack } all () { g++ -g `echo *.cpp` -o stack } if [ "x$1" = "x" ] ; then all else $1 fi
Shell
#!/bin/sh PROJNAME="dequeue" clean () { rm -v ./"$PROJNAME" } all () { g++ -pipe -g -pedantic -Wall `echo *.cpp` -o "$PROJNAME" } if [ "x$1" = "x" ] ; then all else $1 fi
Shell
#!/usr/bin/env bash # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it...
Shell
#!/bin/sh # Remove the long pathname created by longpath.c. # (This is the answer to the question at the end of the solution to # Exercise 4.18.) cd /home/stevens for i in 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 \ 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 \ 40 4...
Shell
#!/bin/sh # # dgibson.sh - run the dgibson entry # # usage: # dgibson.sh [data_file] # parse args # if [ $# -eq 0 ]; then DATA="./dgibson.data1" else DATA="$1" fi if [ ! -f "$DATA" ]; then echo "$0: no data found in $DATA" 1>&2 exit 1 fi # for the initial data.name if needed # if [ ! -f "data.name" ];...
Shell
#!/bin/sh ./westley \ "123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_\`abcdefghijkl" \ "/\$%&'()*+,-./\$%&'()*+,-." \ " ||" \ " ..3..6..9..12 Hours ----.----10---.----20---.----30---.----40---.----50---.---- Minutes "
Shell
#!/bin/sh ./westley \ "%%%&&&'''666EEESSSaaannn{{{zzzyyyxxxwwwhhhYYYKKK===000###\$\$\$" \ "34CQ_lkj[M?234CQ_lkj[M?2" \ " .*" \ " -<<==O==>>- --====v====-- | | | | | | | 0 | | | | | | | ============= \\ / \\ / | | | | | ...
Shell
#!/bin/sh ./westley \ "%%%\$\$\$###000===KKKYYYhhhwwwxxxyyyzzz{{{nnnaaaSSSEEE666'''&&&" \ "32?M[jkl_QC432?M[jkl_QC4" \ " xX" \ " )-=*=-( --===-=-===-- ) ( | | | | | 0 | | | | | ) ( ]]==-----==[[ ) | ( -----------"
Shell
alias c="cc -E stig.c -Dc='main(){printf(\"N%sested comments allowed.\\n"'",/*/*/0*/**/1?"":"o n"'");}'|grep -v '^#'>o.c;cc -o o o.c;o"
Shell
for i in "${@?${usage?$0 file...}}";do<"$i"||exit;done (cat&&tar cbf 1 - "$@"|compress|btoa&&echo w)<<\Z #!/bin/sh # # GENTLE READER -- write this message to file [no headers!]; run "sh file". # # [un]shark: By James A. Woods. # Seed planted by Karl Fox; code intensified by Paul Eggert. # # "Cleverly he dialed from wit...
Shell
#!/bin/sh name=herrmann1 # Make sure things are clean to start with... rm -f ${name} ${name}-1.c ${name}-2.c ${name}-3.c defs="" for p in ${1+"$@"}; do defs="$defs \"-D$p\"" done cp ${name}.c ${name}-1.c touch ${name}-3.c until cmp -s ${name}-1.c ${name}-3.c > /dev/null; do eval ${CC:-cc} -E ${name}-1.c -o $...
Shell
: # to run fubar in the 'proper' way # parse args if [ $# -ne 1 ]; then echo "usage: $0 number" 1>&2 exit 1 fi # run/compile it rm -f ouroboros.c x1 x ex - <<EOF r fubar.c 7,8j w ouroboros.c EOF chmod +x ouroboros.c ouroboros.c $1 rm -f ouroboros.c x1 x
Shell
: # 'run' jar.1.orig # run/compile it rm -f jar.1.orig.o cc jar.1.orig.c -c cat jar.1.orig.o rm -f jar.1.orig.o
Shell
: # 'run' jar.1 # run/compile it rm -f jar.1.o cc jar.1.c -c cat jar.1.o rm -f jar.1.o
Shell
#!/bin/sh # # play tic-tac-toe # parse args # if [ $# -gt 1 ]; then echo "usage: ttt [move_digit]" 1>&2 echo " ttt quitgame" 1>&2 echo " ttt clobber" 1>&2 exit 1 elif [ $# -eq 1 ]; then move="$1" else move= fi # catch the clobber case # if [ clobber = "$move" ]; then echo "ttt:...
Shell
#!/bin/sh # # garry.test - example of how to use garry EXAMPLEON="\33\133\61\73\67\155" EXAMPLEOFF="\33\133\155" DOLLAR="$" export EXAMPLEON EXAMPLEOFF DOLLAR ./garry <garry.data
Shell
#!/bin/sh T1="a" P1="aaaaaaaaab" bad_for_simple () { i=1; while [ $i -le 9999999 ] ; do printf '%s' "$T1" i=$(( $i + 1 )) done printf 'b\n%s\n' $P1 } bad_for_simple
Shell
#!/bin/sh echo echo '$@' = $@ echo '$0' = $0 echo '$1' = $1 echo '$2' = $2 echo '$#' = $# exit 0
Shell