code
stringlengths
1
1.96M
language
stringclasses
1 value
#!/bin/bash # $0 <reqs> <concur> LOOP=5000 LOGDIR=$HOME/tmp/sysmon_log [ -d $LOGDIR ] || mkdir -p $LOGDIR datetime=`date +%Y%m%d-%H%M%S` LOGFILE=$LOGDIR/sysmon_${datetime}_n$1c$2.log PREV_TOTAL=0 PREV_IDLE=0 echo "#time,cpu usage(%),mem free(m)" >> $LOGFILE for i in $(seq $LOOP) do CPU=(`cat /proc/stat | grep '^cp...
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 # a u t o g e n . s h # # Copyright (c) 2005-2007 United States Government as represented by # the U.S. Army Research Laboratory. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # 1....
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 # 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/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 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/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 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 trap exit SIGHUP SIGINT SIGTERM BENCH_DIR=`dirname $0` HAGGLE_DIR=$BENCH_DIR/../bin #echo $BENCH_DIR #echo $HAGGLE_DIR # Benchmark paramaters in the same order as given on the haggle # command line DataObjects_Attr="10" Nodes_Attr="100" Attr_Num="1000" DataObjects_Num="10 50 100 500 1000 5000 10000" Tes...
Shell
#!/bin/bash NAME="haggle-benchmark" i=1 T="" for trace in $@; do PARAMS=`awk 'BEGIN{i=0;} /attr_pool/ { while (i++ < 6) { split($i,a,"="); print a[2];} }' $trace` echo $PARAMS #exit #for p in $PARAMS; do T="$PARAMS" #done #PLOT=$PLOT"\"$trace\" using 1:2:(\$3*2) with errorlines ls ...
Shell
#! /bin/sh prefix=@prefix@ exec_prefix=@exec_prefix@ includedir=@includedir@ libdir=@libdir@ usage() { cat <<EOF Usage: xml2-config [OPTION] Known values for OPTION are: --prefix=DIR change libxml prefix [default $prefix] --exec-prefix=DIR change libxml exec prefix [default $exec_prefix] --libs print li...
Shell
#! /bin/sh # Common stub for a few missing GNU programs while installing. # Copyright (C) 1996, 1997, 1999, 2000, 2002 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 ...
Shell
#! /bin/sh # mkinstalldirs --- make directory hierarchy # Author: Noah Friedman <friedman@prep.ai.mit.edu> # Created: 1993-05-16 # Public domain errstatus=0 dirmode="" usage="\ Usage: mkinstalldirs [-h] [--help] [-m mode] dir ..." # process command line arguments while test $# -gt 0 ; do case "${1}" in -h | ...
Shell
# # Configuration file for using the XML library in GNOME applications # XML2_LIBDIR="@XML_LIBDIR@" XML2_LIBS="@XML_LIBS@" XML2_INCLUDEDIR="@XML_INCLUDEDIR@" MODULE_VERSION="xml2-@VERSION@"
Shell
# ltmain.sh - Provide generalized library-building support services. # NOTE: Changing this file will not affect anything until you rerun configure. # # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, # 2007 Free Software Foundation, Inc. # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>...
Shell
#! /bin/sh # depcomp - compile a program generating dependencies as side-effects scriptversion=2006-10-15.18 # Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006 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 Licens...
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 SH="/bin/sh" if test "$OSTYPE" = msdosdjgpp; then PATH="../apps\;$PATH" else PATH="../apps:$PATH" fi export SH PATH SSLEAY_CONFIG="-config CAss.cnf" export SSLEAY_CONFIG OPENSSL="`pwd`/../util/opensslwrap.sh" export OPENSSL /bin/rm -fr demoCA $SH ../apps/CA.sh -newca <<EOF EOF if [ $? != 0 ]; the...
Shell
#! /bin/sh echo 'Testing a lot of proxy conditions.' echo 'Some of them may turn out being invalid, which is fine.' for auth in A B C BC; do for cond in A B C 'A|B&!C'; do sh ./testssl $1 $2 $3 "-proxy -proxy_auth $auth -proxy_cond $cond" if [ $? = 3 ]; then exit 1; fi done done
Shell
#!/bin/sh cmd='../util/shlib_wrap.sh ../apps/openssl pkcs7' if [ "$1"x != "x" ]; then t=$1 else t=testp7.pem fi echo testing pkcs7 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 -> p" $cmd -in fff.p -inform p -outform p >f.p if [ $? != 0 ]; t...
Shell
#!/bin/sh if [ "$1" = "" ]; then key=../apps/server.pem else key="$1" fi if [ "$2" = "" ]; then cert=../apps/server.pem else cert="$2" fi ssltest="../util/shlib_wrap.sh ./ssltest -key $key -cert $cert -c_key $key -c_cert $cert" if ../util/shlib_wrap.sh ../apps/openssl x509 -in $cert -text -noout | fgrep 'DSA ...
Shell
#!/bin/sh T=testcert KEY=512 CA=../certs/testca.pem /bin/rm -f $T.1 $T.2 $T.key if test "$OSTYPE" = msdosdjgpp; then PATH=../apps\;$PATH; else PATH=../apps:$PATH; fi export PATH echo "generating certificate request" echo "string to make the random number generator think it has entropy" >> ./.rnd if ../uti...
Shell
#!/bin/sh if [ "$1" = "" ]; then key=../apps/server.pem else key="$1" fi if [ "$2" = "" ]; then cert=../apps/server.pem else cert="$2" fi ciphers="DHE-RSA-AES256-SHA:DHE-DSS-AES256-SHA:AES256-SHA:EDH-RSA-DES-CBC3-SHA:EDH-DSS-DES-CBC3-SHA:DES-CBC3-SHA:DHE-RSA-AES128-SHA:DHE-DSS-AES128-SHA:AES128-SHA:EXP1024-DH...
Shell
#!/bin/sh cmd='../util/shlib_wrap.sh ../apps/openssl crl' if [ "$1"x != "x" ]; then t=$1 else t=testcrl.pem fi echo testing crl 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 [ $? != 0 ]; t...
Shell
#!/bin/sh if ../util/shlib_wrap.sh ../apps/openssl no-rsa; then echo skipping rsa conversion test exit 0 fi cmd='../util/shlib_wrap.sh ../apps/openssl rsa' if [ "$1"x != "x" ]; then t=$1 else t=testrsa.pem fi echo testing rsa conversions cp $t fff.p echo "p -> d" $cmd -in fff.p -inform p -outform d >f.d if [...
Shell
#!/bin/sh cmd='../util/shlib_wrap.sh ../apps/openssl req -config ../apps/openssl.cnf' if [ "$1"x != "x" ]; then t=$1 else t=testreq.pem fi if $cmd -in $t -inform p -noout -text 2>&1 | fgrep -i 'Unknown Public Key'; then echo "skipping req conversion test for $t" exit 0 fi echo testing req conversions cp $t ff...
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
#!/bin/sh digest='-sha1' reqcmd="../util/shlib_wrap.sh ../apps/openssl req" x509cmd="../util/shlib_wrap.sh ../apps/openssl x509 $digest" verifycmd="../util/shlib_wrap.sh ../apps/openssl verify" dummycnf="../apps/openssl.cnf" CAkey="keyCA.ss" CAcert="certCA.ss" CAreq="reqCA.ss" CAconf="CAss.cnf" CAreq2="req2CA.ss" # t...
Shell
#!/bin/sh # This script is used by test/Makefile.ssl to check whether a sane 'bc' # is installed. # ('make test_bn' should not try to run 'bc' if it does not exist or if # it is a broken 'bc' version that is known to cause trouble.) # # If 'bc' works, we also test if it knows the 'print' command. # # In any case, outp...
Shell
#!/bin/sh cmd='../util/shlib_wrap.sh ../apps/openssl x509' if [ "$1"x != "x" ]; then t=$1 else t=testx509.pem fi echo testing X509 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 -> n" $cmd -in fff.p -inform p -outform n >f.n if [ $? != 0 ]; t...
Shell
#!/bin/sh testsrc=Makefile test=./p cmd="../util/shlib_wrap.sh ../apps/openssl" cat $testsrc >$test; echo cat $cmd enc < $test > $test.cipher $cmd enc < $test.cipher >$test.clear cmp $test $test.clear if [ $? != 0 ] then exit 1 else /bin/rm $test.cipher $test.clear fi echo base64 $cmd enc -a -e < $test > $test.cip...
Shell
#!/bin/sh cmd='../util/shlib_wrap.sh ../apps/openssl pkcs7' if [ "$1"x != "x" ]; then t=$1 else t=pkcs7-1.pem fi echo "testing pkcs7 conversions (2)" 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 -> p" $cmd -in fff.p -inform p -outform p >f.p if [ $? !=...
Shell
#!/bin/sh /bin/rm -f mttest purify cc -DSOLARIS -I../../include -g mttest.c -o mttest -L../.. -lthread -lssl -lcrypto -lnsl -lsocket
Shell
#!/bin/sh /bin/rm -f mttest cc -p -DSOLARIS -I../../include -g mttest.c -o mttest -L/usr/lib/libc -ldl -L../.. -lthread -lssl -lcrypto -lnsl -lsocket
Shell
#!/bin/sh # # build using pthreads where it's already built into the system # /bin/rm -f mttest gcc -DPTHREADS -I../../include -g mttest.c -o mttest -L../.. -lssl -lcrypto -lpthread
Shell
#!/bin/sh # # build using pthreads # # http://www.mit.edu:8001/people/proven/pthreads.html # /bin/rm -f mttest pgcc -DPTHREADS -I../../include -g mttest.c -o mttest -L../.. -lssl -lcrypto
Shell
#!/bin/sh /bin/rm -f mttest cc -DSOLARIS -I../../include -g mttest.c -o mttest -L../.. -lthread -lssl -lcrypto -lnsl -lsocket
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
#!/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 # # print out the issuer # for i in $* do n=`openssl x509 -issuer -noout -in $i` echo "$i $n" 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 # # print the subject # for i in $* do n=`openssl x509 -subject -noout -in $i` echo "$i $n" done
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="-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
#!/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
#!/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
#!/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
#!/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
#!/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="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
#!/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 # # 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
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 # # Check the library fingerprint and generate an executable fingerprint, or # return an error lib=$1 exe=$2 ext=${HMAC_EXT:-sha1} # deal with the case where we're run from within the build and OpenSSL is # not yet installed. Also, make sure LD_LIBRARY_PATH is properly set in # case shared libraries are bu...
Shell
#!/bin/sh -e # # Copyright (c) 2005-2007 The OpenSSL Project. # # Depending on output file name, the script either embeds fingerprint # into libcrypto.so or static application. "Static" refers to static # libcrypto.a, not [necessarily] application per se. # # Even though this script is called fipsld, it expects C compi...
Shell
#!/bin/sh # # OpenSSL config: determine the operating system and run ./Configure # # "config -h" for usage information. # # this is a merge of minarch and GuessOS from the Apache Group. # Originally written by Tim Hudson <tjh@cryptsoft.com>. # Original Apache Group comments on GuessOS # Simple OS/Pl...
Shell
#!/bin/sh # For a list of supported curves, use "apps/openssl ecparam -list_curves". # Path to the openssl distribution OPENSSL_DIR=../.. # Path to the openssl program OPENSSL_CMD=$OPENSSL_DIR/apps/openssl # Option to find configuration file OPENSSL_CNF="-config $OPENSSL_DIR/apps/openssl.cnf" # Directory where certif...
Shell
#!/bin/sh # For a list of supported curves, use "apps/openssl ecparam -list_curves". # Path to the openssl distribution OPENSSL_DIR=../.. # Path to the openssl program OPENSSL_CMD=$OPENSSL_DIR/apps/openssl # Option to find configuration file OPENSSL_CNF="-config $OPENSSL_DIR/apps/openssl.cnf" # Directory where certif...
Shell
#!/bin/sh # For a list of supported curves, use "apps/openssl ecparam -list_curves". # Path to the openssl distribution OPENSSL_DIR=../.. # Path to the openssl program OPENSSL_CMD=$OPENSSL_DIR/apps/openssl # Option to find configuration file OPENSSL_CNF="-config $OPENSSL_DIR/apps/openssl.cnf" # Directory where certif...
Shell
#! /bin/sh # Tests ECC cipher suites using ssltest. Requires one argument which could # be aecdh or ecdh-ecdsa or ecdhe-ecdsa or ecdh-rsa or ecdhe-rsa. # A second optional argument can be one of ssl2 ssl3 or tls1 if [ "$1" = "" ]; then (echo "Usage: $0 test [ protocol ]" echo " where test is one of aecdh, ecdh-...
Shell
#!/bin/sh # This script tries to follow the "GNU way" w.r.t. the autobits. # This does of course generate a number of irritating files. # Try to get over it (I am getting there myself). # This should generate any missing crud, and then run autoconf which should turn # configure.in into a "./configure" script and "Mak...
Shell
#!/bin/sh HTTP="localhost:8080" CLIENT_PORT="9020" SERVER_PORT="9021" sub_test () { echo "STARTING - $VER $CIPHER" ./tunala -listen localhost:$CLIENT_PORT -proxy localhost:$SERVER_PORT \ -cacert CA.pem -cert A-client.pem -server 0 \ -dh_special standard -v_peer -v_strict \ $VER -cipher $CIPHER 1> tc1.txt 2> t...
Shell
#!/bin/sh # This script tries to clean up as much as is possible from whatever diabolical # mess has been left in the directory thanks to autoconf, automake, and their # friends. if test -f Makefile.plain; then if test -f Makefile; then make distclean fi mv Makefile.plain Makefile else make clean fi rm -f aclo...
Shell
#!/bin/sh perl util/perlpath.pl /usr/bin perl util/ssldir.pl /usr/local perl util/mk1mf.pl FreeBSD >Makefile.FreeBSD perl Configure FreeBSD
Shell
#!/bin/sh # # generate the Microsoft makefiles and .def files # PATH=util:../util:$PATH # perl util/mk1mf.pl no-sock VC-MSDOS >ms/msdos.mak # perl util/mk1mf.pl VC-W31-32 >ms/w31.mak perl util/mk1mf.pl dll VC-WIN16 >ms/w31dll.mak # perl util/mk1mf.pl VC-WIN32 >ms/nt.mak perl util/mk1mf.pl dll VC-WIN32 >ms/ntdll.mak p...
Shell
#!/bin/sh echo Generating x86 assember echo Bignum (cd crypto/bn/asm; perl x86.pl cpp > bn86unix.cpp) (cd crypto/bn/asm; perl x86.pl win32 > bn-win32.asm) echo DES (cd crypto/des/asm; perl des-586.pl cpp > dx86unix.cpp) (cd crypto/des/asm; perl des-586.pl win32 > d-win32.asm) echo "crypt(3)" (cd crypto/des/asm; perl...
Shell
#!/bin/sh # Do a makedepend, only leave out the standard headers # Written by Ben Laurie <ben@algroup.co.uk> 19 Jan 1999 TOP=$1 shift if [ "$1" = "-MD" ]; then shift MAKEDEPEND=$1 shift fi if [ "$MAKEDEPEND" = "" ]; then MAKEDEPEND=makedepend; fi cp Makefile Makefile.save # fake the presence of Kerberos t...
Shell
#!/bin/sh rm -f "$2" if test "$OSTYPE" = msdosdjgpp; then cp "$1" "$2" else ln -s "$1" "$2" fi echo "$2 => $1"
Shell
#!/bin/sh # This script is used by test/Makefile to check whether a sane 'pod2man' # is installed. # ('make install' should not try to run 'pod2man' if it does not exist or if # it is a broken 'pod2man' version that is known to cause trouble. if we find # the system 'pod2man' to be broken, we use our own copy instead)...
Shell
#!/bin/sh # # This is a ugly script use, in conjuction with editing the 'b' # configuration in the $(TOP)/Configure script which will # output when finished a file called speed.log which is the # timings of SSLeay with various options turned on or off. # # from the $(TOP) directory # Edit Configure, modifying things t...
Shell
#!/bin/sh [ $# -ne 0 ] || set -x # debug mode without arguments:-) THERE="`echo $0 | sed -e 's|[^/]*$||' 2>/dev/null`.." [ -d "${THERE}" ] || exec "$@" # should never happen... # Alternative to this is to parse ${THERE}/Makefile... LIBCRYPTOSO="${THERE}/libcrypto.so" if [ -f "$LIBCRYPTOSO" ]; then while [ -h "$...
Shell
#!/bin/sh # This script will re-make all the required certs. # cd apps # sh ../util/mkcerts.sh # mv ca-cert.pem pca-cert.pem ../certs # cd .. # cat certs/*.pem >>apps/server.pem # cat certs/*.pem >>apps/server2.pem # SSLEAY=`pwd`/apps/ssleay; export SSLEAY # sh tools/c_rehash certs # CAbits=1024 SSLEAY="../apps/open...
Shell
#!/bin/bash # # This script configures, builds and packs the binary package for # the Cygwin net distribution version of OpenSSL # # Uncomment when debugging #set -x CONFIG_OPTIONS="--prefix=/usr shared no-idea no-rc5 no-mdc2" INSTALL_PREFIX=/tmp/install VERSION= SUBVERSION=$1 function cleanup() { rm -rf ${INSTAL...
Shell
#!/bin/sh HERE="`echo $0 | sed -e 's|[^/]*$||'`" OPENSSL="${HERE}../apps/openssl" if [ -d "${HERE}../engines" -a "x$OPENSSL_ENGINES" = "x" ]; then OPENSSL_ENGINES="${HERE}../engines"; export OPENSSL_ENGINES fi if [ -x "${OPENSSL}.exe" ]; then # The original reason for this script existence is to work around # cer...
Shell
#!/bin/sh # # clean up the mess that NT makes of my source tree # if [ -f makefile -a ! -f Makefile ]; then /bin/mv makefile Makefile fi chmod +x Configure util/* echo cleaning /bin/rm -f `find . -name '*.$$$' -print` 2>/dev/null >/dev/null echo 'removing those damn ^M' perl -pi -e 's/\015//' `find . -type 'f' -print...
Shell
#!/bin/sh # # install - install a program, script, or datafile # This comes from X11R5; it is not part of GNU. # # $XConsortium: install.sh,v 1.2 89/12/18 14:47:22 jim Exp $ # # This script is compatible with the BSD install script, but was written # from scratch. # # set DOITPROG to echo to test this script doit="$...
Shell
#!/usr/local/bin/perl $infile="/home/eay/ssl/SSLeay/MINFO"; open(IN,"<$infile") || die "unable to open $infile:$!\n"; $_=<IN>; for (;;) { chop; ($key,$val)=/^([^=]+)=(.*)/; if ($key eq "RELATIVE_DIRECTORY") { if ($lib ne "") { $uc=$lib; $uc =~ s/^lib(.*)\.a/$1/; $uc =~ tr/a-z/A-Z/; $lib_nam{$u...
Shell
#!/bin/bash # Copyright 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed t...
Shell
#!/bin/bash # Copyright 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed t...
Shell
#!/bin/bash # # 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
ant clean; ant release; adb install -r bin/MetaTracker-release.apk
Shell
#!/bin/bash LD_LIBRARY_PATH="." ./sr_data_histo_bin "$@"
Shell
#!/bin/bash LD_LIBRARY_PATH="." ./sim_profile_dump_bin "$@"
Shell
#!/bin/bash sudo insmod ./zsmalloc.ko sudo insmod ./zstest.ko
Shell
#!/bin/bash sudo rmmod zstest sudo rmmod zsmalloc
Shell
#!/bin/bash ## # Show stats for all (initialized) zram devices # Author: Nitin Gupta # stats=( "disksize" "num_reads" "num_writes" "invalid_io" # "discard" "notify_free" "zero_pages" "orig_data_size" "compr_data_size" "mem_used_total" ) function get_stat() { local _dev=$1 local _stat=$2 cat $dev/$_stat }...
Shell
#!/bin/bash OPT="$1" J="$2" #### # Used by kernel Makefile # store compiler output files here export KBUILD_OUTPUT="build/x64" # '*_install' targets requires ABSOLUTE paths D="${PWD}/${KBUILD_OUTPUT}/_install" # store kernel and system map image here export INSTALL_PATH="${D}/boot" # store kernel module (.ko file...
Shell
#!/bin/bash # # new-kernel-pkg # Invoked upon installation or removal of a kernel package, the following # tasks are/can be done here: # creation/removal of initrd # run of depmod/removal of depmod generated files # addition/removal of kernel images from grub/lilo configuration (via grubby) # # Copyright 2002-2008 Red ...
Shell
#! /bin/sh # # /sbin/installkernel # # Copyright 2007-2008 Red Hat, Inc. All rights reserved. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your op...
Shell
#!/bin/bash ## # git-diffc: Graphical Git diff viewer # 'c' -> comprehensive :) # Author: Nitin Gupta <ngupta [at] vflare [dot] org> # Last Modified (mm-dd-yy): 12/27/09 # ## # Usage: # git-diffc [usual git diff arguments] # # This script recreates (sparse) trees containing original # and modified files. These trees ...
Shell
#!/bin/bash echo "Updating remote ..." git remote update echo "Rebasing master ..." git rebase --onto origin/master master #echo "Rebasing zsmalloc ..." #git rebase --onto master zsmalloc
Shell
#!/bin/bash # Sourced by all scripts that need to run commands on VM SSH="ssh -p 2222 root@localhost"
Shell
#!/bin/bash cd ../../swap_replay/sr_parse ./sr_data_histo /tmp/sample_sr_data_2 -raw | grep W | awk '{ print $2 " " $3 }' | while read line do echo $line > /proc/kmalloc_test done
Shell
#!/bin/bash LD_LIBRARY_PATH="../../alloc_stress/simprofile" ./idealsim_stress_bin "$@"
Shell
#!/bin/bash LD_LIBRARY_PATH="../../swap_replay/sr_parse" ./sysmalloc_test_bin "$@"
Shell
#!/bin/bash LD_LIBRARY_PATH="../../alloc_stress/simprofile" ./qh_stress_bin "$@"
Shell