code stringlengths 1 1.96M | language stringclasses 1
value |
|---|---|
#!/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/sh
for d in `cat dirlist`
do
echo creating $d
mkdir -p $d
done
| Shell |
#!/bin/bash
# 打开apache.http调试信息
adb shell setprop log.tag.org.apache.http VERBOSE
adb shell setprop log.tag.org.apache.http.wire VERBOSE
adb shell setprop log.tag.org.apache.http.headers VERBOSE
echo "Enable Debug"
| 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
# Detects OS we're compiling on and generates build_config.mk,
# which in turn gets read while processing Makefile.
# build_config.mk will set the following variables:
# - PORT_CFLAGS will either set:
# -DLEVELDB_PLATFORM_POSIX if cstatomic is present
# -DLEVELDB_PLATFORM_NOATOMI... | Shell |
#!/bin/sh
# If the sgmllib3.py file exists, copy it to sgmllib.py
if [ -e feedparser/sgmllib3.py ]; then
echo "Copying feedparser/sgmllib3.py to feedparser/sgmllib.py"
cp feedparser/sgmllib3.py feedparser/sgmllib.py
fi
echo "Using the 2to3 tool to convert feedparser.py and feedparsertest.py to Python 3"
2to3 ... | Shell |
#!/bin/sh
# If the sgmllib3.py file exists, copy it to sgmllib.py
if [ -e feedparser/sgmllib3.py ]; then
echo "Copying feedparser/sgmllib3.py to feedparser/sgmllib.py"
cp feedparser/sgmllib3.py feedparser/sgmllib.py
fi
echo "Using the 2to3 tool to convert feedparser.py and feedparsertest.py to Python 3"
2to3 ... | Shell |
ant clean; ant release; adb install -r bin/MetaTracker-release.apk
| Shell |
#!/bin/bash
# Copyright 2012, Google Inc. 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 is a sample hook to test the plumbing
EXIT_CODE=0
echo "TABLET_ALIAS:" $TABLET_ALIAS
for arg in $@ ; do
echo "PARAM:" $arg
if [ "$ar... | Shell |
#!/bin/bash
# Copyright 2012, Google Inc. All rights reserved.
# Use of this source code is governed by a BSD-style license that can
# be found in the LICENSE file.
if [ ! -f bootstrap.sh ]; then
echo "bootstrap.sh must be run from its current directory" 1>&2
exit 1
fi
. ./dev.env
diff misc/hg/hooks.hgrc .hg/hg... | Shell |
#!/bin/bash
changelog_count=$(hg outgoing | grep '^changeset:' | wc -l)
non_merge_count=$(hg outgoing -M | grep '^changeset:' | wc -l)
if [ $changelog_count != $non_merge_count ]; then
echo "outgoing files contain merges - reapply as a fresh patch" >&2
echo "run ./misc/hg/reapply-outgoing to fix" >&2
exit 1
fi
| Shell |
#!/bin/bash
fmt_errs=$(hg st -A | awk '$1 ~ /[ACM]/ && $2 ~ /go$/ { print $2 }' | xargs gofmt -l)
#fmt_errs=$(find . -name '*.go' -exec gofmt -l {} \;)
err_count=$(echo $fmt_errs | awk '{print NF}')
if [ "$err_count" != 0 ]; then
echo "gofmt errors: $err_count" >&2
echo "$fmt_errs" >&2
echo "run ./misc/hg/gofmt... | Shell |
#!/bin/bash
find . -name '*.go' -exec gofmt -w {} \;
| Shell |
#!/bin/bash
# Copyright 2012, Google Inc. All rights reserved.
# Use of this source code is governed by a BSD-style license that can
# be found in the LICENSE file.
# simple wrapper for starting up zookeeper so it detaches from the parent
# process and ingnores signals
logdir="$1"
config="$2"
pidfile="$3"
classpath... | Shell |
#/bin/sh
#Info
export VER=`cat lng.h | grep LNG_VER | awk '{ print $3 }' | sed 's/"//g'`
export VER_FOR_NAME=`echo $VER | sed 's/\./_/g'`
export PLATFORM=$1
export APPNAME=$2
export PANEL=
if [ `echo $PLATFORM | grep EZX` ]
then
export PLATFORM=`echo $PLATFORM | sed 's/EZX-//g'`
fi
if [ "$PLATFORM" = "E8" ]
then
expo... | Shell |
#/bin/sh
#Info
export VER=`cat lng.h | grep LNG_VER | awk '{ print $3 }' | sed 's/"//g'`
export VER_FOR_NAME=`echo $VER | sed 's/\./_/g'`
export PLATFORM=$1
export APPNAME=$2
export PANEL=
if [ `echo $PLATFORM | grep EZX` ]
then
export PLATFORM=`echo $PLATFORM | sed 's/EZX-//g'`
fi
if [ "$PLATFORM" = "E8" ]
then
expo... | Shell |
#/bin/sh
export APPNAME=zTaskMan
for p in Z6 ZN5 U9 V8
do
if [ "$1" = "new" ]
then
make clean
make PLATFORM=EZX-$p
fi
./MakePEP.sh $p $APPNAME
done
for p in E8 ZN5 U9 EM35 EM30
do
if [ "$1" = "new" ]
then
make clean
make PLATFORM=EZX-$p
fi
./MakeMGX.sh $p $APPNAME
done
for p in Z6 V8
do
if [ "$1" = "new" ]
t... | Shell |
#/bin/sh
#Info
export VER=`cat lng.h | grep LNG_VER | awk '{ print $3 }' | sed 's/"//g'`
export VER_FOR_NAME=`echo $VER | sed 's/\./_/g'`
export PLATFORM=$1
export APPNAME=$2
export PANEL=
if [ `echo $PLATFORM | grep EZX` ]
then
export PLATFORM=`echo $PLATFORM | sed 's/EZX-//g'`
fi
if [ "$PLATFORM" = "E8" ]
then
expo... | Shell |
#!/bin/bash
# run "./runTests.sh" for verbose output
# for short output, run
# ./runTests.sh | grep FAILED
# ./runTests.sh | grep PASSED
#master branch
SERVER_CLASS="org.ws4d.coap.test.PlugtestServer"
CLIENT_CLASS="org.ws4d.coap.test.PlugtestClient"
CLASSPATH="bin/:../ws4d-jcoap/bin"
LOG_DIR="log"
REF_LOG_DIR="logref"
... | Shell |
#!/bin/bash
# Copyright (c) 2008, Google Inc.
# 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, this list of con... | Shell |
#!/bin/bash
if [ $# != 1 ]
then
echo "Usage: $0 emailAddress"
exit 1
fi
read -s -p "Password: " mypassword
echo ""
curl https://www.google.com/accounts/ClientLogin -d Email=$1 -d "Passwd=$mypassword" -d accountType=GOOGLE -d source=Google-cURL-Example -d service=ac2dm
| 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/sh
# Need to run a full clean install when changing the request factory interfaces
# Doing so deletes the local debug app engine database
# This script backs that up first
SRC=shuffle-app-engine/target/shuffle-app-engine-2.0.0-SNAPSHOT/WEB-INF/appengine-generated
DEST=../db_backup
rm -r $DEST
mkdir $DEST
cp -... | Shell |
#!/bin/bash
if [ ! -d bin_x64/lib ]
then
mkdir -p bin_x64/lib
fi
if [ ! -d bin_x64d/lib ]
then
mkdir -p bin_x64d/lib
fi
cd ffmpeg
make distclean
OPTIONS="
--enable-shared \
--enable-gpl \
--enable-pthreads \
--enable-runtime-cpudetect \
--enable-asm \
--disable-postproc \
--enable-zlib \
--enable-swscale \
--disa... | Shell |
#!/bin/bash
if [ ! -d bin_Win32/lib ]
then
mkdir -p bin_Win32/lib
fi
if [ ! -d bin_Win32d/lib ]
then
mkdir -p bin_Win32d/lib
fi
cd ffmpeg
make distclean
OPTIONS="
--enable-shared \
--enable-gpl \
--enable-pthreads \
--enable-runtime-cpudetect \
--enable-asm \
--disable-postproc \
--enable-zlib \
--enable-swscale ... | Shell |
#!/bin/bash
if [ ! -d bin_Win32/lib ]
then
mkdir -p bin_Win32/lib
fi
if [ ! -d bin_Win32d/lib ]
then
mkdir -p bin_Win32d/lib
fi
cd ffmpeg
make distclean
OPTIONS="
--enable-shared \
--enable-gpl \
--enable-pthreads \
--enable-runtime-cpudetect \
--enable-asm \
--disable-postproc \
--enable-zlib \
--enable-swscale ... | Shell |
#!/bin/bash
if [ ! -d bin_x64/lib ]
then
mkdir -p bin_x64/lib
fi
if [ ! -d bin_x64d/lib ]
then
mkdir -p bin_x64d/lib
fi
cd ffmpeg
make distclean
OPTIONS="
--enable-shared \
--enable-gpl \
--enable-pthreads \
--enable-runtime-cpudetect \
--enable-asm \
--disable-postproc \
--enable-zlib \
--enable-swscale \
--disa... | Shell |
#!/bin/sh
echo $PASS; | 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
if [ $# != 1 ]
then
echo "Usage: $0 emailAddress"
exit 1
fi
read -s -p "Password: " mypassword
echo ""
curl https://www.google.com/accounts/ClientLogin -d Email=$1 -d "Passwd=$mypassword" -d accountType=GOOGLE -d source=Google-cURL-Example -d service=ac2dm
| Shell |
ant clean; ant release; adb install -r bin/MetaTracker-release.apk
| Shell |
mit-scheme --load $1
| Shell |
#!/bin/sh
include_docs=-Dgerrit.include-documentation=1
while [ $# -gt 0 ]
do
case "$1" in
--no-documentation|--without-documentation)
include_docs=
shift
;;
*)
echo >&2 "usage: $0 [--without-documentation]"
exit 1
esac
done
git update-index -q --refresh
if test -n "$(git diff-index --name-only HEAD -... | Shell |
#!/bin/sh
set -e
SRC=$(ls gerrit-plugin-api/target/gerrit-plugin-api-*-sources.jar)
VER=${SRC#gerrit-plugin-api/target/gerrit-plugin-api-}
VER=${VER%-sources.jar}
type=release
case $VER in
*-SNAPSHOT)
echo >&2 "fatal: Cannot deploy $VER"
echo >&2 " Use ./tools/version.sh --release && mvn clean package"
e... | Shell |
#!/bin/sh
# Update all pom.xml with new build number
#
# TODO(sop) This should be converted to some sort of
# Java based Maven plugin so its fully portable.
#
POM_FILES=$(git ls-files | grep pom.xml)
case "$1" in
--snapshot=*)
V=$(echo "$1" | perl -pe 's/^--snapshot=//')
if [ -z "$V" ]
then
echo >&2 "usage: $0 ... | Shell |
#!/bin/sh
export JETTY_HOST=127.0.0.1
export JETTY_PORT=8081
export JETTY_USER=gerrit2
export JETTY_PID=/var/run/jetty$JETTY_PORT.pid
export JETTY_HOME=/home/$JETTY_USER/jetty
export JAVA_HOME=/usr/lib/jvm/java-6-sun-1.6.0.07/jre
JAVA_OPTIONS=""
JAVA_OPTIONS="$JAVA_OPTIONS -Djetty.host=$JETTY_HOST"
export JAVA_OPTION... | Shell |
#!/bin/sh
#
# Part of Gerrit Code Review (http://code.google.com/p/gerrit/)
#
# Copyright (C) 2009 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://w... | Shell |
#!/bin/sh
V=$(git describe HEAD)
case "$V" in
'')
echo >&2 "fatal: no annotated tags, cannot determine version"
exit 1
;;
*-g*)
echo >&2 "fatal: snapshot $V, cannot determine version"
exit 1
;;
v*)
echo "$V" | perl -lne 'print $1 if /^v(\d+\.\d+(?:\.\d+)?)/'
;;
esac
| Shell |
#!/bin/sh
#
# Launch Gerrit Code Review as a daemon process.
# To get the service to restart correctly on reboot, uncomment below (3 lines):
# ========================
# chkconfig: 3 99 99
# description: Gerrit Code Review
# processname: gerrit
# ========================
# Configuration files:
#
# /etc/default/gerrit... | Shell |
#!/bin/bash
# Copyright (c) 2012, Code Aurora Forum. 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, this list... | 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/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))/..
GAE=$ROOT/../google_appengine
FILES=$(find codereview -iname "*.py" | grep -v "cpplint")
IMPORTS=$GAE:$GAE/lib/django_1_2
PYTHONPATH=$IMPORTS:$PYTHONPA... | 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 \
--host 0.0.0.0 \
--skip_sdk_update_check yes \
. $*
| Shell |
#!/bin/bash
#
set -uex
curl 'http://localhost:8081/list-games'
| 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 -uex
curl 'http://localhost:8081/debug'
| Shell |
#!/bin/bash
#
set -ue
set -x
curl -H "Content-Type: application/json" "http://localhost:12345/ping"
| Shell |
#!/bin/bash
#
set -uex
curl 'http://localhost:8081/start-game'
| 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 |
#!/bin/bash
#
set -ue
set -x
curl -H "Content-Type: application/json" "http://localhost:12345/log"
| Shell |
#!/bin/sh -e
#
# Written by Philipp Meier <meier@meisterbohne.de> for Jetty
# Modified for JMemcached by Ryan Daum <ryan@thimbleware.com>
#
### BEGIN INIT INFO
# Provides: jetty
# Required-Start: $syslog $network
# Required-Stop: $syslog $network
# Should-Start: $local_fs
# Should-Stop: $loca... | Shell |
#!/bin/sh
#
# Post installation script
#
set -e
# summary of how this script can be called:
# * <postinst> `configure' <most-recently-configured-version>
# * <old-postinst> `abort-upgrade' <new version>
# * <conflictor's-postinst> `abort-remove' `in-favour' <package>
# <new-version>
# ... | Shell |
#!/bin/sh
#
# Pre removal scriptix
#
set -e
# stop the server
if [ -x "/etc/init.d/jmemcached" ]; then
if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
invoke-rc.d jmemcached stop || exit $?
else
/etc/init.d/jmemcached stop || exit $?
fi
fi
exit 0
| 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
#http://developer.apple.com/library/mac/#documentation/Java/Conceptual/Java14Development/03-JavaDeployment/JavaDeployment.html
#http://stackoverflow.com/questions/96882/how-do-i-create-a-nice-looking-dmg-for-mac-os-x-using-command-line-tools
set -o verbose #echo onset +o verbose #echo off
# Note: this must ... | Shell |
#!/bin/sh
# 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
# 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
# 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
# Copyright (C) 2010 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 appl... | Shell |
# Copyright (C) 2008 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 applicable law ... | Shell |
#!/bin/sh
# Copyright (C) 2010 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 appl... | Shell |
#!/bin/bash
for file in test/*.cnf
do
#echo "$file"
./cuda/program "$file" #>$file.log
done
| Shell |
ant clean; ant release; adb install -r bin/MetaTracker-release.apk
| Shell |
#!/bin/bash
#
# MySQL Backup Script
# VER. 2.5 - http://sourceforge.net/projects/automysqlbackup/
# Copyright (c) 2002-2003 wipe_out@lycos.co.uk
#
# 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;... | Shell |
#!/bin/bash
#
# MySQL Backup Script
# VER. 2.5 - http://sourceforge.net/projects/automysqlbackup/
# Copyright (c) 2002-2003 wipe_out@lycos.co.uk
#
# 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;... | Shell |
#! /bin/sh
echo "do you like this script[y/n]?"
read YES_OR_NO
if [ "$YES_OR_NO" = "y" ]; then
echo "thank you!"
elif [ "$YES_OR_NO" = "n" ]; then
echo "why?"
else
echo "Sorry, you didn't give the answer[y/n]."
exit 1
fi
exit 0
| Shell |
#! /bin/sh
echo "do you like this script[y/n]?"
read YES_OR_NO
if [ "$YES_OR_NO" = "y" ]; then
echo "thank you!"
elif [ "$YES_OR_NO" = "n" ]; then
echo "why?"
else
echo "Sorry, you didn't give the answer[y/n]."
exit 1
fi
exit 0
| Shell |
dir=`dirname $0`
classes=`grep -m 1 ^$1 ${dir}/cocoa_indexes/classes.txt`
if [ -z "$classes" ]; then exit; fi
zgrep "^\($classes\)" ${dir}/cocoa_indexes/methods.txt.gz | sed 's/^[^ ]* //'
| Shell |
#!/bin/bash
var1=$1
tmp_file=~/.__tmp_go
ouput_list=`find . -name "*$var1*" ! -name "*.i" ! -name "*.pyc" ! -name "*.orig"`
find . -name "*$var1*" ! -name "*.i" ! -name "*.pyc" ! -name "*.orig" > $tmp_file
lines=`awk '{print NR}' $tmp_file|tail -n1`
start_line='----------------start------------------'
end_line='-------... | Shell |
#!/bin/bash
var1=$1
tmp_file=~/.__tmp_go
ouput_list=`find . -name "*$var1*" ! -name "*.i" ! -name "*.pyc" ! -name "*.orig"`
find . -name "*$var1*" ! -name "*.i" ! -name "*.pyc" ! -name "*.orig" > $tmp_file
lines=`awk '{print NR}' $tmp_file|tail -n1`
start_line='----------------start------------------'
end_line='-------... | 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
# Copyright 2014 Google Inc. All rights reserved.
#
# 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 applica... | Shell |
#!/bin/sh
source scripts/common.sh
####################################################################################################
DRISHTI_BASENAME="Drishti"
DRISHTI_DIR="../../drishti"
DRISHTI_APP_BUNDLE_DIR=${BUILD_PRODUCTS_DIR}/${DRISHTI_BASENAME}.app
DRISHTI_APP_FRAMEWORK_DIR=${DRISHTI_APP_BUNDLE_DIR}/Cont... | Shell |
#!/bin/sh
source scripts/common.sh
####################################################################################################
PAINT_VERSION=${DRISHTI_VERSION}
PAINT_BASENAME="Paint"
PAINT_DIR="../../tools/paint"
PAINT_APP_BUNDLE_DIR=${BUILD_PRODUCTS_DIR}/${PAINT_BASENAME}.app
PAINT_APP_FRAMEWORK_DIR=${PAI... | Shell |
#!/bin/sh
####################################################################################################
function report()
{
echo "##########################################################################################"
echo "$1"
}
function abswd()
{
abspath=$(cd ${0%/*} && echo $PWD/${0##*/})
path_only... | Shell |
#!/bin/sh
source scripts/common.sh
####################################################################################################
FT_VERSION=2.3.7
FT_BASENAME="freetype"
FT_ARCHIVE="${FT_BASENAME}-${FT_VERSION}.tar.bz2"
FT_URL="http://download.savannah.gnu.org/releases/freetype/${FT_ARCHIVE}"
FT_DIR="${FT_BASE... | Shell |
#!/bin/sh
source scripts/common.sh
####################################################################################################
QT_VERSION=4.7.0-beta2
QT_BASENAME="qt-everywhere-opensource-src"
QT_ARCHIVE="${QT_BASENAME}-${QT_VERSION}.tar.gz"
QT_DIR="${QT_BASENAME}-${QT_VERSION}"
QT_URL="http://get.qt.nokia.... | Shell |
#!/bin/sh
source scripts/common.sh
####################################################################################################
JPEG_VERSION=6b
JPEG_BASENAME="jpeg"
JPEG_ARCHIVE="${JPEG_BASENAME}src.v${JPEG_VERSION}.tar.gz"
JPEG_URL="http://www.hdfgroup.org/ftp/lib-external/jpeg/src/${JPEG_ARCHIVE}"
JPEG_P... | Shell |
#!/bin/sh
source scripts/common.sh
####################################################################################################
PNG_VERSION=1.2.43
PNG_BASENAME="libpng"
PNG_ARCHIVE="${PNG_BASENAME}-${PNG_VERSION}.tar.gz"
PNG_URL="http://prdownloads.sourceforge.net/libpng/${PNG_ARCHIVE}"
PNG_DIR="${PNG_BASENA... | Shell |
#!/bin/sh
source scripts/common.sh
####################################################################################################
TIFF_VERSION=4.0.0beta5
TIFF_BASENAME="tiff"
TIFF_ARCHIVE="${TIFF_BASENAME}-${TIFF_VERSION}.tar.gz"
TIFF_URL="http://download.osgeo.org/libtiff/${TIFF_ARCHIVE}"
TIFF_DIR="${TIFF_BAS... | Shell |
#!/bin/sh
source scripts/common.sh
####################################################################################################
IM_VERSION='6.6.3-2'
IM_BASENAME="ImageMagick"
IM_ARCHIVE="${IM_BASENAME}-${IM_VERSION}.tar.gz"
IM_DIR="${IM_BASENAME}-${IM_VERSION}"
IM_URL="http://waix.dl.sourceforge.net/projec... | Shell |
#!/bin/sh
source scripts/common.sh
####################################################################################################
GLEW_VERSION=1.5.2
GLEW_BASENAME="glew"
GLEW_ARCHIVE="${GLEW_BASENAME}-${GLEW_VERSION}.tgz"
GLEW_DIR="${GLEW_BASENAME}-${GLEW_VERSION}"
GLEW_URL="http://prdownloads.sourceforge.net/... | Shell |
#!/bin/sh
source scripts/common.sh
mkdir -p ${THIRD_PARTY_BUILD}
pushd ${THIRD_PARTY_BUILD}
QGLV_VERSION=2.3.4
QGLV_BASENAME="libQGLViewer"
QGLV_ARCHIVE="libQGLViewer-${QGLV_VERSION}.tar.gz"
QGLV_DIR="libQGLViewer-${QGLV_VERSION}"
QGLV_URL="http://www.libqglviewer.com/src/${QGLV_ARCHIVE}"
echo "Removing old build f... | Shell |
#!/bin/sh
source scripts/common.sh
####################################################################################################
GSF_VERSION=8.11
GSF_BASENAME="fonts"
GSF_ARCHIVE="ghostscript-fonts-std-${GSF_VERSION}.tar.gz"
GSF_DIR="fonts"
GSF_URL="http://prdownloads.sourceforge.net/gs-fonts/${GSF_ARCHIVE}"... | Shell |
#!/bin/sh
source scripts/common.sh
####################################################################################################
HDF4_VERSION=4.2.5
HDF4_BASENAME="hdf"
HDF4_ARCHIVE="${HDF4_BASENAME}-${HDF4_VERSION}.tar.gz"
HDF4_URL="http://www.hdfgroup.org/ftp/HDF/HDF_Current/src/${HDF4_ARCHIVE}"
HDF4_PATCH... | Shell |
#!/bin/sh
source scripts/common.sh
####################################################################################################
NETCDF_VERSION=4.0.1
NETCDF_BASENAME="netcdf"
NETCDF_ARCHIVE="${NETCDF_BASENAME}-${NETCDF_VERSION}.tar.gz"
NETCDF_DIR="${NETCDF_BASENAME}-${NETCDF_VERSION}"
NETCDF_URL="http://www.u... | Shell |
#!/bin/sh
####################################################################################################
source build-3rdparty.sh || exit -1
source build-drishti.sh || exit -1
source build-import.sh || exit -1
source build-paint.sh || exit -1
source build-installer.sh || exit -1
###############################... | Shell |
#!/bin/sh
source scripts/common.sh
####################################################################################################
PACKAGE_NAME=Drishti-${DRISHTI_VERSION}
PACKAGE_DIR=tmp/${PACKAGE_NAME}
####################################################################################################
report... | Shell |
#!/bin/sh
source scripts/common.sh
####################################################################################################
IMPORT_VERSION=${DRISHTI_VERSION}
IMPORT_BASENAME="Import"
IMPORT_DIR="../../tools/import"
IMPORT_APP_BUNDLE_DIR=${BUILD_PRODUCTS_DIR}/${IMPORT_BASENAME}.app
IMPORT_APP_FRAMEWORK_D... | Shell |
#!/bin/sh
report "Building Third Party dependencies...\n"
mkdir -p ../../3rdParty
mkdir -p ../../3rdParty/build
source scripts/common.sh
source scripts/build-freetype.sh || exit 1
source scripts/build-glew.sh || exit 1
source scripts/build-gsfonts.sh || exit 1
source scripts/build-libjpeg.sh || exit 1
source scrip... | Shell |
#!/bin/bash
mkdir -p ../../3rdParty/build
pushd ../../3rdParty/build
FETCH="curl -f"
FETCH_URL="http://sf.anu.edu.au/~rph900/drishti/3rdParty"
INSTALL_PREFIX=`pwd`/..
MACHINE=`uname -m`
if [ "$MACHINE" == "x86_64" ]; then
echo "64 bit"
pushd ..
rm -rf lib64
mkdir -p lib
ln -s lib lib64
popd
fi
prep() {... | Shell |
#!/bin/bash
source ../../version.pri
DIST=`lsb_release -s -i`
RELEASE=`lsb_release -s -r`
MACHINE=`uname -m`
TGZ_PREFIX=Drishti-$VERSION
rm -rf $TGZ_PREFIX
TGZ_BIN=$TGZ_PREFIX/bin
TGZ_LIB=$TGZ_PREFIX/lib
TGZ_DOC=$TGZ_PREFIX/doc
TGZ_PLUGINS=$TGZ_PREFIX/plugins
TGZ_TRANSLATIONS=$TGZ_PREFIX/translations
mkdir -p $TG... | Shell |
#!/bin/bash
pushd $(dirname $0) > /dev/null; script_dir=$PWD; popd > /dev/null
pactester=$script_dir/../src/pactester
pacfile=$script_dir/proxy.pac
testdata=$script_dir/testdata
library_path=$script_dir/../src
export DYLD_LIBRARY_PATH=$library_path
export LD_LIBRARY_PATH=$library_path
lib=$library_path/libpacparser.... | Shell |
#!/bin/bash -ex
#
# $Id$
# Copyright 2009 Google Inc. All Rights Reserved.
# Author: manugarg@google.com (Manu Garg)
ARCH=$(uname)
if [ "$ARCH" == "Linux" ]; then
DL_EXT="so"
fi
if [ "$ARCH" == "Darwin" ]; then
DL_EXT="dylib"
fi
function install_stuff
{
if [ $(id -u) == 0 ]; then
set -e
find . -name "li... | Shell |
#!/bin/sh -e
#
# This script creates a Mac package, that can be directly installed by
# Installer on Mac.
ver=$1
[ -z $ver ] && echo "Please specify package version." && exit
# $stage_dir is where we'll install our package files.
stage_dir=/tmp/pacparser_$RANDOM
sudo rm -rf /tmp/pacparser*
mkdir -p $stage_dir
if [ !... | Shell |
#!/bin/bash -e
USAGE="
Usage: $0 [-n] [-v version]\n
-n : Create a new release. Tag the current repository revision as version\n
-v version: Specify the version. If not specified, the latest hg tag is used. \n
This option is required for a new release.\n
"
while getopts "nv:" flag
do
if [ "$flag"... | Shell |
#!/bin/bash -x
tools_dir=$(dirname $0)
if [ "$tools_dir" == "." ]; then
tools_dir=$PWD
fi
cd ${tools_dir}/../docs
for file in *.{1,3}
do
rman -f html -r '%s.%s.html' $file > html/$file.html
done
cd -
| Shell |
#!/bin/bash
if [ $# != 1 ]
then
echo "Usage: $0 emailAddress"
exit 1
fi
read -s -p "Password: " mypassword
echo ""
curl https://www.google.com/accounts/ClientLogin -d Email=$1 -d "Passwd=$mypassword" -d accountType=GOOGLE -d source=Google-cURL-Example -d service=ac2dm
| 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.