code stringlengths 1 1.96M | language stringclasses 1
value |
|---|---|
#! /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/bash
./configure --prefix=$DEVKITXENON/usr --host=ppc-elf CC=xenon-gcc LD=xenon-ld LDFLAGS="-L$DEVKITXENON/usr/lib/ -L$DEVKITXENON/xenon/lib/32/ -lxenon -T$DEVKITXENON/app.lds -u read -u _start -u exc_base" CFLAGS="-mcpu=cell -mtune=cell -m32 -fno-pic -mpowerpc64 -I$DEVKITXENON/usr/include/" | Shell |
#! /bin/sh
# a quick hack script to generate necessary files from
# auto* tools.
#
# WARNING: if you run this you will change the versions
# of the tools which are used and, maybe, required!
# You can define your own replacements in your environment.
# $AUTOCONF, $AUTOMAKE, $AUTOHEADER, $AUTOPOINT, $ACLOCAL and $LIB... | Shell |
#! /bin/sh
# libpng-config
# provides configuration info for libpng.
# Copyright (C) 2002, 2004, 2006, 2007 Glenn Randers-Pehrson
# This code is released under the libpng license.
# For conditions of distribution and use, see the disclaimer
# and license in png.h
# Modeled after libxml-config.
version="@PNGLIB_VER... | Shell |
#!/bin/sh
# configure script for zlib.
#
# Normally configure builds both a static and a shared library.
# If you want to build just a static library, use: ./configure --static
#
# To impose specific compiler or flags or install directory, use for example:
# prefix=$HOME CC=cc CFLAGS="-O4" ./configure
# or for csh/t... | Shell |
#!/bin/bash
./configure --prefix=$DEVKITXENON/usr CC=xenon-gcc LD=xenon-ld LDFLAGS="-L$DEVKITXENON/usr/lib/ -L$DEVKITXENON/xenon/lib/32/ -lxenon -T$DEVKITXENON/app.lds -u read -u _start -u exc_base" CFLAGS="-mcpu=cell -mtune=cell -m32 -fno-pic -mpowerpc64 -I$DEVKITXENON/usr/include/"
| Shell |
#!/bin/bash
./configure --prefix=$DEVKITXENON/usr CC=xenon-gcc LD=xenon-ld LDFLAGS="-L$DEVKITXENON/usr/lib/ -L$DEVKITXENON/xenon/lib/32/ -lxenon -T$DEVKITXENON/app.lds -u read -u _start -u exc_base" CFLAGS="-mcpu=cell -mtune=cell -m32 -fno-pic -mpowerpc64 -I$DEVKITXENON/usr/include/"
| 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
INSTALL_DIR="`pwd`/jni/libraw"
SRC_DIR="`pwd`/../LibRaw-0.14.7"
cd $SRC_DIR
export TOOLCHAIN="$HOME/NVPACK/toolchain-14"
export NDK="$HOME/NVPACK/android-ndk-r8b"
export SYSROOT="$TOOLCHAIN/sysroot"
export PATH="$TOOLCHAIN/bin:$SYSROOT/usr/local/bin:$PATH"
export ARCH="armv7-a"
export SYS_ROOT="$NDK_ROOT... | Shell |
#!/bin/bash
INSTALL_DIR="`pwd`/jni/exiv2"
SRC_DIR="`pwd`/../exiv2-0.22"
cd $SRC_DIR
export TOOLCHAIN="$HOME/NVPACK/toolchain-14"
export NDK="$HOME/NVPACK/android-ndk-r8b"
export SYSROOT="$TOOLCHAIN/sysroot"
export PATH="$TOOLCHAIN/bin:$SYSROOT/usr/local/bin:$PATH"
export ARCH="armv7-a"
export SYS_ROOT="$NDK_ROOT/pla... | Shell |
#!/bin/sh
cp -pvR ./zOGI.zsp \
/usr/local/lib/zidestore-1.5/
rcogo-zidestore restart
#tail -f /var/log/opengroupware/ogo-zidestore-1.5-err.log
| Shell |
#!/bin/sh
cp -pvR ./zOGI.zsp \
/usr/local/lib/zidestore-1.5/
rcogo-zidestore restart
#tail -f /var/log/opengroupware/ogo-zidestore-1.5-err.log
| Shell |
#!/bin/sh
cp -pvR ./zOGI.zsp \
/usr/local/lib/zidestore-1.5/
rcogo-zidestore restart
#tail -f /var/log/opengroupware/ogo-zidestore-1.5-err.log
| Shell |
#!/bin/sh
cp -pvR ./zOGI.zsp \
/usr/local/lib/zidestore-1.5/
rcogo-zidestore restart
#tail -f /var/log/opengroupware/ogo-zidestore-1.5-err.log
| Shell |
#!/bin/sh
cp -pvR ./zOGI.zsp \
/usr/local/lib/zidestore-1.5/
rcogo-zidestore restart
#tail -f /var/log/opengroupware/ogo-zidestore-1.5-err.log
| Shell |
#!/bin/sh
cp -pvR ./zOGI.zsp \
/usr/local/lib/zidestore-1.5/
rcogo-zidestore restart
#tail -f /var/log/opengroupware/ogo-zidestore-1.5-err.log
| Shell |
#!/bin/sh
cp -pvR ./zOGI.zsp \
/usr/local/lib/zidestore-1.5/
rcogo-zidestore restart
#tail -f /var/log/opengroupware/ogo-zidestore-1.5-err.log
| Shell |
#!/bin/sh
cp -pvR ./zOGI.zsp \
/usr/local/lib/zidestore-1.5/
rcogo-zidestore restart
#tail -f /var/log/opengroupware/ogo-zidestore-1.5-err.log
| Shell |
#!/bin/sh
cp -pvR /home/awilliam/Works/zogi/zOGI.zsp \
/usr/local/lib/zidestore-1.5/
rcogo-zidestore restart
#tail -f /var/log/opengroupware/ogo-zidestore-1.5-err.log
| Shell |
#!/bin/sh
cp -pvR /home/awilliam/Works/zogi/zOGI.zsp \
/usr/local/lib/zidestore-1.5/
rcogo-zidestore restart
#tail -f /var/log/opengroupware/ogo-zidestore-1.5-err.log
| Shell |
#!/bin/sh
cp -pvR /home/awilliam/Works/zogi/zOGI.zsp \
/usr/local/lib/zidestore-1.5/
rcogo-zidestore restart
#tail -f /var/log/opengroupware/ogo-zidestore-1.5-err.log
| Shell |
#!/bin/sh
cp -pvR /home/awilliam/Works/zogi/zOGI.zsp \
/usr/local/lib/zidestore-1.5/
rcogo-zidestore restart
#tail -f /var/log/opengroupware/ogo-zidestore-1.5-err.log
| Shell |
#!/bin/sh
cp -pvR ./zOGI.zsp \
/usr/local/lib/zidestore-1.5/
rcogo-zidestore restart
#tail -f /var/log/opengroupware/ogo-zidestore-1.5-err.log
| Shell |
#!/bin/sh
cp -pvR ./zOGI.zsp \
/usr/local/lib/zidestore-1.5/
rcogo-zidestore restart
#tail -f /var/log/opengroupware/ogo-zidestore-1.5-err.log
| Shell |
#!/bin/sh
cp -pvR ./zOGI.zsp \
/usr/local/lib/zidestore-1.5/
rcogo-zidestore restart
#tail -f /var/log/opengroupware/ogo-zidestore-1.5-err.log
| Shell |
#!/bin/sh
cp -pvR ./zOGI.zsp \
/usr/local/lib/zidestore-1.5/
rcogo-zidestore restart
#tail -f /var/log/opengroupware/ogo-zidestore-1.5-err.log
| Shell |
#!/bin/sh
cp -pvR ./zOGI.zsp \
/usr/local/lib/zidestore-1.5/
rcogo-zidestore restart
#tail -f /var/log/opengroupware/ogo-zidestore-1.5-err.log
| Shell |
#!/bin/sh
cp -pvR ./zOGI.zsp \
/usr/local/lib/zidestore-1.5/
rcogo-zidestore restart
#tail -f /var/log/opengroupware/ogo-zidestore-1.5-err.log
| Shell |
#!/bin/sh
cp -pvR ./zOGI.zsp \
/usr/local/lib/zidestore-1.5/
rcogo-zidestore restart
#tail -f /var/log/opengroupware/ogo-zidestore-1.5-err.log
| Shell |
#!/bin/sh
cp -pvR ./zOGI.zsp \
/usr/local/lib/zidestore-1.5/
rcogo-zidestore restart
#tail -f /var/log/opengroupware/ogo-zidestore-1.5-err.log
| Shell |
#!/bin/sh
cp -pvR ./zOGI.zsp \
/usr/local/lib/zidestore-1.5/
rcogo-zidestore restart
#tail -f /var/log/opengroupware/ogo-zidestore-1.5-err.log
| Shell |
#!/bin/sh
cp -pvR ./zOGI.zsp \
/usr/local/lib/zidestore-1.5/
rcogo-zidestore restart
#tail -f /var/log/opengroupware/ogo-zidestore-1.5-err.log
| Shell |
#!/bin/bash
cd ../
for App in *.app; do
rsync -rlt --delete \
--exclude "*.app" \
--exclude clean/ \
--exclude "Code Blocks/" \
--exclude Doxyfile \
--exclude Frameworks/ \
--exclude include/ \
--exclude SConstruct \
--exclude src/ \
--exclude "Visual Studio 2008/" \
--exclud... | Shell |
#!/bin/bash
cd ../
for App in *.app; do
rsync -rlt --delete \
--exclude "*.app" \
--exclude clean/ \
--exclude "Code Blocks/" \
--exclude Doxyfile \
--exclude Frameworks/ \
--exclude include/ \
--exclude SConstruct \
--exclude src/ \
--exclude "Visual Studio 2008/" \
--exclud... | Shell |
#!/bin/sh -x
prefix=/usr/local
rm -rf ${prefix}/include/ocropus
rm -rf ${prefix}/lib/libocropus.*
rm -rf ${prefix}/bin/ocropus
| Shell |
#! /bin/sh
# depcomp - compile a program generating dependencies as side-effects
scriptversion=2005-07-09.11
# Copyright (C) 1999, 2000, 2003, 2004, 2005 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 pub... | Shell |
#!/bin/bash
base=$0.`date +%s`
fixed() {
echo fixed $1=$2
eval export $1="$2"
}
pick() {
value=$(perl -e 'shift; print $ARGV[int((1+$#ARGV)*rand())]' "$@")
echo pick $1=$value
eval export $1="$value"
}
fixed verbose 1
fixed verbose_params '?'
fixed debug info
pick linerec_classifier latin cascade... | Shell |
#!/bin/bash
base=$0.`date +%s`
fixed() {
echo fixed $1=$2
eval export $1="$2"
}
pick() {
value=$(perl -e 'shift; print $ARGV[int((1+$#ARGV)*rand())]' "$@")
echo pick $1=$value
eval export $1="$value"
}
fixed verbose 1
fixed verbose_params '?'
fixed debug info
fixed linerec_classifier latin
fixed ... | Shell |
#!/bin/bash
base=$0
pick() {
value=$(perl -e 'shift; print $ARGV[int((1+$#ARGV)*rand())]' "$@")
echo pick $1=$value
eval export $1="$value"
}
pick verbose 1
pick verbose_params '?'
pick debug info
pick linerec_classifier mappedmlp
pick linerec_fmap sfmap
pick ntrain 50000
pick linerec_csize 40
pick liner... | Shell |
if [ $# -ne 4 ]
then
echo "Usage: `basename $0` <jstor-data-dir> <model-for-alignment> <output-dir-for-images> <new-model>"
exit -1
fi
cmodel=$2
./jstor.py "$1/ocrs/*.xml" "$1/pages/*.png" "$3/%04d/%04d" > $3/jstor-extract.log
ocropus lines2fsts $3
ocropus align $3
for i in $3/???? ; do rename 's/\.cseg\.png$/\.cs... | Shell |
export element=ln
export old_csegs=1
export beam_width=200
./train.sh $@
| Shell |
export element=wd
./train.sh $@
| Shell |
#!/bin/bash
# usage:
# train.sh <text-file> [output-directory] [book-name]
if [ $# -le 1 ] ; then
outdir="."
else
outdir=$2
fi
if [ $# -le 2 ] ; then
bookname=`basename $1`
else
bookname=$3
fi
./ocrogenft -b $bookname -o $outdir $1
ocropus trainseg ${outdir}/${bookname}.model ${outdir}/$1
| Shell |
#!/bin/bash
# example for training unicode text files
./train.sh glass . glass.txt
| Shell |
export element="ocr_line"
export min_len=10
export max_len=100
export old_csegs=1
export beam_width=200
./train.sh $@
| Shell |
export element="ocr_cinfo"
export min_len=2
export max_len=20
export linerec_maxaspect=2.0
export max_line_aspect=2.0
./train.sh $@
| Shell |
#!/bin/bash
#
# checks for correct building and runs ocropus with valgrind
#
# Responsible: tmb
# Reviewer: kofler
#
. `dirname $0`/common.sh
verifyDir
jam clean
test -x ocrocmd/ocrocmd && die "failed to clean ocropus executable"
jam -dx -s opt='-g -O2' || die "jam build failed"
test -x ocrocmd/ocrocmd || die "fai... | Shell |
#!/bin/sh
find . -name '*.h' -o -name '*.c*' | sort | uniq -d
| Shell |
#
# common functions for test scripts in ocropus
# include this file with the following line into test scripts:
# . `dirname $0`/common.sh
# this allows for calling the scripts also from the top-level
# ocropus directory. the scripts must all reside in the same
# subfolder!
#
# Responsible: kofler
#
# makes sure that ... | Shell |
#!/bin/bash
#
# checks for correct building and runs ocropus with profiling
#
# Responsible: tmb
# Reviewer: kofler
#
. `dirname $0`/common.sh
verifyDir
section RUN-PROFILE
jam clean
test -x ocrocmd/ocrocmd && die "failed to clean ocropus executable"
jam -dx -s opt='-g -O2 -DUNSAFE -pg' -s LINKFLAGS='-pg' || die ... | Shell |
#!/bin/bash
#
# makes sure that ocropus compiles !
#
# Responsible: kofler
#
# include common functions (look there for documentation!)
. `dirname $0`/common.sh
# make sure we are in the right directory
verifyDir
retvalue=0
section TEST-COMPILE
# build ocropus with a minimal configuration
verifyCommand "./configur... | Shell |
#!/bin/sh
find . -name '*.png' |
egrep 'Volume_.*/..../.....png' |
while read image; do
base=$(echo $image | sed 's/.png//')
echo
echo $base
echo
bpnet=/usr/local/share/ocropus/models/neural-net-file.nn ocroscript align-transcription --cut $image $base.txt $base.cseg.png $base.rseg.png $base.costs
d... | Shell |
#-*- mode: shell-script;-*-
#
# bash completion support for core ocropus
#
# Copyright (C) 2009 Neskie A. Manuel <neskiem@gmail.com>
# Distributed under the GNU General Public License, version 2.0.
#
_ocropus_commands()
{
local commands="$(ocropus 2>&1 | grep ocropus | cut -d ' ' -f 6)"
COMPREPLY=( ${COMPREPL... | Shell |
#!/bin/bash
#
# runs ocropus with timing information
#
# Responsible: tmb
# Reviewer: kofler
#
. `dirname $0`/common.sh
verifyDir
cd ocroscript/scripts
export OCROSCRIPTS=`pwd`
section RUN-TIMING
retvalue=0
for file in ../../data/pages/*.png; do
echo >&2
echo " === $file" >&2
timing=1 `which time` -... | Shell |
#!/bin/bash
#
# makes sure that ocropus compiles !
#
# Responsible: kofler
#
# include common functions (look there for documentation!)
. `dirname $0`/common.sh
# make sure we are in the right directory
verifyDir
retvalue=0
section RUN-TESTS
verifyCommand "make check" 0
exit $?
| Shell |
#!/bin/bash
#
# checks for the presence of the right copyright and licence
# information in src files
#
# Responsible: tmb
# Reviewer: kofler
#
# include common functions (look there for documentation!)
. `dirname $0`/common.sh
verifyDir
retval=0
section "checking copyrights"
find . -name '*.cc' -o -name '*.h' | g... | Shell |
#!/bin/bash
#
# makes sure that ocropus compiles !
#
# Responsible: kofler
#
# include common functions (look there for documentation!)
. `dirname $0`/common.sh
# make sure we are in the right directory
verifyDir
section TEST-RUN
# actually run ocropus
verifyCommand "cd ocroscript/scripts" 0
export OCROSCRIPTS=`pwd... | Shell |
#!/bin/sh
svn status |
egrep '(^M|^A|^D|^C|^\?.*\.(h|c|cc|png|lua)$)' |
egrep -v '(/| | )data|tests/images' |
fgrep -f '.nosvn' -v
find . |
fgrep .mine
| Shell |
#!/bin/sh
# install - install a program, script, or datafile
scriptversion=2005-05-14.22
# 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 hereby ... | Shell |
#!/bin/bash
# This script initiates regeneration of Makefile.am and builds OCRopus.
# It should only be called by OCRopus developers.
# If autotools exist, Makefile.am is generated and autotools are invoked.
# All arguments to this script are forwarded as-is to configure.
if [ `which python` ]
then
if [ `which a... | Shell |
#! /bin/sh
# Common stub for a few missing GNU programs while installing.
scriptversion=2005-06-08.21
# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005
# Free Software Foundation, Inc.
# Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
# This program is free software; you can redistribu... | Shell |
#! /bin/sh
V='ocropus-0.2'
T=`mktemp`
D=$T-ocropus
mkdir $D
cd $D
svn checkout http://ocropus.googlecode.com/svn/trunk ocropus
rm -f ocropus/check-* ocropus/testing/check-*
rm -f ocropus/fix-include-dependencies ocropus/DIRS
rm -f ocropus/package.sh
cat >ocropus/Jamrules <<"EOF"
if $(TOP) = "." {
Exit "Please run... | Shell |
#!/usr/bin/env bash
# Copyright 2014 The Oppia Authors. 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 re... | Shell |
#!/usr/bin/env bash
# Copyright 2014 The Oppia Authors. 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 re... | Shell |
# Copyright 2014 The Oppia Authors. 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 applicable ... | Shell |
#!/usr/bin/env bash
# Copyright 2014 The Oppia Authors. 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 re... | Shell |
# Copyright 2014 The Oppia Authors. 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 applicable ... | Shell |
#!/usr/bin/env bash
# Copyright 2014 The Oppia Authors. 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 re... | Shell |
#!/usr/bin/env bash
# Copyright 2014 The Oppia Authors. 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 re... | Shell |
#!/usr/bin/env bash
# Copyright 2014 The Oppia Authors. 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 re... | Shell |
#!/usr/bin/env bash
# Copyright 2014 The Oppia Authors. 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 re... | Shell |
#!/bin/bash
# This script makes it easy to remount the /system partition of your Android
# device in read-write or read-only mode.
#
# Usage: ./remount_dev.sh [ ro | rw ]
if [ -z $(which adb) ]; then
echo "The adb command is not in your path."
echo "Please make sure that the Android SDK is installed on your ho... | Shell |
#!/system/bin/sh
# This script can be installed on the phone, and used to copy Haggle
# files from an sdcard to the filesystem. Must be run as root on the
# device.
mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
SDCARD=/sdcard
BINDIR=/system/bin
LIBDIR=/system/lib
DATADIR=/data/haggle
FRAMEWORKDIR=/syste... | Shell |
#!/system/bin/sh
# A script to set adhoc mode on android devices.
# Usage: adhoc.sh [start|stop] nodeNR
NETDEV=eth0
MODULE_PATH=/system/lib/modules
POST_INSERT_CMD=
IP_PREFIX="192.168.1"
if ls $MODULE_PATH/wlan.ko 2>/dev/null; then
NETDEV=tiwlan0
MODULE=wlan
HOSTNAME=Magic
POST_INSERT_CMD="wlan_loade... | Shell |
#!/bin/bash
adb root
DEVICES=$(adb devices | awk '{ if (match($2,"device")) print $1}')
NUM_DEVICES=$(echo $DEVICES | awk '{print split($0,a, " ")}')
for dev in $DEVICES; do
echo "Cleaning device $dev"
echo
adb -s $dev shell mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
#adb -s $dev rem... | Shell |
#!/bin/bash
IFS=' '
if [ ! -f .ndkconfig ]; then
echo
echo "Android NDK not found."
echo
echo "Please put the path to the Android NDK in a .ndkconfig file"
echo "in this directory according to the following format:"
echo "NDK_PATH=<my-home-dir/android-ndk-r5b"
echo
echo "For example, i... | Shell |
#!/bin/sh
# This script pushes built files to the sdcard on the phone, assuming
# that the Haggle build dir is in external/haggle of the Android
# source tree. The 'adb' utility from the Android SDK must
# be in the path.
SCRIPT_DIR=$PWD/`dirname $0`
DEVICE_FILES_DIR=$SCRIPT_DIR/device-files
PUSH_DIR=/sdcard
DATA_DIR... | Shell |
#!/bin/bash
THIS_DIR=$PWD
SCRIPT_DIR=`dirname $0`
ANDROID_SRC_DIR=
HAGGLE_SRC_DIR=`basename $THIS_DIR`
HAGGLE_VER="x.y"
HAGGLE_DIR_NAME=haggle
function usage() {
echo "Usage: $0 ANDROID_SRC_DIR [ PHOTOSHARE_SRC_DIR ]"
exit;
}
if [ -z $1 ]; then
usage;
else
ANDROID_SRC_DIR=$1
echo "Using $ANDROID_... | Shell |
#!/bin/bash
echo "trycompile 0.1"
echo ""
echo "This script tries to compile Haggle with different configurations to see"
echo "to it that Haggle does compile. Each test will take a while. Please be"
echo "patient."
echo ""
echo "WARNING: THIS TEST WILL DELETE MANY FILES IN THE HAGGLE DIRECTORY, AND"
echo "YOU WILL NE... | Shell |
#!/bin/bash
BASEPATH=`dirname $0`
IPHONEOS_VER=3.0
SDKBASE=/Developer/Platforms/iPhoneOS.platform/Developer
if [ ! -z $1 ]; then
SDKBASE=$1;
fi
echo "This script will configure the Haggle build system to compile against iPhoneOS version $IPHONEOS_VER."
echo "Make sure this version matches the SDKs installed on ... | Shell |
#!/bin/sh
#
# CA - wrapper around ca to make it easier to use ... basically ca requires
# some setup stuff to be done before you can use it and this makes
# things easier between now and when Eric is convinced to fix it :-)
#
# CA -newca ... will setup the right stuff
# CA -newreq ... will generate a certific... | Shell |
#!/usr/bin/sh
major="0"
minor="9.7b"
slib=libssl
sh_slib=$slib.so.$major.$minor
clib=libcrypto
sh_clib=$clib.so.$major.$minor
# If you want them in /usr/local/lib then change INSTALLTOP to point there.
#INSTALLTOP=/usr/local/ssl/lib
INSTALLTOP=/usr/local/lib
cp -p $sh_clib $INSTALLTOP
cp -p $sh_slib $INSTALLTOP
P... | Shell |
#!/bin/sh
major="0"
minor="9.7b"
slib=libssl
sh_slib=$slib.so.$major.$minor
clib=libcrypto
sh_clib=$clib.so.$major.$minor
FLAGS="-O -DFILIO_H -Kalloca"
SHFLAGS="-Kpic -DPIC"
touch $sh_clib
touch $sh_slib
echo collecting all object files for $clib.so
OBJS=
find . -name \*.o -print > allobjs
for obj in `ar t libcry... | Shell |
FLAGS="-DTERMIOS -O2 -mips2 -DB_ENDIAN -fomit-frame-pointer -Wall -Iinclude"
SHFLAGS="-DPIC -fpic"
gcc -c -Icrypto $SHFLAGS $FLAGS -o crypto.o crypto/crypto.c
ld -shared -o libcrypto.so crypto.o
gcc -c -Issl $SHFLAGS $FLAGS -o ssl.o ssl/ssl.c
ld -shared -o libssl.so ssl.o
| Shell |
#!/bin/sh
major="0"
minor="9.7b"
slib=libssl
sh_slib=$slib.so.$major.$minor
clib=libcrypto
sh_clib=$clib.so.$major.$minor
# If you want them in /usr/local/lib then change INSTALLTOP to point there.
#INSTALLTOP=/usr/local/ssl/lib
INSTALLTOP=/usr/local/lib
cp -p $sh_clib $INSTALLTOP
cp -p $sh_slib $INSTALLTOP
PWD=`... | Shell |
FLAGS="-DTERMIO -O3 -DB_ENDIAN -fomit-frame-pointer -mv8 -Wall -Iinclude"
SHFLAGS="-DPIC -fpic"
gcc -c -Icrypto $SHFLAGS -fpic $FLAGS -o crypto.o crypto/crypto.c
ld -G -z text -o libcrypto.so crypto.o
gcc -c -Issl $SHFLAGS $FLAGS -o ssl.o ssl/ssl.c
ld -G -z text -o libssl.so ssl.o
| Shell |
#!/usr/bin/sh
major="0"
minor="9.7b"
slib=libssl
sh_slib=$slib.so.$major.$minor
clib=libcrypto
sh_clib=$clib.so.$major.$minor
FLAGS="-O -DFILIO_H -Kalloca -Kthread"
SHFLAGS="-Kpic -DPIC"
touch $sh_clib
touch $sh_slib
echo collecting all object files for $clib.so
OBJS=
find . -name \*.o -print > allobjs
for obj in... | Shell |
#!/bin/sh
major="1"
slib=libssl
sh_slib=$slib.so.$major
clib=libcrypto
sh_clib=$clib.so.$major
echo collecting all object files for $clib.so
OBJS=
find . -name \*.o -print > allobjs
for obj in `ar t libcrypto.a`
do
OBJS="$OBJS `grep $obj allobjs`"
done
echo linking $clib.so
cc -G -o $sh_clib -h $sh_clib $OBJS -ln... | Shell |
#!/usr/bin/sh
#
# Run this script from the OpenSSL root directory:
# sh shlib/hpux10-cc.sh
#
# HP-UX (10.20) shared library installation:
# Compile and install OpenSSL with best possible optimization:
# - shared libraries are compiled and installed with +O4 optimization
# - executable(s) are compiled and installed wit... | Shell |
#!/bin/sh
echo "#define DATE \"`date`\"" >crypto/date.h
major="0"
minor="8.0"
slib=libssl
clib=libcrypto
CC=gcc
CPP='gcc -E'
AS=as
#FLAGS='-DTERMIO -O3 -DL_ENDIAN -fomit-frame-pointer -mv8 -Wall'
FLAGS='-DTERMIO -g2 -ggdb -DL_ENDIAN -Wall -DREF_CHECK -DCRYPTO_MDEBUG'
INCLUDE='-Iinclude -Icrypto -Issl'
SHFLAGS='-... | Shell |
#!/usr/bin/sh
major="0"
minor="9.7b"
slib=libssl
sh_slib=$slib.so.$major.$minor
clib=libcrypto
sh_clib=$clib.so.$major.$minor
FLAGS="-O3 -DFILIO_H -fomit-frame-pointer -pthread"
SHFLAGS="-DPIC -fPIC"
touch $sh_clib
touch $sh_slib
echo collecting all object files for $clib.so
OBJS=
find . -name \*.o -print > allob... | Shell |
#!/bin/sh
major="0"
minor="9.7b"
slib=libssl
sh_slib=$slib.so.$major.$minor
clib=libcrypto
sh_clib=$clib.so.$major.$minor
FLAGS="-O3 -fomit-frame-pointer"
SHFLAGS="-DPIC -fPIC"
touch $sh_clib
touch $sh_slib
echo collecting all object files for $clib.so
OBJS=
find . -name \*.o -print > allobjs
for obj in `ar t lib... | Shell |
#!/bin/sh
#
# print the subject
#
for i in $*
do
n=`openssl x509 -subject -noout -in $i`
echo "$i $n"
done
| Shell |
#!/bin/sh
#
# print out the issuer
#
for i in $*
do
n=`openssl x509 -issuer -noout -in $i`
echo "$i $n"
done
| Shell |
#!/bin/sh
#
# print the subject
#
for i in $*
do
n=`openssl x509 -subject -issuer -enddate -noout -in $i`
echo "$i"
echo "$n"
echo "--------"
done
| Shell |
#!/bin/sh
# print out the hash values
#
for i in $*
do
h=`openssl x509 -hash -noout -in $i`
echo "$h.0 => $i"
done
| Shell |
#!/bin/sh -k
#
# Re-order arguments so that -L comes first
#
opts=""
lopts=""
for arg in $* ; do
case $arg in
-L*) lopts="$lopts $arg" ;;
*) opts="$opts $arg" ;;
esac
done
c89 $lopts $opts
| Shell |
#!/bin/sh
cmd='../util/shlib_wrap.sh ../apps/openssl sess_id'
if [ "$1"x != "x" ]; then
t=$1
else
t=testsid.pem
fi
echo testing session-id conversions
cp $t fff.p
echo "p -> d"
$cmd -in fff.p -inform p -outform d >f.d
if [ $? != 0 ]; then exit 1; fi
#echo "p -> t"
#$cmd -in fff.p -inform p -outform t >f.t
#if [ $... | Shell |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.