code stringlengths 1 1.96M | language stringclasses 1
value |
|---|---|
#!/bin/bash
# Copyright 2007 Google Inc.
# Author: Jiaying Zhang <jiayingz@google.com>
# test replication resuming after network goes down and up
# this program requires root previlige
. config_uml
. config_replication
./start_replication.sh || { echo UNRESOLVED; exit 1; }
echo -n Start replication ...
ssh $SSH_OPT... | Shell |
#!/bin/bash
. config_uml
. config_single
CHUNKSIZE=16k
# test low-level ddsnap creation/deletion
./start_uml.sh $uml_fs $ubdb_dev $ubdc_dev $uml_host || { echo UNRESOLVED; exit 1; }
echo -n Start ddsnap agent and server...
ssh $SSH_OPTS $uml_host "ddsnap initialize -y -c $CHUNKSIZE /dev/ubdc /dev/ubdb"
ssh $SSH_OP... | Shell |
#!/bin/bash
# Copyright 2007 Google Inc.
# Author: Jiaying Zhang <jiayingz@google.com>
# test zumastor stop on source
. config_uml
. config_replication
./start_replication.sh || { echo UNRESOLVED; exit 1; }
echo -n Start replication ...
ssh $SSH_OPTS $source_uml_host "zumastor define target $vol $target_uml_host:$t... | Shell |
#!/bin/bash
# Example of how to shut down the UML instance started by login.sh
. ./config_uml
. ./config_single
set -ex
./stop_uml.sh $uml_host $uml_fs
| Shell |
#!/bin/bash
# Copyright 2007 Google Inc.
# Author: Jiaying Zhang <jiayingz@google.com>
# Load source and target umls. Set up source and target volumes.
. config_uml
. config_replication
./start_uml.sh $source_uml_fs $source_ubdb_dev $source_ubdc_dev $source_uml_host || exit 1
./start_uml.sh $target_uml_fs $target_ubd... | Shell |
#!/bin/sh
date
case "$(tr -dc 0-9 < /dev/urandom | head -c 1)" in
0)
# Kill a random zumastor-related process
pid_to_kill="$(ps auxwwww | egrep 'ddsnap|zumastor' | grep -v grep | awk '{print $2}' | perl -e '@l=<>; while(@l) { print splice @l, int(rand(@l)), 1 }' | head -1)"
echo "killing process ${pid_to_kill}"
p... | Shell |
#!/bin/bash
# Copyright 2007 Google Inc.
# Author: Jiaying Zhang <jiayingz@google.com>
# shutdown a uml and wait for its completion
. config_uml
[[ $# -eq 2 ]] || { echo "Usage: stop_uml.sh uml_host uml_fs"; exit 1; }
uml_host=$1
uml_fs=$2
ssh $SSH_OPTS $uml_host "halt" >& /dev/null || { echo FAIL; exit 1; }
for i ... | Shell |
#!/bin/bash
# Copyright 2007 Google Inc.
# Author: Jiaying Zhang <jiayingz@google.com>
# This test is based on the failure injection scripts from Joel Votaw <jvotaw@google.com>
# It untars a series of kernel tarball, at the same time,
# simulates processes crashing and sysadmin mistakes at an accelerated rate
. confi... | Shell |
#!/bin/bash
# Copyright 2007 Google Inc.
# Author: Jiaying Zhang <jiayingz@google.com>
# shutdown source and target umls
. config_uml
. config_replication
ssh $SSH_OPTS $source_uml_host "zumastor forget volume $vol" >& /dev/null
ssh $SSH_OPTS $target_uml_host "zumastor forget volume $vol" >& /dev/null
./stop_uml.sh ... | Shell |
#!/bin/bash
# Example of how to start one UML instance (if needed) and copy a file into it
. ./config_uml
. ./config_single
ps augxw | grep linux | grep -q -v grep || ./start_uml.sh $uml_fs $ubdb_dev $ubdc_dev $uml_host
set -ex
scp $SCP_OPTS "$@" root@${uml_host}:
| Shell |
#!/bin/bash
# Copyright 2007 Google Inc.
# Author: Jiaying Zhang <jiayingz@google.com>
# test replication resuming after network goes down and up
# this program requires root previlige
. config_uml
. config_replication
./start_replication.sh || { echo UNRESOLVED; exit 1; }
echo -n Start replication ...
ssh $SSH_OPT... | Shell |
#!/bin/bash
# Copyright 2007 Google Inc.
# Author: Jiaying Zhang <jiayingz@google.com>
# install all the required libraries and utilities based on the image downloaded from uml website
umount_exit() {
echo $1
umount /mnt
rm -f $uml_fs
exit 1
}
[[ $# -eq 1 ]] || { echo "Usage: build_fs.sh uml_fs"; exit 1; }
uml_f... | Shell |
#!/bin/bash
# Example of how to shut down the UML instance started by login.sh
. ./config_uml
. ./config_single
set -ex
./stop_uml.sh $uml_host $uml_fs
| Shell |
#!/bin/bash
# Copyright 2007 Google Inc.
# Author: Jiaying Zhang <jiayingz@google.com>
# Unpack the base filesystem image downloaded from uml website,
# setup ssh keys, and build zumastor debian packages
. ./config_uml
[[ $# -eq 1 ]] || { echo "Usage: build_fs.sh uml_fs"; exit 1; }
uml_fs=$1
rm_exit() {
echo $1
... | Shell |
#!/bin/sh
dest_dir=/var/run/zumastor/mount/test
number=1
prev=
while true; do
[[ $number -le 5 ]] || number=1
version=2.6.16.$number
wget -c http://www.kernel.org/pub/linux/kernel/v2.6/linux-${version}.tar.bz2 || continue
[[ ! -z $prev ]] && mv "${dest_dir}"/linux-* "${dest_dir}"/linux-${version}
tar jxf linux-"... | Shell |
#!/bin/bash
# Example of how to start one UML instance (if needed) and copy a single file from it
. ./config_uml
. ./config_single
ps augxw | grep linux | grep -q -v grep || ./start_uml.sh $uml_fs $ubdb_dev $ubdc_dev $uml_host
set -ex
scp $SCP_OPTS root@${uml_host}:"$1" .
| Shell |
#!/bin/bash
# Copyright 2007 Google Inc.
# Author: Jiaying Zhang <jiayingz@google.com>
# test correctness when 'ddsnap agent' dies
. config_uml
. config_single
# load up uml
./start_uml.sh $uml_fs $ubdb_dev $ubdc_dev $uml_host || { echo UNRESOLVED; exit 1; }
echo -n Setting up volume...
ssh $SSH_OPTS $uml_host "zum... | Shell |
#!/bin/bash
# Copyright 2007 Google Inc.
# Author: Jiaying Zhang <jiayingz@google.com>
# load up a uml linux
. config_uml
[[ $# -eq 4 ]] || { echo "Usage: start_uml.sh uml_fs ubd_dev ubc_dev uml_host"; exit 1; }
uml_fs=$1
ubdb_dev=$2
ubdc_dev=$3
uml_host=$4
function create_device {
fsize=`stat -c %s $1 2> /dev/nu... | Shell |
#!/bin/bash
# Copyright 2007 Google Inc.
# Author: Jiaying Zhang <jiayingz@google.com>
# run all tests in the current directory
export ITERATIONS=10 # each test runs ten iterations
for filename in $( find $1 -type f -name 'test_*.sh' | sort )
do
test=`basename $filename .sh`
logfile=log_$test
sh $filename >& log_$... | Shell |
#!/bin/sh
date
case "$(tr -dc 0-9 < /dev/urandom | head -c 1)" in
0)
# Kill a random zumastor-related process
pid_to_kill="$(ps auxwwww | egrep 'ddsnap|zumastor' | grep -v grep | awk '{print $2}' | perl -e '@l=<>; while(@l) { print splice @l, int(rand(@l)), 1 }' | head -1)"
echo "killing process ${pid_to_kill}"
p... | Shell |
#!/bin/bash
# Copyright 2007 Google Inc.
# Author: Jiaying Zhang <jiayingz@google.com>
# shutdown a uml and wait for its completion
. config_uml
[[ $# -eq 2 ]] || { echo "Usage: stop_uml.sh uml_host uml_fs"; exit 1; }
uml_host=$1
uml_fs=$2
ssh $SSH_OPTS $uml_host "halt" >& /dev/null || { echo FAIL; exit 1; }
for i ... | Shell |
#!/bin/bash
# Copyright 2007 Google Inc.
# Author: Jiaying Zhang <jiayingz@google.com>
# test zumastor stop on source
. config_uml
. config_replication
./start_replication.sh || { echo UNRESOLVED; exit 1; }
echo -n Start replication ...
ssh $SSH_OPTS $source_uml_host "zumastor define target $vol $target_uml_host:$t... | Shell |
#!/bin/bash
# Example of how to start one UML instance (if needed) and log into it
# (or run a command remotely)
. ./config_uml
. ./config_single
ps augxw | grep linux | grep -q -v grep || ./start_uml.sh $uml_fs $ubdb_dev $ubdc_dev $uml_host
set -ex
ssh $SSH_OPTS $uml_host "$@"
| Shell |
#!/bin/bash
. config_uml
. config_single
CHUNKSIZE=16k
# test low-level ddsnap creation/deletion
./start_uml.sh $uml_fs $ubdb_dev $ubdc_dev $uml_host || { echo UNRESOLVED; exit 1; }
echo -n Start ddsnap agent and server...
ssh $SSH_OPTS $uml_host "ddsnap initialize -y -c $CHUNKSIZE /dev/ubdc /dev/ubdb"
ssh $SSH_OP... | Shell |
#!/bin/bash
# Copyright 2007 Google Inc.
# Author: Jiaying Zhang <jiayingz@google.com>
# test zumastor stop on target
. config_uml
. config_replication
./start_replication.sh || { echo UNRESOLVED; exit 1; }
echo -n Start replication ...
ssh $SSH_OPTS $source_uml_host "zumastor define target $vol $target_uml_host:$t... | Shell |
#!/bin/bash
# Copyright 2007 Google Inc.
# Author: Jiaying Zhang <jiayingz@google.com>
# keep running full volume replication between source and target
. config_uml
. config_replication
./start_replication.sh || { echo UNRESOLVED; exit 1; }
echo -n Start full-volume replication test...
ssh $SSH_OPTS $source_uml_hos... | Shell |
#!/bin/bash
# Copyright 2007 Google Inc.
# Author: Jiaying Zhang <jiayingz@google.com>
# Load source and target umls. Set up source and target volumes.
. config_uml
. config_replication
./start_uml.sh $source_uml_fs $source_ubdb_dev $source_ubdc_dev $source_uml_host || exit 1
./start_uml.sh $target_uml_fs $target_ubd... | Shell |
#!/bin/sh
# SignApp.sh
# Versioning
#
# Created by Kozlek on 18/07/13.
#
# Do nothing on clean
if [ "$1" == "clean" ]
then
exit 0
fi
/usr/libexec/PlistBuddy -c "Add :SUFeedURL string http://hwsensors.com/appcast/appcast.xml" "./Binaries/HWMonitor.app/Contents/info.plist"
codesign -s "Developer ID Application... | Shell |
#!/bin/sh
# SignKexts.sh
# Versioning & Destribution
#
# Created by Kozlek on 26/10/13.
#
# Do nothing on clean
if [ "$1" == "clean" ]
then
exit 0
fi
exit 0 | Shell |
#!/bin/sh
# SignInstaller.sh
# Versioning
#
# Created by Kozlek on 18/07/13.
#
find ./Binaries/ -maxdepth 1 -type f -name "*.tar.gz" -delete
find ./Binaries/ -maxdepth 1 -type f -name "*.tar.gz.dsa" -delete
if [ "$1" == "clean" ]
then
exit 0
fi
project_name=$(/usr/libexec/PlistBuddy -c "Print 'Project Name'"... | Shell |
#!/bin/sh
# BumpMinorVersion.sh
# Versioning
#
# Created by Kozlek on 13/07/13.
#
# Do nothing on clean
if [ "$1" == "clean" ]
then
exit 0
fi
# 2013 (c) sekati
# https://gist.github.com/sekati/3172554
# xcode-version-bump.sh
# @desc Auto-increment the version number (only) when a project is archived for expor... | Shell |
#!/bin/sh
# SignInstaller.sh
# Versioning
#
# Created by Kozlek on 18/07/13.
#
# Do nothing on clean
if [ "$1" == "clean" ]
then
exit 0
fi
project_name=$(/usr/libexec/PlistBuddy -c "Print 'Project Name'" "./version.plist")
project_version=$(/usr/libexec/PlistBuddy -c "Print 'Project Version'" "./version.plist... | Shell |
#!/bin/sh
# PreBuild.sh
# Versioning
#
# Created by Kozlek on 13/07/13.
#
# Modified by RehabMan 13/07/13.
#
real_version_file="./Shared/version.h"
revision_file="./revision.txt"
version_file="/tmp/org_fakesmc_prebuild_version.h"
if [ "$1" == "clean" ]
then
rm -f ${version_file}
rm -f ${revision_file}
... | Shell |
#!/bin/sh
# PostBuild.sh
# Versioning
#
# Created by Kozlek on 13/07/13.
#
find ./Package/ -maxdepth 1 -type f -name "*.pkg" -delete
find ./Binaries/ -maxdepth 1 -type f -name "*.pkg" -delete
find ./Package/ -maxdepth 1 -type f -name "Distribution.xml" -delete
if [ "$1" == "clean" ]
then
exit 0
fi
project_na... | Shell |
#!/bin/sh
# TagCurrentVersion.sh
# Versioning
#
# Created by Kozlek on 13/07/13.
#
# Do nothing on clean
if [ "$1" == "clean" ]
then
exit 0
fi
project_name=$(/usr/libexec/PlistBuddy -c "Print 'Project Name'" "./version.plist")
project_version=$(/usr/libexec/PlistBuddy -c "Print 'Project Version'" "./version.p... | Shell |
#!/bin/sh
# BumpMajorVersion.sh
# Versioning
#
# Created by Kozlek on 13/07/13.
#
# Do nothing on clean
if [ "$1" == "clean" ]
then
exit 0
fi
# 2013 (c) sekati
# https://gist.github.com/sekati/3172554
# xcode-version-bump.sh
# @desc Auto-increment the version number (only) when a project is archived for expor... | Shell |
#!/bin/sh
JQUERY_VERSION="1.10.2"
STROPHE_VERSION="1.1.2"
BOOTSTRAP_VERSION="1.4.0"
ADHOC_COMMITISH="87bfedccdb91e2ff7cfb165e989e5259c155b513"
cd www_files/js
rm -f jquery-$JQUERY_VERSION.min.js
wget http://code.jquery.com/jquery-$JQUERY_VERSION.min.js || exit 1
rm -f adhoc.js
wget -O adhoc.js "http://git.babelmonke... | Shell |
#!/bin/sh
# $Id: cron-lynx.sh,v 1.3 2006/08/22 07:38:24 dries Exp $
/usr/bin/lynx -source http://example.com/cron.php > /dev/null 2>&1
| Shell |
#!/bin/sh
# $Id: cron-curl.sh,v 1.3 2006/08/22 07:38:24 dries Exp $
curl --silent --compressed http://example.com/cron.php
| Shell |
#!/bin/sh
# $Id: code-clean.sh,v 1.8 2005/08/11 13:02:08 dries Exp $
find . -name "*~" -type f | xargs rm -f
find . -name ".#*" -type f | xargs rm -f
find . -name "*.rej" -type f | xargs rm -f
find . -name "*.orig" -type f | xargs rm -f
find . -name "DEADJOE" -type f | xargs rm -f
find . -type f | grep -v ".psp" | gre... | Shell |
#!/bin/sh
# $Id: cron-lynx.sh,v 1.3 2006/08/22 07:38:24 dries Exp $
/usr/bin/lynx -source http://example.com/cron.php > /dev/null 2>&1
| Shell |
#!/bin/sh
# $Id: code-clean.sh,v 1.8 2005/08/11 13:02:08 dries Exp $
find . -name "*~" -type f | xargs rm -f
find . -name ".#*" -type f | xargs rm -f
find . -name "*.rej" -type f | xargs rm -f
find . -name "*.orig" -type f | xargs rm -f
find . -name "DEADJOE" -type f | xargs rm -f
find . -type f | grep -v ".psp" | gre... | Shell |
#!/bin/sh
# $Id: cron-curl.sh,v 1.3 2006/08/22 07:38:24 dries Exp $
curl --silent --compressed http://example.com/cron.php
| Shell |
#!/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/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 |
# 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 |
# 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
#
# 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
#
# 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/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/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
#
# vim: expandtab sw=4 ts=4 sts=4:
#
# Script for removing language selection from phpMyAdmin
if [ $# -lt 1 ] ; then
echo "Usage: lang-cleanup.sh type"
echo "Type can be one of:"
echo " all-languages - nothing will be done"
echo " english - no translations will be kept"
echo... | Shell |
#!/bin/sh
# vim: expandtab sw=4 ts=4 sts=4:
if [ ! -d "$1" ] ; then
echo 'Usage: update-po-foreign DIR'
echo 'Updates po files based on po files in DIR'
exit 1
fi
export LC_COLLATE=C
LOCS=`ls po/*.po | sed 's@.*/\(.*\)\.po@\1@'`
ver=`sed -n "/PMA_VERSION', '/ s/.*PMA_VERSION', '\(.*\)'.*/\1/p" libraries... | Shell |
#!/bin/sh
#
# vim: expandtab sw=4 ts=4 sts=4:
#
# Script for removing language selection from phpMyAdmin
if [ $# -lt 1 ] ; then
echo "Usage: lang-cleanup.sh type"
echo "Type can be one of:"
echo " all-languages - nothing will be done"
echo " english - no translations will be kept"
echo... | Shell |
#!/bin/sh
# vim: expandtab sw=4 ts=4 sts=4:
if [ ! -d "$1" ] ; then
echo 'Usage: update-po-foreign DIR'
echo 'Updates po files based on po files in DIR'
exit 1
fi
export LC_COLLATE=C
LOCS=`ls po/*.po | sed 's@.*/\(.*\)\.po@\1@'`
ver=`sed -n "/PMA_VERSION', '/ s/.*PMA_VERSION', '\(.*\)'.*/\1/p" libraries... | Shell |
#!/bin/bash
#
# Shell script that adds a new function file using a template. Should not be called directly
# but instead by template_Generator.sh and template_generator_mimetype.sh
#
#
# $1: Template
# $2: Filename
# $3: (optional) Description
if [ $# == 0 ]
then
echo "Please call template_generator.sh o... | Shell |
#!/bin/bash
#
# Shell script that adds a new mimetype without transform function.
#
# The filename should contain either 'mimetype_subtype' or 'mimetype'.
# The suffix '.inc.php' is appended automatically!
#
# Example: template_generator_mimetype.sh 'filename'
#
if [ $# == 0 ]
then
echo "Usage: template_... | Shell |
#!/bin/bash
#
# Shell script that adds a new mimetype with transform function.
#
# The filename should contain either 'mimetype_subtype' or 'mimetype'.
# The suffix '.inc.php' is appended automatically!
#
# The 'description' parameter will add a new entry in the language file. Watch out for
# special escaping.
... | Shell |
#!/bin/bash
#
# Shell script that adds a new function file using a template. Should not be called directly
# but instead by template_Generator.sh and template_generator_mimetype.sh
#
#
# $1: Template
# $2: Filename
# $3: (optional) Description
if [ $# == 0 ]
then
echo "Please call template_generator.sh o... | Shell |
#!/bin/bash
#
# Shell script that adds a new mimetype without transform function.
#
# The filename should contain either 'mimetype_subtype' or 'mimetype'.
# The suffix '.inc.php' is appended automatically!
#
# Example: template_generator_mimetype.sh 'filename'
#
if [ $# == 0 ]
then
echo "Usage: template_... | Shell |
#!/bin/bash
#
# Shell script that adds a new mimetype with transform function.
#
# The filename should contain either 'mimetype_subtype' or 'mimetype'.
# The suffix '.inc.php' is appended automatically!
#
# The 'description' parameter will add a new entry in the language file. Watch out for
# special escaping.
... | Shell |
#!/usr/bin/env bash
# Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
# For licensing, see LICENSE.html or http://ckeditor.com/license
# Use this file to quickly run the sample under Linux.
adl application.xml ../../
| Shell |
#!/usr/bin/env bash
# Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
# For licensing, see LICENSE.html or http://ckeditor.com/license
# Use this file to quickly run the sample under Linux.
adl application.xml ../../
| Shell |
#!/bin/sh
#
# Detects OS we're compiling on and outputs a file specified by the first
# argument, which in turn gets read while processing Makefile.
#
# The output will set the following variables:
# CC C Compiler path
# CXX C++ Compiler path
# PLATFORM_LDFLAGS ... | 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/bash
#
# Copyright 2010 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed ... | Shell |
#!/bin/bash
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/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/sh
cd ${INSTALL_PATH}/rxtx
echo "Installing RXTX API to JRE...."
cp -f -u librxtxSerial.so ${jre_install}/bin
if [ -f librxtxParallel.so ];
then
cp -f -u librxtxParallel.so ${jre_install}/bin
fi
#cp -f -u RXTXcomm.jar ${jre_install}/lib/ext
#cp -f -u javax.comm.properties ${jre_install}/lib
echo "Finish I... | Shell |
#!/bin/sh
cd ${INSTALL_PATH}/rxtx
echo "Installing RXTX API to JRE...."
cp -f -u librxtxSerial.so ${jre_install}/bin
if [ -f librxtxParallel.so ];
then
cp -f -u librxtxParallel.so ${jre_install}/bin
fi
#cp -f -u RXTXcomm.jar ${jre_install}/lib/ext
#cp -f -u javax.comm.properties ${jre_install}/lib
echo "Finish I... | Shell |
#!/bin/sh
cd ${INSTALL_PATH}
echo "Installing Java COMM API to JRE...."
cp -f -u libLinuxSerialParallel.so ${jre_install}/bin
cp -f -u comm.jar ${jre_install}/lib/ext
cp -f -u javax.comm.properties ${jre_install}/lib
echo "Finish Installing Java COMM API to JRE.."
exit 0
| Shell |
#!/bin/sh
cd ${INSTALL_PATH}/scripts
crontab -l > tempcron
cat tempcron createjob.txt > tempcron1
crontab tempcron1
rm tempcron
rm tempcron1
| Shell |
#!/bin/sh
cd ${INSTALL_PATH}
echo "Installing Java COMM API to JRE...."
cp -f -u libLinuxSerialParallel.so ${jre_install}/bin
cp -f -u comm.jar ${jre_install}/lib/ext
cp -f -u javax.comm.properties ${jre_install}/lib
echo "Finish Installing Java COMM API to JRE.."
exit 0
| Shell |
#!/bin/sh
cd ${INSTALL_PATH}/scripts
crontab -l > tempcron
cat tempcron createjob.txt > tempcron1
crontab tempcron1
rm tempcron
rm tempcron1
| Shell |
#!/bin/sh
cd ${INSTALL_PATH}
if [ $# -eq 0 ]; then
${jre_install}/bin/java -jar "smssender.jar"
else
${jre_install}/bin/java -jar "smssender.jar" $*
fi
exit 0 | Shell |
#!/bin/sh
cd ${INSTALL_PATH}
if [ $# -eq 0 ]; then
${jre_install}/bin/java -jar "smssender.jar"
else
${jre_install}/bin/java -jar "smssender.jar" $*
fi
exit 0 | Shell |
#!/bin/bash
echo "## Step 00: initialize"
(
if ! [ -d build ]; then
mkdir build
mkdir build/src
mkdir build/src/trunk
fi
)
fetch() {
(
cd src
if ! [ -f "${2}/.svn/entries" ]; then
mkdir "${2}"
cd "${2}"
svn co --non-interactive --trust-server-cert "${1}" "."
else
cd "${2}"
sv... | Shell |
#!/bin/bash
find org/jivesoftware -name '*.java' -exec sed -i 's:import org.xmlpull.mxp1.MXParser:import org.xmlpull.v1.XmlPullParserFactory:' '{}' ';'
find org/jivesoftware -name '*.java' -exec sed -i 's:new MXParser():XmlPullParserFactory.newInstance().newPullParser():g' '{}' ';'
| Shell |
#!/bin/bash
rm org/xbill/DNS/spi/DNSJavaNameServiceDescriptor.java
| Shell |
#!/bin/bash
rm -rf org/ietf/
rm -rf org/apache/harmony/auth
rm -rf org/apache/harmony/javax/security/auth/kerberos/
rm -rf org/apache/harmony/javax/security/auth/x500/
rm org/apache/harmony/javax/security/auth/Policy.java
| Shell |
#!/bin/bash
find -name '*.java' -exec sed -i 's:import org.apache.harmony.javax.security.sasl.Sasl;:import de.measite.smack.Sasl;:g' '{}' ';'
| Shell |
#!/bin/bash
find org/apache/harmony -name '*.java' -exec sed -i 's:import org.apache.harmony.auth.internal.nls.Messages;::' '{}' ';'
find org/apache/harmony -name '*.java' -exec sed -i 's:Messages.getString(\("[^"]*"\)):\1:g' '{}' ';'
| Shell |
#!/bin/bash
rm org/jivesoftware/smack/debugger/LiteDebugger.java
rm org/jivesoftware/smackx/debugger/EnhancedDebugger.java
rm org/jivesoftware/smackx/debugger/EnhancedDebuggerWindow.java
| Shell |
#!/bin/bash
mkdir -p org/apache/harmony/
mv javax org/apache/harmony/
find org/apache/harmony/ -name '*.java' -exec sed -i 's:package javax:package org.apache.harmony.javax:g' '{}' ';'
find -name '*.java' -exec sed -i 's:import javax.security.sasl:import org.apache.harmony.javax.security.sasl:g' '{}' ';'
find -name '*... | Shell |
#!/bin/sh
# Script to package pytsk
VERSION=`grep -e "^VERSION = " class_parser.py | sed 's/^.*"\([0-9]*\)"$/\1/'`;
rm -f pytsk-*.tgz
PYTSK_SOURCE_FILES="\
../pytsk/aff4_errors.h \
../pytsk/class.c \
../pytsk/class.h \
../pytsk/error.c \
../pytsk/misc.h \
../pytsk/pytsk3.h \
../pytsk/tsk3... | Shell |
#!/bin/bash
# A small helper script to update the version information.
DATE_VERSION=`date +"%Y%m%d"`;
DATE_DPKG=`date -R`;
EMAIL_DPKG="Joachim Metz <joachim.metz@gmail.com>";
sed -i -e "s/^\(VERSION = \)\"[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]\"$/\1\"${DATE_VERSION}\"/" class_parser.py
sed -i -e "s/^\(pytsk \)(\([0... | Shell |
#!/bin/bash
# find out the directory where this script is
DIR=$(cd $(/usr/bin/dirname "${BASH_SOURCE[0]}"); pwd)
REALDIR="$(readlink -f $DIR)"
LIBDIR="$REALDIR/visualvalgrind/libs"
# export lib dir in PYTHONPATH if not already in there
test=$(echo $PYTHONPATH | sed "s/:/\n/g")
if [ "$test" = "" ]; then
export PYTH... | Shell |
#!/bin/bash
# find out the directory where this script is
DIR="$PWD/$(dirname ${BASH_SOURCE[@]})/../../../../.."
REALDIR=$(readlink -f $DIR)
LIBDIR="$REALDIR/visualvalgrind/libs"
rm -f *.dot 2>&1 > /dev/null
PYTHONPATH="$LIBDIR" ../../../../src/visualvalgrind.py -svg build valtest.xml
for file in $(ls *.svg)
do
... | Shell |
#!/bin/bash
# find out the directory where this script is
DIR="$PWD/$(dirname ${BASH_SOURCE[@]})/../../../../.."
REALDIR=$(readlink -f $DIR)
LIBDIR="$REALDIR/visualvalgrind/libs"
rm -f *.dot 2>&1 > /dev/null
PYTHONPATH="$LIBDIR" ../../../../src/visualvalgrind.py -depth 3 -finfo -t 5 build valtest.xml
for file in $(l... | Shell |
#!/bin/bash
# find out the directory where this script is
DIR="$PWD/$(dirname ${BASH_SOURCE[@]})/../../../../.."
REALDIR=$(readlink -f $DIR)
LIBDIR="$REALDIR/visualvalgrind/libs"
rm -f *.dot 2>&1 > /dev/null
PYTHONPATH="$LIBDIR" ../../../../src/visualvalgrind.py -t 5 build valtest.xml
for file in $(ls *.dot)
do
... | Shell |
#!/bin/bash
# find out the directory where this script is
DIR="$PWD/$(dirname ${BASH_SOURCE[@]})/../../../../.."
REALDIR=$(readlink -f $DIR)
LIBDIR="$REALDIR/visualvalgrind/libs"
rm -f *.dot 2>&1 > /dev/null
PYTHONPATH="$LIBDIR" ../../../../src/visualvalgrind.py -finfo build valtest.xml
for file in $(ls *.dot)
do
... | Shell |
#!/bin/bash
# find out the directory where this script is
DIR="$PWD/$(dirname ${BASH_SOURCE[@]})/../../../../.."
REALDIR=$(readlink -f $DIR)
LIBDIR="$REALDIR/visualvalgrind/libs"
rm -f *.dot 2>&1 > /dev/null
PYTHONPATH="$LIBDIR" ../../../../src/visualvalgrind.py diff -r 1 -new valtest2.xml -old valtest1.xml
mv Leak_... | Shell |
#!/bin/bash
# find out the directory where this script is
DIR="$PWD/$(dirname ${BASH_SOURCE[@]})/../../../../.."
REALDIR=$(readlink -f $DIR)
LIBDIR="$REALDIR/visualvalgrind/libs"
rm -f *.dot 2>&1 > /dev/null
PYTHONPATH="$LIBDIR" ../../../../src/visualvalgrind.py diff -new valtest3.xml -old valtest1.xml
for file in $... | Shell |
#!/bin/bash
# find out the directory where this script is
DIR="$PWD/$(dirname ${BASH_SOURCE[@]})/../../../../.."
REALDIR=$(readlink -f $DIR)
LIBDIR="$REALDIR/visualvalgrind/libs"
rm -f *.dot 2>&1 > /dev/null
PYTHONPATH="$LIBDIR" ../../../../src/visualvalgrind.py -t 4 -depth 3 -finfo diff -r 1 -new valtest2.xml -old ... | Shell |
#!/bin/bash
# find out the directory where this script is
DIR="$PWD/$(dirname ${BASH_SOURCE[@]})/../../../../.."
REALDIR=$(readlink -f $DIR)
LIBDIR="$REALDIR/visualvalgrind/libs"
rm -f *.dot 2>&1 > /dev/null
PYTHONPATH="$LIBDIR" ../../../../src/visualvalgrind.py diff -i -new valtest3.xml -old valtest1.xml
for file i... | Shell |
#!/bin/bash
# find out the directory where this script is
DIR="$PWD/$(dirname ${BASH_SOURCE[@]})/../../../../.."
REALDIR=$(readlink -f $DIR)
LIBDIR="$REALDIR/visualvalgrind/libs"
rm -f *.dot 2>&1 > /dev/null
PYTHONPATH="$LIBDIR" ../../../../src/visualvalgrind.py -d -finfo build valtest.xml
for file in $(ls *.dot)
do... | Shell |
#!/bin/bash
# find out the directory where this script is
DIR="$PWD/$(dirname ${BASH_SOURCE[@]})/../../../../.."
REALDIR=$(readlink -f $DIR)
LIBDIR="$REALDIR/visualvalgrind/libs"
rm -f *.dot 2>&1 > /dev/null
PYTHONPATH="$LIBDIR" ../../../../src/visualvalgrind.py -d build valtest.xml
for file in $(ls *.dot)
do
ex... | Shell |
#!/bin/sh
# colors
red='\033[31m' # Red
green='\033[32m' # Green
echo "$white"
echo "Regression started"
DIRS=`find . -type d | grep "./" | sed "s/\.\///" | grep -v "/" | sort`
for d in $DIRS
do
cd $d
echo " Playing directory $d:"
subdirs=`find . -type d | grep "./" | sed "s/\.\///" | grep -v "/" ... | Shell |
#!/bin/bash
# find out the directory where this script is
DIR="$PWD/$(dirname ${BASH_SOURCE[@]})/../../../../.."
REALDIR=$(readlink -f $DIR)
LIBDIR="$REALDIR/visualvalgrind/libs"
rm -f *.dot 2>&1 > /dev/null
PYTHONPATH="$LIBDIR" ../../../../src/visualvalgrind.py -finfo -depth 2 build valtest.xml
for file in $(ls *.d... | Shell |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.