code stringlengths 1 1.96M | language stringclasses 1
value |
|---|---|
#!/bin/bash
set -e
./runant war
third_party/appengine-sdk/sdk/bin/appcfg.sh update build/war
| Shell |
#!/bin/bash
# Sample shell script for invoking ant.
# Copy to a new file and fill in the values below.
# To keep the secret secret, don't share your runant script.
ant -Dapp-id='your-app-id' \
-Dapp-version='1' \
-Doauth-client-id='your-oauth-client-id' \
-Doauth-client-secret='your-oauth-client-secret' \... | Shell |
#!/bin/sh
BACKUP_DEST=/export/backups
BACKUP_FS=external/export/backups
BACKUP_HOST=backups
BACKUP_USER=operator
if [ "$DEBUG" = "" ]
then
ECHO=""
else
ECHO=echo
fi
case $(uname) in
Darwin)
dump_list=$(df -T ufs,hfs | awk 'NR != 1 { print $NF }') ;
extra_flags="--extended-attribues"
hostname=$(hostnam... | Shell |
#!/bin/sh
FS=$1
POOL=$(echo $FS | sed 's;/.*;;')
$DEBUG zfs set bootfs=$FS $POOL
$DEBUG sed -i .old "/vfs.root.mountfrom/s;=.*;=\"zfs:$FS\"" /boot/loader.conf
| Shell |
# Set up some autoload functions
autoload -Uz colors vcs_info
# Now reset the prompt to get colors
colors
# Turn on and configure the version control system information
precmd () { vcs_info }
zstyle ':vcs_info:*' get-revision true
zstyle ':vcs_info:*' check-for-changes true
zstyle ':vcs_info:*' formats '%u%c|%s:%b'
z... | Shell |
## vim:ft=zsh
## fossil support by: Mike Meyer <mwm@mired.org>
## Distributed under the same BSD-ish license as zsh itself.
setopt localoptions NO_shwordsplit
[[ $1 == '--flavours' ]] && return 1
VCS_INFO_check_com ${vcs_comm[cmd]} || return 1
vcs_comm[detect_need_file]=_FOSSIL_
VCS_INFO_bydir_detect . || return 1
... | Shell |
## vim:ft=zsh
## perforce support by: Phil Pennock
## Distributed under the same BSD-ish license as zsh itself.
# XXX: This soooo needs to be cached
setopt localoptions extendedglob
local a b
local change changed
local action merging
local -A fsinfo
local -xA hook_com
${vcs_comm[cmd]} status | while IFS=: read a b; d... | Shell |
#!/bin/sh
CLASSPATH=./src:./lib/\*:./lib/dev/\* clj --init src/x10/servlet.clj -e '(x10.servlet/boot)' | 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 |
BASE_PATH=/dev/fs/C/Projects/code.google.com/ajaxstack
SERVER_KEY=/dev/fs/C/Users/mythz/server.key
HOST_LOGIN=mythz@servicestack.net
| Shell |
#!/bin/sh
. ../env-vars.sh
echo uploading AjaxStack/html...
rsync --verbose --progress --stats --compress \
-e "ssh -i $SERVER_KEY" \
--recursive --times --perms --links \
$BASE_PATH/html/ $HOST_LOGIN:html/ajaxstack.com/
| Shell |
#!/bin/sh
. ../env-vars.sh
echo uploading AjaxStack/html...
rsync --verbose --progress --stats --compress \
-e "ssh -i $SERVER_KEY" \
--recursive --times --perms --links \
$BASE_PATH/html/ $HOST_LOGIN:html/ajaxstack.com/
| Shell |
#!/bin/sh
# BuildAllSDKs.sh
#
# This script builds both the Tiger and Leopard versions of the requested
# target in the current basic config (debug, release, debug-gcov). This script
# should be run from the same directory as the GTM Xcode project file.
#
# Copyright 2006-2008 Google Inc.
#
# Licensed under the Apache ... | Shell |
#!/bin/bash
#
# RunMacOSUnitTests.sh
# Copyright 2008 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 require... | Shell |
#!/bin/bash
# RunIPhoneUnitTest.sh
# Copyright 2008 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 ... | Shell |
#!/bin/bash
mkdir -p Library/SDKs/CorePlotSDK
mkdir -p Library/Frameworks
mkdir -p Library/Developer/Shared/Documentation/DocSets
mkdir -p CorePlot/Binaries/iOS/CorePlot
unzip CorePlot/Binaries/iOS/CorePlot.zip -d CorePlot/Binaries/iOS/CorePlot
cp -r CorePlot/Binaries/iOS/CorePlot/CorePlotSDK/* Library/SDKs/CorePlotS... | Shell |
#
# Set some language specific variables. Works in conjunction with
# tesstrain.sh
#
#=============================================================================
# Language specific info
#=============================================================================
# Array of all valid language codes.
VALID_LANGUAG... | Shell |
#!/bin/bash
# (C) Copyright 2014, 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 in wr... | Shell |
#!/bin/bash
# (C) Copyright 2014, 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 in wr... | Shell |
#-*- mode: shell-script;-*-
#
# bash completion support for tesseract
#
# Copyright (C) 2009 Neskie A. Manuel <neskiem@gmail.com>
# Distributed under the Apache License, Version 2.0.
#
_tesseract_languages()
{
local TESSDATA="/usr/share/tesseract-ocr/tessdata/"
local langs="$(ls $TESSDATA | grep traineddata | cut -... | Shell |
#!/bin/bash
#
# File: generate_manpages.sh
# Description: Converts .asc files into man pages, etc. for Tesseract.
# Author: eger@google.com (David Eger)
# Created: 9 Feb 2012
#
# (C) Copyright 2012 Google Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this f... | Shell |
#!/bin/bash
# File: runalltests.sh
# Description: Script to run a set of UNLV test sets.
# Author: Ray Smith
# Created: Thu Jun 14 08:21:01 PDT 2007
#
# (C) Copyright 2007, Google Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with... | Shell |
#!/bin/bash
# File: counttestset.sh
# Description: Script to count the errors on a single UNLV set.
# Author: Ray Smith
# Created: Wed Jun 13 11:58:01 PDT 2007
#
# (C) Copyright 2007, Google Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in comp... | Shell |
#!/bin/bash
# File: runtestset.sh
# Description: Script to run tesseract on a single UNLV set.
# Author: Ray Smith
# Created: Wed Jun 13 10:13:01 PDT 2007
#
# (C) Copyright 2007, Google Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in complianc... | Shell |
#!/bin/bash
if [ $# -ne 1 ]
then
echo "Usage:$0 scantype"
echo "UNLV data comes in several scan types:"
echo "3B=300 dpi binary"
echo "3A=adaptive thresholded 300 dpi"
echo "3G=300 dpi grey"
echo "4B=400dpi binary"
echo "2B=200dpi binary"
echo "For now we only use 3B"
exit 1
fi
ext=... | Shell |
#!/bin/sh
# This is a simple script which is meant to help developers
# better deal with the GNU autotools, specifically:
#
# aclocal
# autoheader
# autoconf
# automake
#
# The whole thing is quite complex...
#
# The idea is to run this collection of tools on a single platform,
# typically the main development... | Shell |
#!/bin/sh
# quick test for GWTPhotoAlbum:
# 1. generates a new deployment package
# 2. creates a GWTPhotoAlbum
# 3. runs a web browser to display the GWTPhotoAlbum offline
./genDeploymentPackage.py
./createGWTPhotoAlbum.py -j -n -q -b example_pictures
firefox album/index_offline.html
| Shell |
#!/bin/sh
python -O Configure.py
python Makespec.py -F -K -s -X ../scripts/GWTPhotoAlbumCreator.py
cp ../scripts/pyinstaller/ubuntu-10.4/GWTPhotoAlbumCreator.spec GWTPhotoAlbumCreator
python -O Build.py GWTPhotoAlbumCreator/GWTPhotoAlbumCreator.spec
chmod 755 GWTPhotoAlbumCreator/dist/GWTPhotoAlbumCreator
mv GWTPhotoA... | Shell |
#!/bin/sh
python -O Configure.py
python Makespec.py -F -K -s -X ../scripts/GWTPhotoAlbumCreator.py
cp ../scripts/pyinstaller/debian-6.0/GWTPhotoAlbumCreator.spec GWTPhotoAlbumCreator
python -O Build.py GWTPhotoAlbumCreator/GWTPhotoAlbumCreator.spec
chmod 755 GWTPhotoAlbumCreator/dist/GWTPhotoAlbumCreator
mv GWTPhotoAl... | Shell |
#!/bin/bash
cd `hg root`
PORT=2012
java -jar js/plovr.jar serve --port ${PORT} \
js/chrome-contentscript-config.js \
js/chrome-background-config.js \
js/chrome-options-config.js
| Shell |
#!/bin/bash
# Abort if any individual command fails.
set -e
# Ensure this is run from the root directory.
cd `hg root`
# Clean out the previous build.
BUILD_DIR=build
rm -rf ${BUILD_DIR}
# Create build directories.
mkdir -p ${BUILD_DIR}
GOOGLE_CHROME_BUILD_DIR=${BUILD_DIR}/google-chrome
mkdir -p ${GOOGLE_CHROME_BUI... | 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
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
$ADB shell "echo '$*' | sqlite3 -header -column /data/data/com.google.android.apps.iosched/databases/schedule.db" | Shell |
#!/bin/sh
# Sessions list
#adb shell am start -a android.intent.action.VIEW -d content://com.google.android.apps.iosched/tracks/android/sessions
# Vendors list
#adb shell am start -a android.intent.action.VIEW -d content://com.google.android.apps.iosched/tracks/android/vendors
# Session detail
#adb shell am start -a... | Shell |
#!/bin/sh
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
adb shell cat /data/data/com.google.android.apps.iosched/shared_prefs/com.google.android.apps.iosched_preferences.xml | xmllint --format - | 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
adb shell pm clear com.google.android.apps.iosched | 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/bash
SRC_DIR=~/src
CLOJURE_JAR=$SRC_DIR/clojure/clojure.jar
SWT_JAR=$SRC_DIR/swt-3.4-mac/swt-debug.jar
java \
-cp .:$CLOJURE_JAR:$SWT_JAR \
clojure.main \
ajure/start.clj \
"$@" | Shell |
#!/bin/bash
SRC_DIR=~/src
CLOJURE_JAR=$SRC_DIR/clojure/clojure.jar
SWT_JAR=$SRC_DIR/swt-3.5M5-carbon-macosx/swt-debug.jar
java \
-XstartOnFirstThread \
-cp .:$CLOJURE_JAR:$SWT_JAR \
clojure.main \
ajure/start.clj \
"$@"
| Shell |
#!/bin/bash
SRC_DIR=~/src
CLOJURE_JAR=$SRC_DIR/clojure/clojure.jar
#SWT_JAR=$SRC_DIR/swt-3.5M4-carbon-macosx/swt-debug.jar
#SWT_JAR=$SRC_DIR/swt-3.5M4-cocoa-macosx/swt-debug.jar
SWT_JAR=$SRC_DIR/swt-3.5M5-cocoa-macosx/swt-debug.jar
java \
-XstartOnFirstThread \
-cp .:$CLOJURE_JAR:$SWT_JAR \
clojure.main \
aju... | Shell |
#!/bin/bash
SRC_DIR=~/src
CLOJURE_JAR=$SRC_DIR/clojure/clojure.jar
SWT_JAR=$SRC_DIR/swt-3.4-mac/swt-debug.jar
#SWT_JAR=$SRC_DIR/swt-3.5M4-carbon-macosx/swt-debug.jar
#SWT_JAR=$SRC_DIR/swt-3.5M4-cocoa-macosx/swt-debug.jar
java \
-XstartOnFirstThread \
-cp .:$CLOJURE_JAR:$SWT_JAR \
clojure.main \
ajure/start.cl... | Shell |
#!/bin/bash
SRC_DIR=~/src
CLOJURE_JAR=$SRC_DIR/clojure/clojure.jar
SWT_JAR=$SRC_DIR/swt-3.4-mac/swt-debug.jar
#SWT_JAR=$SRC_DIR/swt-3.5M4-carbon-macosx/swt-debug.jar
#SWT_JAR=$SRC_DIR/swt-3.5M4-cocoa-macosx/swt-debug.jar
java \
-agentpath:/Applications/YourKit_Java_Profiler_8.0.1.app/bin/mac/libyjpagent.jnilib \
... | Shell |
#!/bin/bash
SRC_DIR=~/src
CLOJURE_JAR=$SRC_DIR/clojure/clojure.jar
JLINE_JAR=$SRC_DIR/jline-0.9.94/jline-0.9.94.jar
SWT_JAR=$SRC_DIR/swt-3.4-mac/swt-debug.jar
java \
-XstartOnFirstThread \
-cp .:$JLINE_JAR:$CLOJURE_JAR:$SWT_JAR \
jline.ConsoleRunner \
clojure.main \
"$@" | Shell |
#!/bin/bash
SRC_DIR=~/src
CLOJURE_JAR=$SRC_DIR/clojure/clojure.jar
SWT_JAR=$SRC_DIR/swt-3.4-mac/swt-debug.jar
java \
-cp .:$CLOJURE_JAR:$SWT_JAR \
clojure.main \
ajure/start.clj \
"$@" | Shell |
#!/bin/bash
SRC_DIR=~/src
CLOJURE_JAR=$SRC_DIR/clojure/clojure.jar
SWT_JAR=$SRC_DIR/swt-3.5M5-carbon-macosx/swt-debug.jar
java \
-XstartOnFirstThread \
-cp .:$CLOJURE_JAR:$SWT_JAR \
clojure.main \
ajure/start.clj \
"$@"
| Shell |
#!/bin/bash
SRC_DIR=~/src
CLOJURE_JAR=$SRC_DIR/clojure/clojure.jar
SWT_JAR=$SRC_DIR/swt-3.4-mac/swt-debug.jar
#SWT_JAR=$SRC_DIR/swt-3.5M4-carbon-macosx/swt-debug.jar
#SWT_JAR=$SRC_DIR/swt-3.5M4-cocoa-macosx/swt-debug.jar
java \
-XstartOnFirstThread \
-cp .:$CLOJURE_JAR:$SWT_JAR \
clojure.main \
ajure/start.cl... | Shell |
#!/bin/bash
SRC_DIR=~/src
CLOJURE_JAR=$SRC_DIR/clojure/clojure.jar
#SWT_JAR=$SRC_DIR/swt-3.5M4-carbon-macosx/swt-debug.jar
#SWT_JAR=$SRC_DIR/swt-3.5M4-cocoa-macosx/swt-debug.jar
SWT_JAR=$SRC_DIR/swt-3.5M5-cocoa-macosx/swt-debug.jar
java \
-XstartOnFirstThread \
-cp .:$CLOJURE_JAR:$SWT_JAR \
clojure.main \
aju... | Shell |
#!/bin/bash
SRC_DIR=~/src
CLOJURE_JAR=$SRC_DIR/clojure/clojure.jar
SWT_JAR=$SRC_DIR/swt-3.4-mac/swt-debug.jar
#SWT_JAR=$SRC_DIR/swt-3.5M4-carbon-macosx/swt-debug.jar
#SWT_JAR=$SRC_DIR/swt-3.5M4-cocoa-macosx/swt-debug.jar
java \
-agentpath:/Applications/YourKit_Java_Profiler_8.0.1.app/bin/mac/libyjpagent.jnilib \
... | Shell |
#!/bin/bash
CLOJURE_JAR_SRC=../../clojure/clojure.jar
SWT_JAR_SRC=../../swt-3.4-mac/swt.jar
BASE_DIR=..
DEPLOY_DIR=.
TEMP_DIR=Temp
DMG_NAME=Ajure_0.4.dmg
INSTALL_SRC_DIR=AjureInstall
INSTALL_DIR=$TEMP_DIR/AjureInstall
CODE_SRC_DIR=$BASE_DIR/ajure
CODE_DEST_DIR=$INSTALL_DIR/Ajure.app/Contents/MacOS
# Copy the source... | Shell |
#!/bin/bash
CLOJURE_JAR_SRC=../../clojure/clojure.jar
SWT_JAR_SRC=../../swt-3.4-mac/swt.jar
BASE_DIR=..
DEPLOY_DIR=.
TEMP_DIR=Temp
DMG_NAME=Ajure_0.4.dmg
INSTALL_SRC_DIR=AjureInstall
INSTALL_DIR=$TEMP_DIR/AjureInstall
CODE_SRC_DIR=$BASE_DIR/ajure
CODE_DEST_DIR=$INSTALL_DIR/Ajure.app/Contents/MacOS
# Copy the source... | Shell |
#!/bin/sh
BASE_DIR=`dirname $0`
CLOJURE_JAR=$BASE_DIR/clojure.jar
SWT_JAR=$BASE_DIR/swt-3.4-mac.jar
exec java \
-XstartOnFirstThread \
-classpath $BASE_DIR:$CLOJURE_JAR:$SWT_JAR \
-Djava.library.path=$BASE_DIR/swt-3.4-mac \
clojure.lang.Script \
$BASE_DIR/ajure/start.clj \
"$@" | Shell |
#!/bin/sh
BASE_DIR=`dirname $0`
CLOJURE_JAR=$BASE_DIR/clojure.jar
SWT_JAR=$BASE_DIR/swt-3.4-mac.jar
exec java \
-XstartOnFirstThread \
-classpath $BASE_DIR:$CLOJURE_JAR:$SWT_JAR \
-Djava.library.path=$BASE_DIR/swt-3.4-mac \
clojure.lang.Script \
$BASE_DIR/ajure/start.clj \
"$@" | Shell |
#!/bin/bash
SRC_DIR=~/src
CLOJURE_JAR=$SRC_DIR/clojure/clojure.jar
JLINE_JAR=$SRC_DIR/jline-0.9.94/jline-0.9.94.jar
SWT_JAR=$SRC_DIR/swt-3.4-mac/swt-debug.jar
java \
-XstartOnFirstThread \
-cp .:$JLINE_JAR:$CLOJURE_JAR:$SWT_JAR \
jline.ConsoleRunner \
clojure.main \
"$@" | 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/sh
#
# install - install a program, script, or datafile
# This comes from X11R5 (mit/util/scripts/install.sh).
#
# Copyright 1991 by the Massachusetts Institute of Technology
#
# Permission to use, copy, modify, distribute, and sell this software and its
# documentation for any purpose is hereby granted without ... | Shell |
#!/bin/sh -e
./test_bitstream
./test_estimatebit
./test_qrencode
./test_qrinput
./test_qrspec
./test_rs
./test_split
./test_mask
./test_mqrspec
./test_mmask
./test_monkey
| Shell |
#! /bin/sh
# Wrapper for compilers which do not understand `-c -o'.
scriptversion=2009-10-06.20; # UTC
# Copyright (C) 1999, 2000, 2003, 2004, 2005, 2009 Free Software
# Foundation, Inc.
# Written by Tom Tromey <tromey@cygnus.com>.
#
# This program is free software; you can redistribute it and/or modify
# it under t... | Shell |
# libtool (GNU libtool) 2.4.2
# Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006,
# 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
# This is free software; see the source for copying conditions. There is NO
# warranty; no... | Shell |
#! /bin/sh
# depcomp - compile a program generating dependencies as side-effects
scriptversion=2009-04-28.21; # UTC
# Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007, 2009 Free
# Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU Ge... | Shell |
#! /bin/sh
# Common stub for a few missing GNU programs while installing.
scriptversion=2009-04-28.21; # UTC
# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006,
# 2008, 2009 Free Software Foundation, Inc.
# Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
# This program is free softw... | Shell |
#! /bin/sh
# Output a system dependent set of variables, describing how to set the
# run time search path of shared libraries in an executable.
#
# Copyright 1996-2007 Free Software Foundation, Inc.
# Taken from GNU libtool, 2001
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
#
# This file is fre... | Shell |
#!/bin/sh
# install - install a program, script, or datafile
scriptversion=2009-04-28.21; # UTC
# This originates from X11R5 (mit/util/scripts/install.sh), which was
# later released in X11R6 (xc/config/util/install.sh) with the
# following copyright and license.
#
# Copyright (C) 1994 X Consortium
#
# Permission is ... | Shell |
#!/bin/sh
set -e
if [ `uname -s` = Darwin ]; then
LIBTOOLIZE=glibtoolize
else
LIBTOOLIZE=libtoolize
fi
if [ -d /usr/local/share/aclocal ]; then
ACLOCAL_DIR=/usr/local/share/aclocal
elif [ -d /opt/local/share/aclocal ]; then
ACLOCAL_DIR=/opt/local/share/aclocal
elif [ -d /usr/share/aclocal ]; then
... | Shell |
#!/bin/bash
debuild -us -uc -S
sudo pbuilder-dist maverick build ../*.dsc
mkdir -p ../packages/maverick
cp /home/ehlertjd/pbuilder/maverick_result/dwarftherapist_0.6.?_i386.deb ../packages/maverick
| Shell |
#!/bin/sh
DT_VERSION=`cat inc/defines.h | awk 'BEGIN {i = 1} /#define DT_VERSION/ {ver[i++] = $3} END {printf("%d.%d.%d\n", ver[1], ver[2], ver[3])}'`
SRC_DIR=dwarftherapist-$DT_VERSION
TAR_FILE=../dwarftherapist-$DT_VERSION.tar.gz
TAR_FILE_ORIG=../dwarftherapist_$DT_VERSION.orig.tar.gz
rm -f $TAR_FILE
mkdir $SRC_DI... | Shell |
#!/bin/bash
debuild -us -uc -S
sudo pbuilder build ../*.dsc
mkdir -p ../packages/lucid
cp /var/cache/pbuilder/result/dwarftherapist_0.6.?_i386.deb ../packages/lucid
| Shell |
#!/bin/bash
#Build source descriptor
debuild -us -uc -S
#Other dists in pbuilder
for dist in "lucid" "maverick" "sid" "lenny"
do
#32-bit
sudo rm -rf ~/pbuilder/${dist}-i386_result/*
sudo pbuilder-dist $dist i386 build ../*.dsc
mkdir -p ../packages/dists
mkdir -p ../packages/dists/$dist
mkdir -p ../packages/di... | Shell |
ant clean; ant release; adb install -r bin/MetaTracker-release.apk
| 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
# mingus 0.4
# This little scripts checks the wiki documentation into google
WIKIREPO=""
if [[ "$1" ]] ; then
if [ -d "$1" ] ; then
WIKIREPO="$1"
else
echo "Not a valid directory '$1'"
exit 1
fi
else
echo "Usage: $0 WIKIREPO"
echo " Where WIKIREPO is a dire... | Shell |
#!/bin/bash
# This script goes through all the python files and tidies them
cd ../;
for dir in doc mingus mingus_examples unittest; do
for file in `find ${dir} -iname "*.py"`; do
echo $file;
./PythonTidy-1.19.python $file > tmp;
chmod --reference=$file tmp;
mv tmp $file;
done;
d... | Shell |
#!/bin/bash
#
# mingus build script
# Builds mingus, registers at PyPi, generates documentation and uploads to Google code
VERSION=`grep version setup.py | awk -F = '{print $2}' | awk -F \" '{print $2}'`
echo "*******************************************************************************"
echo "***** ... | 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 |
export PYTHONPATH=`pwd`:${PYTHONPATH}
| Shell |
#!/bin/bash
openssl req -new -newkey rsa:2048 -days 3650 -nodes -x509 \
-keyout privatekey.pem -out publickey.pem \
-subj "/CN=unit-tests"
openssl pkcs12 -export -out privatekey.p12 \
-inkey privatekey.pem -in publickey.pem \
-name "key" -passout pass:notasecret
| Shell |
#!/bin/bash
#
# Copyright 2012, Google Inc
#
# Generates a zip of the google api python client and dependencies.
#
# Author: afshar@google.com (Ali Afshar)
# Exit on failure.
set -e
# Where to build the zip.
ROOT_PATH=$(pwd)/build/gae
BUILD_PATH=${ROOT_PATH}/build
LIB_PATH=${ROOT_PATH}/lib
ENV_PATH=${ROOT_PATH}/ve
LO... | 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 file_name bucket/object
#
# Requirements:
# gsutil - a client application for interacting with... | Shell |
# Dungeon mode handler
# Akalabeth Re-Bourne
# Copyright (C) 2008 Norman B. Lancaster
#
# 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 yo... | Shell |
# ANSI Text Image Library
# Akalabeth Re-Bourne
# Copyright (C) 2008 Norman B. Lancaster
#
# 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... | Shell |
# ANSI terminal output control routines
# Akalabeth Re-Bourne
# Copyright (C) 2008 Norman B. Lancaster
#
# 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 Licen... | Shell |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.