code stringlengths 1 1.96M | language stringclasses 1
value |
|---|---|
#!/bin/bash
rm -fr built_archive_test && mkdir built_archive_test
pushd built_archive_test >/dev/null 2>&1
tar xfj ../minig-backend-svn-linux.tar.bz2 >/dev/null 2>&1
time ./minig-backend/webmail-backend-profile
popd >/dev/null 2>&1
rm -fr built_archive_test
| Shell |
#!/bin/bash
test $# -eq 2 || {
echo "usage: $0 login@domain password"
exit 1
}
function post_data() {
http_r=`echo "$1" | \
lynx -post_data -dump http://localhost:8081/$2`
}
post_data "login=$1&password=$2" regenerateSieve.do
echo ${http_r}
| Shell |
#!/bin/bash
# Author: Thomas Cataldo <tcataldo@minig.org>
#
# Uses an headless eclipse to build ${product_name}
#
#
# user build settings should be put in
# `whoami`.product_build.properties
set -e
set -x
pbuild_dir=`dirname $0`
pushd $pbuild_dir >/dev/null 2>&1
## USER VARS: The only user settable variables in this ... | Shell |
#!/bin/bash
#
### BEGIN INIT INFO
# Provides: minig-backend
# Required-Start: $syslog $network
# Required-Stop: $syslog $network
# Default-Start: 2 3 4 5
# Default-Stop: S 0 1 6
# Short-Description: MiniG Backend.
# Description: init system for minig-backend. Starts the equinox server
# process with minig ... | Shell |
#!/bin/bash
# This script does a complete reset of minig backend and solr indexes
/etc/init.d/minig-backend stop
/etc/init.d/obm-tomcat stop
rm -fr /var/lib/minig-backend/org.*
rm -fr /var/cache/minig/webmail_cache/*
rm -fr /var/solr/webmail/data/index
/etc/init.d/obm-tomcat start
/etc/init.d/minig-backend start
| Shell |
#!/bin/bash
files=`find . -name '*.java'`
add_header_to_file() {
file_to_process=$1
first_line=`head -n1 ${file_to_process} > ./test_fl.tmp`
grep -q "^package" ./test_fl.tmp
should_add=$?
test 0 -eq $should_add && {
echo "headers should be added to $1"
cat header.txt > ./f_with_headers.tmp
cat... | Shell |
#!/bin/bash
#awk -f generate-cpv.awk cpv_2008-csv.csv > cpv-2008.rdf
python generate-cpv.py cpv-2008-csv.csv cpv-codes-2008-2003.csv cpv-codes-2003.txt > cpv-2008.rdf
sed -i 's/&/&/g' cpv-2008.rdf
| Shell |
#!/bin/bash
# build_wfdbjava.sh
# download and build all of the native libraries to support wfdb;
# only tested on gnu/linux
if [ ! -n "$1" ] || [ ! -n "$2" ]
then
echo "Usage: $0 <install_dir> <target>"
fi
# FIXME: the version number changes!
WFDB_VER="wfdb-10.5.13"
CUR_DIR=`pwd`
SRC_LOCATION=${CUR_DIR}"/tarba... | Shell |
#!/bin/bash
# build_wfdbjava.sh
# download and build all of the native libraries to support wfdb;
# only tested on gnu/linux
if [ ! -n "$1" ] || [ ! -n "$2" ]
then
echo "Usage: $0 <install_dir> <target>"
fi
# FIXME: the version number changes!
WFDB_VER="wfdb-10.5.13"
CUR_DIR=`pwd`
SRC_LOCATION=${CUR_DIR}"/tarba... | 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/bash
#set +e
#set -o errexit
if [ $# -lt 4 ]
then
echo "Syntax: $0 IPSW RAMDISK KEY IV CUSTOMRAMDISK"
echo "python_scripts/kernel_patcher.py can generate a shell script with the correct parameters"
exit
fi
if [ ! -f ramdisk_tools/restored_external ]
then
echo "ramdisk_tools/restored_external n... | Shell |
#/bin/sh
python usbmuxd-python-client/tcprelay.py -t 22:2222 1999:1999
| Shell |
#!/bin/sh
if [ -a /dev/disk0s1s2 ]; then # test for iOS 5 data partition
mount_hfs /dev/disk0s1s1 /mnt1 2>/dev/null
mount_hfs /dev/disk0s1s2 /mnt2 2>/dev/null
elif [ -a /dev/disk0s2s1 ]; then # test for iOS 4 data partition
mount_hfs /dev/disk0s1 /mnt1 2>/dev/null
mount_hfs /dev/disk0s2s1 /mnt2 2>/dev/... | Shell |
#!/bin/sh
cat /dev/rdisk0s2s1 | netcat -l -p 1234
| Shell |
#!/bin/sh
SSHOPTS="-p 2222 -oStrictHostKeyChecking=no -oUserKnownHostsFile=/dev/null"
UDID=`ssh $SSHOPTS root@localhost "./device_infos udid"`
if [ "$UDID" == "" ]; then
exit
fi
echo "Device UDID : $UDID"
mkdir -p $UDID
DATE=`date +"%Y%m%d-%H%M"`
OUT=$UDID/data_$DATE.dmg
echo "Dumping data partition in $OUT .... | 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
# Emit a msg to let user know this place was reached
echo "Copying to /home"
# Had a case where cp SEGVs, let's have diagnostics for it
cp -a /mnt /home || { echo "cp: $?"; exit 1; }
cd /home/mnt || exit $?
exec ./init2
echo "Failed to exec ./init2"
| Shell |
#!/bin/sh
umount /mnt # optional
echo "Building"
(
cd strace &&
./configure &&
make &&
echo "Build: SUCCESS"
size strace
./strace
# strace may segfault, let's see exit code
echo "Exit code: $?"
./strace /bin/true
echo "Exit code: $?"
ftpput -P "$FTP_PORT" "$FTP_SERVER" strace
) 2>&1 | tee strace_build.log
m... | Shell |
#!/bin/sh
export HDCMEGS=128
rm hdc.img 2>/dev/null
umount -d hdc.img.dir 2>/dev/null
rm -rf hdc.img.dir 2>/dev/null
dd if=/dev/zero of=hdc.img bs=1024 seek=$((HDCMEGS*1024-1)) count=1 &&
mke2fs -q -b 1024 -F -i 4096 hdc.img &&
tune2fs -j -c 0 -i 0 hdc.img &&
mkdir hdc.img.dir &&
mount -o loop hdc.img hdc.img.dir &&... | Shell |
#!/bin/sh
export HDBMEGS=128
build_in_dir()
{
cd "$1" || exit 1
rm -f hdb.img 2>/dev/null
nice -n10 ./native-build.sh ../hdc.img
rm -f hdb.img 2>/dev/null
}
started=false
for dir; do
test -d "$dir" || continue
test -e "$dir/native-build.sh" || continue
echo "Starting: $dir"
build_in_dir "$dir" </dev/null >"$... | Shell |
#!/bin/sh
# Copyright (c) 1993, 1994, 1995 Rick Sladkey <jrs@world.std.com>
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
# ... | Shell |
#!/bin/sh -e
tag="${1:-master}"
j=-j`getconf _NPROCESSORS_ONLN 2> /dev/null` || j=
distdir=strace-dist-$$
abs_distdir="`pwd`/$distdir"
trap 'chmod -Rf u+w $abs_distdir; rm -rf $abs_distdir' 1 2 15 0
set -x
git clone -q -n -s .git "$distdir"
cd $distdir
git checkout -f "$tag"
./git-set-file-times
autoreconf -i -f... | Shell |
#!/bin/sh
show_usage()
{
cat <<__EOF__
Usage: ${0##*/} STRACE_LOG
Finds all STRACE_LOG.PID files, adds PID prefix to every line,
then combines and sorts them, and prints result to standard output.
It is assumed that STRACE_LOGs were produced by strace with -tt[t]
option which prints timestamps (otherwise sorting wo... | Shell |
#!/bin/sh
# Copyright (c) 1996 Rick Sladkey <jrs@world.std.com>
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
# notice, t... | Shell |
#!/bin/sh
# Ensure that strace tests kernel PTRACE_O_TRACECLONE
# and PTRACE_O_TRACESYSGOOD support properly.
. "${srcdir=.}/init.sh"
[ "$(uname -s)" = Linux ] ||
skip_ 'The kernel is not a Linux kernel'
case "$(uname -r)" in
2.[6-9]*|2.[1-5][0-9]*|[3-9].*|[12][0-9]*) ;;
*) skip_ 'The kernel is not Linux 2.6.* or... | Shell |
#!/bin/sh
# Ensure that strace -f works.
. "${srcdir=.}/init.sh"
check_strace
check_prog timeout
time=/usr/bin/time
check_prog $time
timeout -s 9 $check_timeout \
$STRACE -f $time /bin/ls > check.log 2>&1 ||
{ cat check.log; fail_ 'strace -f does not work'; }
| Shell |
#!/bin/sh
# Ensure that strace -e trace=set works.
. "${srcdir=.}/init.sh"
check_strace
check_prog timeout
check_prog ls
check_prog grep
timeout -s 9 $check_timeout \
$STRACE -e execve ls > /dev/null 2> check.log &&
grep '^execve(' check.log > /dev/null ||
{ cat check.log; fail_ 'strace -e execve does not work'; }... | Shell |
#!/bin/sh
ME_="${0##*/}"
check_timeout=60
warn_() { printf >&2 '%s\n' "$*"; }
fail_() { warn_ "$ME_: failed test: $*"; exit 1; }
skip_() { warn_ "$ME_: skipped test: $*"; exit 77; }
framework_failure_() { warn_ "$ME_: framework failure: $*"; exit 99; }
framework_skip_() { warn_ "$ME_: framework skip: $*"; exit 77; }... | Shell |
#!/bin/sh
# Copyright (c) 1993, 1994, 1995, 1996 Rick Sladkey <jrs@world.std.com>
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyri... | Shell |
#!/bin/sh -e
#export CC="i686-gcc"
export CC="x86_64-gcc"
export CFLAGS="-Os\
-fomit-frame-pointer\
-static\
-static-libgcc\
-ffunction-sections -fdata-sections\
-falign-functions=1 -falign-jumps=1 -falign-labels=1 -falign-loops=1\
-fno-unwind-tables\
-fno-asynchronous-unwind-tables\
-Wl,--gc-sections\
-Wl,-... | Shell |
#! /bin/sh
# Copyright (c) 2001 Wichert Akkerman <wichert@cistron.nl>
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
# not... | Shell |
#!/bin/sh
grep '^#define' dummy.h | cut -f2 | \
while read func; do
grep -q -F -- "${func}(" syscall.h && echo "Defined as macro and as func: $func"
done
| Shell |
#!/bin/sh
# Copyright (c) 1993, 1994, 1995 Rick Sladkey <jrs@world.std.com>
# All rights reserved.
#
# Copyright (c) 1995, 1996 Michael Elizabeth Chastain <mec@duracef.shout.net>
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the... | Shell |
#! /bin/bash
#
#
# Written by Ikaro Silva
# Last modified August 27, 2014
#
#
#This script require that PhysioNet files are on HDFS already.
#Make sure that the HDFS cluster has been configured by running
#
#./prepare-dataset.sh
#For more tuning information see : http://hadoop.apache.org/docs/r0.18.3/streaming.pdf
... | Shell |
#! /bin/bash
#
# Annotates all records files in locally in one machine
#
#
# Written by Ikaro Silva
# Last modified August 30, 2014
#
#
if [ "$1" == "-h" ]; then
echo -e "\n\tUsage: `basename $0` recordListFile annotationCommand [annotationArgs]\n"
echo -e "\nRuns the WFDB command 'annotationCommand' in all recor... | Shell |
#!/bin/bash
source wfdb-hadoop-configuration.sh
wfdb-config --version 2>/dev/null
if [ ${?} != "0" ] ; then
#echo "The toolbox is not installed. Downloading the WFDB Toolbox..."
unzip wfdb-app-toolbox-0-9-6-1.zip
if [ "$?" != "0" ]
then
wget http://physionet.org/physiotools/matlab/wfdb-app-matlab/wfdb-a... | Shell |
#!/usr/bin/env bash
#
# Script for annotate WFDB records through Hadoop's MAP interface
#
# Written by Ikaro Silva
# Last Modified August 23, 2014
#
# Use NLineInputFormat to give a single line: key is offset, URI
read offset data
#Run command that generates an annotation from a PhysioNet record
RECORD=`echo ${data} ... | Shell |
#! /bin/bash
#
#Ignore this
if [ "$1" == "-h" ]; then
echo -e "\n\tUsage: `basename $0` recordListFile \n"
exit 0
fi
#Load configuration variables - This includes the database to be processed.
source wfdb-hadoop-configuration.sh
#The annotation command to be run in batch mode
FILE=${1}
OCTAVE='octave --quiet --... | Shell |
#! /bin/bash
#
#
# Written by Ikaro Silva
# Last modified August 27, 2014
#
#
#This script require that PhysioNet files are on HDFS already.
#Make sure that the HDFS cluster has been configured by running
#
#./prepare-dataset.sh
#For more tuning information see : http://hadoop.apache.org/docs/r0.18.3/streaming.pdf
... | Shell |
#! /bin/bash
# file: octave-map.sh
# Use NLineInputFormat to give a single line: key is offset, URI
read offset data
OCTAVE='octave --quiet --eval '
#Extract record into a Octave format
RECORD=`echo ${data} | sed -e s/hdfs:\\\/\\\\${HDFS_ROOT}\\\/\// | sed 's/.dat$//'`
DB=${RECORD%/*}
RECNAME=`basename ${RECORD}`
... | Shell |
#! /bin/bash
#
# Annotates all records files in HFDS system using Hadoop Streaming MAP API
#
#
# Written by Ikaro Silva
# Last modified August 27, 2014
#
#
#This script require that PhysioNet files are on HDFS already.
#Make sure that the HDFS cluster has been configured by running
#
#./prepare-dataset.sh
#./get-file... | Shell |
#! /bin/bash
# file: octave-map.sh
OCTAVE='octave --quiet --eval '
#Generate 20 surrogate time series, saving each one to file
#under the name : surr_x
RR_FNAME=${1}
M=20
command="output= ${OCTAVE} \"shuffle('${RR_FNAME}');quit;\""
echo "${command}" >&2
output=`${OCTAVE} "shuffle('${RR_FNAME}');quit;" | sed 's/\n/\;/... | Shell |
#! /bin/bash
#Script for downloading data and loading into Hadoop HDFS
#To be run only by the master server.
#This requires installation of the WFDB package on the machine
#The installation can be done by :
#
# wget http://physionet.org/physiotools/matlab/wfdb-app-matlab/wfdb-app-toolbox-0-9-6-1.zip
# unzip wfdb-app-t... | Shell |
#! /bin/bash
#
# Sets environment variables used by other scripts on this framework
# The scripts source this file to extract the environment variables.
#
# Written by Ikaro Silva
# Last Modified: August, 23, 2014
#Local Database Directory (used for storing data prior to loading it into HDFS)
DATA_DIR=/data/physionet
... | Shell |
#! /bin/bash
#
# Annotates all records files in HFDS system using Hadoop Streaming MAP API
#
#
# Written by Ikaro Silva
# Last modified August 27, 2014
#
#
#This script require that PhysioNet files are on HDFS already.
#Make sure that the HDFS cluster has been configured by running
#
#./prepare-dataset.sh
#./get-file... | Shell |
#!/bin/bash
source wfdb-hadoop-configuration.sh
wfdb-config --version 2>/dev/null
if [ ${?} != "0" ] ; then
#echo "The toolbox is not installed. Downloading the WFDB Toolbox..."
unzip wfdb-app-toolbox-0-9-6-1.zip
if [ "$?" != "0" ]
then
wget http://physionet.org/physiotools/matlab/wfdb-app-matlab/wfdb-a... | Shell |
#! /bin/bash
#
# Sets environment variables used by other scripts on this framework
# The scripts source this file to extract the environment variables.
#
# Written by Ikaro Silva
# Last Modified: August, 23, 2014
#Local Database Directory (used for storing data prior to loading it into HDFS)
DATA_DIR=/data/physionet
... | Shell |
#! /bin/bash
# file: octave-map.sh
OCTAVE='octave --quiet --eval '
#Generate 20 surrogate time series, saving each one to file
#under the name : surr_x
RR_FNAME=${1}
M=20
command="output= ${OCTAVE} \"shuffle('${RR_FNAME}');quit;\""
echo "${command}" >&2
output=`${OCTAVE} "shuffle('${RR_FNAME}');quit;" | sed 's/\n/\;/... | Shell |
#! /bin/bash
# file: octave-map.sh
# Use NLineInputFormat to give a single line: key is offset, URI
read offset data
OCTAVE='octave --quiet --eval '
#Extract record into a Octave format
RECORD=`echo ${data} | sed -e s/hdfs:\\\/\\\\${HDFS_ROOT}\\\/\// | sed 's/.dat$//'`
DB=${RECORD%/*}
RECNAME=`basename ${RECORD}`
... | Shell |
#! /bin/bash
#
#Ignore this
if [ "$1" == "-h" ]; then
echo -e "\n\tUsage: `basename $0` recordListFile \n"
exit 0
fi
#Load configuration variables - This includes the database to be processed.
source wfdb-hadoop-configuration.sh
#The annotation command to be run in batch mode
FILE=${1}
OCTAVE='octave --quiet --... | Shell |
#! /bin/bash
#
# Annotates all records files in locally in one machine
#
#
# Written by Ikaro Silva
# Last modified August 30, 2014
#
#
if [ "$1" == "-h" ]; then
echo -e "\n\tUsage: `basename $0` recordListFile annotationCommand [annotationArgs]\n"
echo -e "\nRuns the WFDB command 'annotationCommand' in all recor... | Shell |
#! /bin/bash
#Script for downloading data and loading into Hadoop HDFS
#To be run only by the master server.
#This requires installation of the WFDB package on the machine
#The installation can be done by :
#
# wget http://physionet.org/physiotools/matlab/wfdb-app-matlab/wfdb-app-toolbox-0-9-6-1.zip
# unzip wfdb-app-t... | Shell |
#!/usr/bin/env bash
#
# Script for annotate WFDB records through Hadoop's MAP interface
#
# Written by Ikaro Silva
# Last Modified August 23, 2014
#
# Use NLineInputFormat to give a single line: key is offset, URI
read offset data
#Run command that generates an annotation from a PhysioNet record
RECORD=`echo ${data} ... | 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/sh
# depcomp - compile a program generating dependencies as side-effects
# Copyright 1999, 2000 Free Software Foundation, Inc.
# 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 ve... | Shell |
# Generated from ltmain.m4sh.
# ltmain.sh (GNU libtool) 2.2.6
# Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, 2007 2008 Free Software Foundation, Inc.
# This is free software; see the source for copying conditions. There is NO
# w... | Shell |
#!/bin/sh
prefix=@prefix@
exec_prefix=@exec_prefix@
exec_prefix_set=no
usage="\
Usage: @PACKAGE@-config [--prefix[=DIR]] [--exec-prefix[=DIR]] [--version] [--libs] [--cflags]"
if test $# -eq 0; then
echo "${usage}" 1>&2
exit 1
fi
while test $# -gt 0; do
case "$1" in
-*=*) optarg=`echo "$1" | sed 's/... | 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
prefix=@prefix@
exec_prefix=@exec_prefix@
exec_prefix_set=no
usage="\
Usage: @PACKAGE@-config [--prefix[=DIR]] [--exec-prefix[=DIR]] [--version] [--libs] [--cflags]"
if test $# -eq 0; then
echo "${usage}" 1>&2
exit 1
fi
while test $# -gt 0; do
case "$1" in
-*=*) optarg=`echo "$1" | sed 's/... | Shell |
#! /bin/sh
# mkinstalldirs --- make directory hierarchy
# Author: Noah Friedman <friedman@prep.ai.mit.edu>
# Created: 1993-05-16
# Public domain
# $Id: mkinstalldirs 9 1999-10-21 15:55:01Z hercules $
errstatus=0
for file
do
set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'`
shift
pa... | Shell |
#!/bin/sh
#
# Build Universal binaries on Mac OS X, thanks Ryan!
#
# Usage: ./configure CC="sh gcc-fat.sh" && make && rm -rf ppc ppc64 x86 x64
# PowerPC 32-bit compiler flags (10.4 runtime compatibility)
GCC_COMPILE_PPC32="gcc-4.0 -arch ppc -mmacosx-version-min=10.4 \
-DMAC_OS_X_VERSION_MIN_REQUIRED=1040 \
-nostdinc \... | Shell |
#! /bin/sh
# depcomp - compile a program generating dependencies as side-effects
# Copyright 1999, 2000 Free Software Foundation, Inc.
# 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 ve... | Shell |
#! /bin/sh
# Common stub for a few missing GNU programs while installing.
# Copyright 1996, 1997, 1999, 2000 Free Software Foundation, Inc.
# Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Pu... | Shell |
#! /bin/sh
# Configuration validation subroutine script.
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
# Free Software Foundation, Inc.
timestamp='2009-10-07'
# This file is (in principle) common to ALL GNU software.
# The presence o... | Shell |
#! /bin/sh
# Attempt to guess a canonical system name.
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
# Free Software Foundation, Inc.
timestamp='2009-09-18'
# This file is free software; you can redistribute it and/or modify it
# und... | 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
#
set -e
aclocal -I acinclude
automake --foreign --include-deps --add-missing --copy
autoconf
#./configure $*
echo "Now you are ready to run ./configure"
| Shell |
#! /bin/sh
# Common stub for a few missing GNU programs while installing.
# Copyright 1996, 1997, 1999, 2000 Free Software Foundation, Inc.
# Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Pu... | Shell |
#! /bin/sh
# mkinstalldirs --- make directory hierarchy
# Author: Noah Friedman <friedman@prep.ai.mit.edu>
# Created: 1993-05-16
# Public domain
# $Id: mkinstalldirs 9 1999-10-21 15:55:01Z hercules $
errstatus=0
for file
do
set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'`
shift
pa... | Shell |
#!/bin/sh
#
# Build Universal binaries on Mac OS X, thanks Ryan!
#
# Usage: ./configure CC="sh gcc-fat.sh" && make && rm -rf ppc ppc64 x86 x64
# PowerPC 32-bit compiler flags (10.4 runtime compatibility)
GCC_COMPILE_PPC32="gcc-4.0 -arch ppc -mmacosx-version-min=10.4 \
-DMAC_OS_X_VERSION_MIN_REQUIRED=1040 \
-nostdinc \... | Shell |
#!/bin/sh
#
set -e
aclocal -I acinclude
automake --foreign --include-deps --add-missing --copy
autoconf
#./configure $*
echo "Now you are ready to run ./configure"
| Shell |
#!/bin/bash
# We will need npm and nodejs.
# Database password: fenomen
sudo apt-get install npm &&\
sudo apt-get install nodejs &&\
sudo npm install -g n &&\
sudo npm install stylus -g &&\
sudo n 0.10.10 &&\
sudo apt-get install mysql-client &&\
sudo apt-get install mysql-server &&\
mysql --user=root --host=localhost... | Shell |
#!/bin/bash
# We will need npm and nodejs.
# Database password: fenomen
sudo apt-get install npm &&\
sudo apt-get install nodejs &&\
sudo npm install -g n &&\
sudo npm install stylus -g &&\
sudo n 0.10.10 &&\
sudo apt-get install mysql-client &&\
sudo apt-get install mysql-server &&\
mysql --user=root --host=localhost... | Shell |
#!/usr/bin/env bash
cd $(dirname $0)
# Get the jar to use.
jar="$(ls ../build/*.jar | sort | tail -n1)"
echo "jar: $jar"
runtest () {
testfile="$1"
expected=${testfile/\.FAIL/}.min
expected="$(
cat $expected
)"
filetype="$(
echo $testfile | egrep -o '(cs|j)s'
)"
if [ "$2" == "cssminjs" ]; then
ac... | Shell |
#!/usr/bin/env bash
cd $(dirname $0)
# Get the jar to use.
jar="$(ls ../build/*.jar | sort | tail -n1)"
echo "jar: $jar"
runtest () {
testfile="$1"
expected=${testfile/\.FAIL/}.min
expected="$(
cat $expected
)"
filetype="$(
echo $testfile | egrep -o '(cs|j)s'
)"
if [ "$2" == "cssminjs" ]; then
ac... | Shell |
#!/bin/sh
# file: csw G. Moody 6 April 2006
#
# Run a compiled C# application that uses the WFDB C# wrappers
if [ $# -lt 1 ]
then
echo "usage: $0 app [ app-options ... ]"
exit
fi
# Make sure that libwfdb and libwfdbcsharpglue are in the dynamic library
# load path. By default, these libraries are installed... | Shell |
#!/bin/bash
aclocal
automake
autoconf
| Shell |
#!/bin/sh
# file: jw G. Moody 11 March 2006
#
# Run a compiled Java application that uses the WFDB Java wrappers
if [ $# -lt 1 ]
then
echo "usage: $0 app [ app-options ... ]"
exit
fi
# Strip out any path component.
CP=`dirname $1`
# Strip the '.class' suffix if present.
APP=`basename $1 .class`
# Discard ... | Shell |
#!/bin/sh
if [ -s configure -a configure -nt configure.ac ]
then
echo 'configure is up-to-date'
else
aclocal -Im4
automake
autoconf
echo 'configure is up-to-date'
fi
| Shell |
#!/bin/sh
export PATH=../src:$PATH
wfb2kml.py $* | Shell |
#!/bin/bash -e
echo "------------------------------------------------------------"
echo "| Install openzwave in tmp |"
echo "------------------------------------------------------------"
python setup-lib.py install --root=build/tmp
python setup-api.py install --root=build/tmp
echo "---... | Shell |
#!/bin/bash -e
echo "------------------------------------------------------------"
echo "| Install openzwave in tmp |"
echo "------------------------------------------------------------"
python setup-lib.py install --root=build/tmp
python setup-api.py install --root=build/tmp
cd docs
r... | Shell |
#!/bin/bash -e
echo $PYLIBRARY
#Archive history
RY023="cc56d65fbff4"
RZ023="539"
RY024="d3995087deb0"
RZ024="580"
RY025="a11be346b118"
RZ025="699"
#Last archive
#The release number of python-openzwave
RY026="ea9c3611f4c1"
#The release number of openzwave
RZ026="749"
#Current archive
RY=$(echo $RY026)
RZ=$(echo $RZ02... | Shell |
#!/bin/bash -e
echo "------------------------------------------------------------"
echo "| Install openzwave in tmp |"
echo "------------------------------------------------------------"
set +e
rm zwcfg_*.xml
rm zwscene.xml
set -e
cd ..
python setup-lib.py install --root=build/tmp
pytho... | Shell |
#!/bin/bash -e
echo "-----------------------------------------------------------------"
echo "| Uninstall python-openzwave |"
echo "-----------------------------------------------------------------"
set +e
./uninstall.sh
set -e
echo "-------------------------------------------------... | Shell |
#!/bin/bash -e
echo "-----------------------------------------------------------------"
echo "| Uninstall python-openzwave |"
echo "-----------------------------------------------------------------"
[ ! -f install.files ] && echo "Can't find install.files. Abort !!" && exit 1
rm -Rf ... | Shell |
#!/bin/bash -e
echo "------------------------------------------------------------"
echo "| Install openzwave in tmp |"
echo "------------------------------------------------------------"
cd ..
python setup-lib.py install --root=build/tmp
python setup-api.py install --root=build/tmp
cd e... | Shell |
#!/bin/bash -e
echo "-----------------------------------------------------------------"
echo "| Update sources of python-openzwave |"
echo "-----------------------------------------------------------------"
hg pull https://code.google.com/p/python-openzwave/
hg update
echo "----------------... | Shell |
#!/bin/bash -e
CLEAN=0
[ 'u'$1 == 'uclean' ] && CLEAN=1
echo "-----------------------------------------------------------------"
echo "| Build openzwave |"
echo "-----------------------------------------------------------------"
rm -Rf openzwave/cpp/build/vers.cpp
cd open... | Shell |
#!/bin/bash -e
echo "------------------------------------------------------------"
echo "| Build openzwave in build/tmp |"
echo "------------------------------------------------------------"
python setup-lib.py install --root=build/tmp
python setup-api.py install --root=build/tmp
echo "-------... | 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
# 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
WFROG_HOME=../../
version=$(grep wfrog_version $WFROG_HOME/wfcommon/config.py | cut -f2 -d'"')
date=$(date +%F)
footer="<br><hr><small><a href='http://www.wfrog.org'>wfrog</a> $version - $date</small>"
DOC_DIR=doc
mkdir -p $DOC_DIR
function gen_module()
{
module=$1
echo "--- $module ---"
... | Shell |
#! /bin/sh
### BEGIN INIT INFO
# Provides: wfrender
# Required-Start: $local_fs $remote_fs
# Required-Stop: $local_fs $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: S 0 1 6
# Short-Description: wfrog renderer
# Description: wfrog - Weather Station Software
### END INIT INFO
# Author... | Shell |
#! /bin/sh
### BEGIN INIT INFO
# Provides: wfrender
# Required-Start: $local_fs $remote_fs
# Required-Stop: $local_fs $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: S 0 1 6
# Short-Description: wfrog renderer
# Description: wfrog - Weather Station Software
### END INIT INFO
# Author... | Shell |
#! /bin/sh
### BEGIN INIT INFO
# Provides: wflogger
# Required-Start: $local_fs $remote_fs
# Required-Stop: $local_fs $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: S 0 1 6
# Short-Description: wfrog logger
# Description: wfrog - Weather Station Software
### END INIT INFO
# Author: ... | Shell |
#! /bin/sh
### BEGIN INIT INFO
# Provides: wflogger
# Required-Start: $local_fs $remote_fs
# Required-Stop: $local_fs $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: S 0 1 6
# Short-Description: wfrog logger
# Description: wfrog - Weather Station Software
### END INIT INFO
# Author: ... | Shell |
#!/bin/sh
repo=https://wfrog.googlecode.com/svn/
trunk=$repo/trunk
vfile=wfcommon/config.py
vline='wfrog_version = "\([^"]*\)"'
app=wfrog
checkout=$app
echo "Please make sure the version number is correctly set in $app/$vfile in the subversion repository."
echo Press enter to proceed with checkout or Ctrl-C to abort.... | Shell |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.