code
stringlengths
1
1.96M
language
stringclasses
1 value
#! /bin/sh # vi:ts=4:et set -e echo "// Copyright (C) 1996-2011 Markus F.X.J. Oberhumer" echo "//" echo "// Generic Posix/Unix system" echo "// Generic C compiler" test "X${top_srcdir}" = X && top_srcdir=`echo "$0" | sed 's,[^/]*$,,'`../.. test "X${AR}" = X && AR="ar" test "X${CC}" = X && CC="cc" test "X${CFLAGS+...
Shell
#! /bin/sh # vi:ts=4:et set -e echo "// Using GNU C compiler." echo "//" test "X${top_srcdir}" = X && top_srcdir=`echo "$0" | sed 's,[^/]*$,,'`../.. UNAME_MACHINE=unknown CC="gcc -fPIC" CC="gcc -static" CC="gcc" CFLAGS="-Wall -O2 -fomit-frame-pointer" # delete the next line to disable assembler support UNAME_MACHINE...
Shell
#!/bin/bash # # Copyright (C) 2010 The Android Open Source Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
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/bash # # Copyright (C) 2009 The Android Open Source Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
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 /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 /bin/rm -f mttest purify cc -DSOLARIS -I../../include -g mttest.c -o mttest -L../.. -lthread -lssl -lcrypto -lnsl -lsocket
Shell
#!/bin/bash # # Copyright (C) 2010 The Android Open Source Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
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="adb shell /system/bin/ssltest -key $key -cert $cert -c_key $key -c_cert $cert" if adb shell /system/bin/openssl x509 -in $cert -text -noout | fgrep 'DSA Public Key...
Shell
OPENVPN_PACKAGE_NAME="@PACKAGE_NAME@" OPENVPN_PACKAGE_TARNAME="@PACKAGE_TARNAME@" OPENVPN_PACKAGE_VERSION="@PACKAGE_VERSION@" OPENVPN_PACKAGE_HOST="@host@"
Shell
#!@SHELL@ # # run OpenVPN client against ``test reference'' server # - check that ping, http, ... via tunnel works # - check that interface config / routes are properly cleaned after test end # # prerequisites: # - openvpn binary in current directory # - writable current directory to create subdir for logs # - t_client...
Shell
#! /bin/sh # # t_cltsrv.sh - script to test OpenVPN's crypto loopback # Copyright (C) 2005, 2006, 2008 Matthias Andree # # 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 th...
Shell
#! /bin/sh echo "${role}:${signal}" >&3
Shell
#! /bin/sh # # t_lpback.sh - script to test OpenVPN's crypto loopback # Copyright (C) 2005 Matthias Andree # # 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, o...
Shell
#!/bin/sh # Sample script to perform OCSP queries with OpenSSL # given a certificate serial number. # If you run your own CA, you can set up a very simple # OCSP server using the -port option to "openssl ocsp". # Full documentation and examples: # http://www.openssl.org/docs/apps/ocsp.html # Edit the following val...
Shell
#!/bin/sh # Copyright (c) 2005-2010 OpenVPN Technologies, Inc. # Licensed under the GPL version 2 # First version by Jesse Adelman # someone at boldandbusted dink com # http://www.boldandbusted.com/ # PURPOSE: This script automatically removes the /etc/resolv.conf entries previously # set by the companion script "cl...
Shell
#!/bin/sh # Copyright (c) 2005-2010 OpenVPN Technologies, Inc. # Licensed under the GPL version 2 # First version by Jesse Adelman # someone at boldandbusted dink com # http://www.boldandbusted.com/ # PURPOSE: This script automatically sets the proper /etc/resolv.conf entries # as pulled down from an OpenVPN server....
Shell
#!/bin/sh # # Bring down vpn routing. # calculate the network address remote_network=`ipcalc -n "$remote"/"$remote_netmask_bits"` remote_network="${remote_network#*=}" # clear routing via VPN ip route del "$remote_network"/"$remote_netmask_bits" via "$5" table vpn.out ip route del table vpnonly.out via "$5" iptabl...
Shell
#!/bin/sh # # Bring up vpn routing. # calculate the network address remote_network=`ipcalc -n "$remote"/"$remote_netmask_bits"` remote_network="${remote_network#*=}" # add the stuff that doesn't change if it's not already there grep -q '^202 ' /etc/iproute2/rt_tables if [ "$?" -ne 0 ] then echo 202 vpn.out >> /e...
Shell
#!/bin/sh # # openvpn This shell script takes care of starting and stopping # openvpn on RedHat or other chkconfig-based system. # # chkconfig: 345 24 76 # # description: OpenVPN is a robust and highly flexible tunneling application \ # that uses all of the encryption, authentication, a...
Shell
#!/bin/sh ### BEGIN INIT INFO # Provides: openvpn # Required-Start: $network # Required-Stop: $network # Default-Start: 3 5 # Default-Stop: 0 1 2 6 # Short-Description: This shell script takes care of starting and stopping OpenVP...
Shell
#!/bin/sh ################################# # Set up Ethernet bridge on Linux # Requires: bridge-utils ################################# # Define Bridge Interface br="br0" # Define list of TAP interfaces to be bridged, # for example tap="tap0 tap1 tap2". tap="tap0" # Define physical ethernet interface to be bridged...
Shell
#!/bin/sh #################################### # Tear Down Ethernet bridge on Linux #################################### # Define Bridge Interface br="br0" # Define list of TAP interfaces to be bridged together tap="tap0" ifconfig $br down brctl delbr $br for t in $tap; do openvpn --rmtun --dev $t done
Shell
#!/bin/sh # # Build an OpenVPN plugin module on *nix. The argument should # be the base name of the C source file (without the .c). # # This directory is where we will look for openvpn-plugin.h CPPFLAGS="${CPPFLAGS:--I../../../include}" CC="${CC:-gcc}" CFLAGS="${CFLAGS:--O2 -Wall -g}" $CC $CPPFLAGS $CFLAGS -fPIC -...
Shell
#!/bin/sh # # Build an OpenVPN plugin module on *nix. The argument should # be the base name of the C source file (without the .c). # # This directory is where we will look for openvpn-plugin.h CPPFLAGS="${CPPFLAGS:--I../../..}" CC="${CC:-gcc}" CFLAGS="${CFLAGS:--O2 -Wall -g}" $CC $CPPFLAGS $CFLAGS -fPIC -c $1.c &...
Shell
#!/bin/sh # # Build an OpenVPN plugin module on *nix. The argument should # be the base name of the C source file (without the .c). # # This directory is where we will look for openvpn-plugin.h CPPFLAGS="${CPPFLAGS:--I../../..}" CC="${CC:-gcc}" CFLAGS="${CFLAGS:--O2 -Wall -g}" $CC $CPPFLAGS $CFLAGS -fPIC -c $1.c &...
Shell
#!/bin/sh # A Sample OpenVPN-aware firewall. # eth0 is connected to the internet. # eth1 is connected to a private subnet. # Change this subnet to correspond to your private # ethernet subnet. Home will use HOME_NET/24 and # Office will use OFFICE_NET/24. PRIVATE=10.0.0.0/24 # Loopback address LOOP=127.0.0.1 # De...
Shell
#!/bin/sh # stop all openvpn processes killall -TERM openvpn
Shell
#!/bin/sh route add -net 10.0.0.0 netmask 255.255.255.0 gw $5
Shell
#!/bin/sh # A sample OpenVPN startup script # for Linux. # openvpn config file directory dir=/etc/openvpn # load the firewall $dir/firewall.sh # load TUN/TAP kernel module modprobe tun # enable IP forwarding echo 1 > /proc/sys/net/ipv4/ip_forward # Invoke openvpn for each VPN tunnel # in daemon mode. Alternative...
Shell
#!/bin/sh route add -net 10.0.1.0 netmask 255.255.255.0 gw $5
Shell
ndk-build APP_API=all -j 8 if [ $? = 0 ]; then cd libs mkdir -p ../assets for i in * do cp -v $i/minivpn ../assets/minivpn.$i done # Removed compiled openssl libs, will use platform so libs # Reduces size of apk rm -v */libcrypto.so */libssl.so fi
Shell
#!/bin/bash set -e # Check if the jar has been built. if [ ! -e target/bitcoinj-tools-*.jar ] || [[ "$ALWAYS_BUILD_WALLETTOOL" != "" ]]; then echo "Compiling WalletTool to a JAR" cd ../core mvn install -DskipTests cd ../tools [ -e target/bitcoinj-tools-*.jar ] && rm target/bitcoinj-tools-*.jar mvn package...
Shell
#!/bin/bash rm ~/.blender/2.60/config/scripts/blender2ogre.pickle ../Blender2.6/blender --python io_export_ogreDotScene.py --window-geometry 20 20 1390 640
Shell
#/bin/bash # # Run all the tests. # # The python interpreter to use is passed in on the command line. $1 runtests.py tests/test_discovery.py $1 runtests.py tests/test_errors.py $1 runtests.py tests/test_http.py $1 runtests.py tests/test_json_model.py $1 runtests.py tests/test_mocks.py $1 runtests.py tests/test_model.p...
Shell
#!/bin/bash # # Copyright 2007 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 2011 Google Inc. All Rights Reserved. # Author: jcgregorio@google.com (Joe Gregorio) # # Uploads a training data set to Google Storage to be used by this sample # application. # # Usage: # setup.sh file_name bucket/object # # Requirements: # gsutil - a client application for interacting with...
Shell
#!/bin/bash openssl req -new -newkey rsa:2048 -days 3650 -nodes -x509 \ -keyout privatekey.pem -out publickey.pem \ -subj "/CN=unit-tests" openssl pkcs12 -export -out privatekey.p12 \ -inkey privatekey.pem -in publickey.pem \ -name "key" -passout pass:notasecret
Shell
export PYTHONPATH=`pwd`:${PYTHONPATH}
Shell
#!/bin/sh #set -x # for debugging if [ -z "$NMSRC" ]; then NMSRC=~/netmap-release fi DRIVER="ixgbe" #IF="eth0" # force an interface if [ ! -f ${NMSRC}/LINUX/netmap_lin.ko ]; then echo "LINUX/netmap_lin.ko missing. Please compile netmap." exit 1 fi if [ ! -f ${NMSRC}/LINUX/${DRIVER}/${DRIVER}.ko ]; the...
Shell
#!/bin/sh sed -n 's/^## \?//p' $1 | fmt
Shell
#!/bin/sh #set -x function pgset() { local result echo $1 > ${PGDEV} result=$(cat $PGDEV | fgrep "Result: OK:") if [ "$result" = "" ]; then cat $PGDEV | fgrep "Result:" fi } ##################### Script configuration ###################### N="$1" # number of T...
Shell
#!/bin/bash ## Manage linux driver patches for netmap. ## usage (from the dir containing the Makefile): ## ## scripts/np <action> [args...] ## ## where <action> is any of the functions below. ## [ -f scripts/conf ] && source scripts/conf ## The following enviroment variables must be set: ## ## GITDIR: the absolu...
Shell
# See http://wiki.archlinux.org/index.php/VCS_PKGBUILD_Guidelines # for more information on packaging from GIT sources. # Maintainer: Vincenzo Maffione <v.maffione@gmail.com> pkgname=netmap pkgver=2.0 pkgrel=1 pkgdesc="Netmap is a framework for high speed network packet I/O." arch=('any') url="http://info.iet.unipi.it...
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/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 echo "Content-Type: text/plain" echo echo "This is shell script CGI."
Shell
#!/bin/sh echo "echoing bad headers: server must report status 500" exec 1>&2 echo shit!!!
Shell
#!/bin/sh echo "Content-Type: text/plain" echo echo $QUERY_STRING
Shell
#!/bin/bash # $Id: template_generator.sh 9537 2006-10-12 16:27:13Z nijel $ # # 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 i...
Shell
#!/bin/bash # $Id: generator.sh 9537 2006-10-12 16:27:13Z nijel $ # # 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 ...
Shell
#!/bin/bash # $Id: template_generator_mimetype.sh 9537 2006-10-12 16:27:13Z nijel $ # # 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....
Shell
#!/bin/sh # Simple script to find unused message strings by Michal Čihař tmp1=`mktemp` tmp2=`mktemp` grep -o '\<str[A-Z][a-zA-Z0-9_]*\>' lang/english-iso-8859-1.inc.php \ | grep -Ev '^str(Transformation_|ShowStatus)' | sort -u > $tmp1 grep -ho '\<str[A-Z][a-zA-Z0-9_]*\>' `find . -type f -a -name '*.php' -a -not -...
Shell
#!/bin/sh # # $Id: remove_control_m.sh 5152 2003-11-18 15:20:45Z nijel $ # # Script to remove ^M from files for DOS <-> UNIX conversions # if [ $# != 1 ] then echo "Usage: remove_control_m.sh <extension of files>" echo "" echo "Example: remove_control_m.sh php3" exit fi for i in `find . -name "*.$1"` do ...
Shell
#!/bin/sh # # $Id: lang-cleanup.sh 9504 2006-10-06 09:02:46Z nijel $ # 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 "...
Shell
#!/bin/sh # # $Id: create-release.sh 10494 2007-07-16 15:47:27Z lem9 $ # vim: expandtab sw=4 ts=4 sts=4: # # 2005-09-13, lem9@users.sourceforge.net # - no longer create a config.default.php from config.inc.php # # 2005-06-12, lem9@users.sourceforge.net # - cvs server name changed to cvs, because cvs1 no longer works fr...
Shell
#!/bin/bash # $Id: add_message.sh 9537 2006-10-12 16:27:13Z nijel $ # # Shell script that adds a message to all message files (Lem9) # # Example: add_message.sh '$strNewMessage' 'new message contents' # if [ $# -ne 2 ] ; then echo "usage: add_message.sh '\$strNewMessage' 'new message contents'" exit 1 fi for...
Shell
#!/bin/sh # $Id: check_lang.sh 9393 2006-09-08 11:28:23Z lem9 $ ## # Shell script to check that all language files are syncronized # Catches duplicate/missing strings # # Robin Johnson <robbat2@users.sourceforge.net> # August 9, 2002 ## MASTER="english-iso-8859-1.inc.php" TMPDIR="tmp-check" FILEPAT="*.inc.php" STRINGM...
Shell
#!/bin/sh # $Id: translatecount.sh 5152 2003-11-18 15:20:45Z nijel $ ## # Shell script to produce counts of just how out of date the translations are! ## # Accepts optional parameters of a list of files to produce counts from # Defaults to using all files ## # Written by Robin Johnson <robbat2 at users.sourceforge.net>...
Shell
#!/bin/sh # $Id: sync_lang.sh 9375 2006-08-29 15:33:28Z nijel $ ## # Shell script that synchronises all translations in phpMyAdmin ## # Any parameters (except --iconv/--recode) will be passed to grep to filter # processed translation, for example: './sync_lang.sh czech' will process only # czech translation, './sync_la...
Shell
#!/bin/bash # $Id: add_message_file.sh 7364 2005-09-24 08:49:52Z nijel $ # # Shell script that adds a message file to all message files # adding "//to translate" on each line # # Example: add_message_file.sh xxx # if [ $# -ne 1 ] ; then echo "usage: add_message_file.sh filename" exit 1 fi for file in *.inc.p...
Shell
#!/bin/bash # $Id: remove_message.sh 5152 2003-11-18 15:20:45Z nijel $ # # Shell script that removes a message from all message files (Lem9) # it checks for the message, followed by a space # # Example: remove_message.sh 'strMessageToRemove' # if [ $# -ne 1 ] ; then echo "usage: remove_message.sh 'strMessageToRe...
Shell
#!/bin/sh # $Id: sort_lang.sh 5206 2003-11-26 20:42:58Z nijel $ ## # Shell script to make each language file neat and tidy # # Robin Johnson <robbat2@users.sourceforge.net> # August 9, 2002 ## specialsort() { in=$1 out=$2 STRINGORDER="A B C D E F G H I J K L M N O P Q R S T U V W X Y Z" for i in ...
Shell
#!/system/bin/sh DIR=/data/data/org.gaeproxy PATH=$DIR:$PATH case $1 in start) echo " base { log_debug = off; log_info = off; log = stderr; daemon = on; redirector = iptables; } redsocks { local_ip = 127.0.0.1; local_port = 8123; ip = 127.0.0.1; port = $2; type = http-relay; } redsocks { local_ip = 12...
Shell
#!/system/bin/sh DIR=/data/data/org.gaeproxy PYTHONPATH=${1}/python-extras PYTHONPATH=${PYTHONPATH}:${DIR}/python/lib/python2.6/lib-dynload export PYTHONPATH export TEMP=${1}/python-extras export PYTHONHOME=${DIR}/python export LD_LIBRARY_PATH=${DIR}/python/lib case $2 in goagent) echo " [listen] ip = 127.0.0...
Shell
#!/system/bin/sh DIR=/data/data/org.gaeproxy PYTHONPATH=${1}/python-extras PYTHONPATH=${PYTHONPATH}:${DIR}/python/lib/python2.6/lib-dynload export PYTHONPATH export TEMP=${1}/python-extras export PYTHONHOME=${DIR}/python export LD_LIBRARY_PATH=${DIR}/python/lib case $2 in goagent) echo " [listen] ip = 127.0.0...
Shell
#!/usr/bin/sh # for this to work you need to have the following installed: # - Xcode: http://developer.apple.com/ # - git: http://help.github.com/mac-git-installation/ # - mercurial / hg: http://mercurial.berkwood.com/ # pull three20 cd .. git clone git://github.com/facebook/three20.git # pull mailcore hg clone http:...
Shell
#!/bin/bash NAME=Arity SRCS=src/calculator/Calculator.java LIBS=`find libs -name "*.jar"` KEYSTORE=/home/preda/cheie/and KEYALIAS=and SDK=/home/preda/sdk PLATFORM=$SDK/platforms/android-8/ AAPT=$PLATFORM/tools/aapt DX=$PLATFORM/tools/dx AJAR=$PLATFORM/android.jar PKRES=bin/resource.ap_ OUT=bin/$NAME-unalign.apk ALIGN...
Shell
#!/bin/sh usage() { echo "Usage: $0 <os-platform>" exit 1 } if [ $# -ne 1 ] then usage $* fi cd liveMedia /bin/rm -f Makefile cat Makefile.head ../config.$1 Makefile.tail > Makefile chmod a-w Makefile cd ../groupsock /bin/rm -f Makefile cat Makefile.head ../config.$1 Makefile.tail > Makefile chmod a-w M...
Shell
#!/bin/sh cd liveMedia /bin/rm -f liveMedia.mak /bin/rm -f Makefile cat Makefile.head ../win32config Makefile.tail > liveMedia.mak cd ../groupsock /bin/rm -f groupsock.mak /bin/rm -f Makefile cat Makefile.head ../win32config Makefile.tail > groupsock.mak cd ../UsageEnvironment /bin/rm -f UsageEnvironment.mak /bin/rm...
Shell
#!/bin/sh echo "Whoa! This software distribution does NOT use the normal Unix \"configure\" mechanism for generating a Makefile. For instructions on how to build this software, see <http://www.live555.com/liveMedia/>." echo "Also, please make sure that you're using the most up-to-date version of the source code - ava...
Shell
#!/bin/sh usage() { echo "Usage: $0 <os-platform>" exit 1 } if [ $# -ne 1 ] then usage $* fi cd liveMedia /bin/rm -f Makefile cat Makefile.head ../config.$1 Makefile.tail > Makefile chmod a-w Makefile cd ../groupsock /bin/rm -f Makefile cat Makefile.head ../config.$1 Makefile.tail > Makefile chmod a-w M...
Shell
#!/bin/sh cd liveMedia /bin/rm -f liveMedia.mak /bin/rm -f Makefile cat Makefile.head ../win32config Makefile.tail > liveMedia.mak cd ../groupsock /bin/rm -f groupsock.mak /bin/rm -f Makefile cat Makefile.head ../win32config Makefile.tail > groupsock.mak cd ../UsageEnvironment /bin/rm -f UsageEnvironment.mak /bin/rm...
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 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 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 # 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 | --help...
Shell
#! /bin/bash - # # mkdist - make a distribution directory from a master manifest file # # usage: mkdist [-m manifest] [-s srcdir] [-r rootname] [-v] version # # SRCDIR defaults to src # MANIFEST defaults to $SRCDIR/MANIFEST # # Chet Ramey # chet@po.cwru.edu # Copyright (C) 1996-2002 Free Software Foundation, Inc. # # ...
Shell
#! /bin/sh # Output a system dependent set of variables, describing how to set the # run time search path of shared libraries in an executable. # # Copyright 1996-2003 Free Software Foundation, Inc. # Taken from GNU libtool, 2001 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 # # This program is ...
Shell
#!/bin/sh # # install - install a program, script, or datafile # This comes from X11R5. # # $XConsortium: install.sh,v 1.2 89/12/18 14:47:22 jim Exp $ # # Copyright 1991 by the Massachusetts Institute of Technology # # Permission to use, copy, modify, distribute, and sell this software and its # documentation for any p...
Shell
#! /bin/sh # # shobj-conf -- output a series of variable assignments to be substituted # into a Makefile by configure which specify system-dependent # information for creating shared objects that may be loaded # into bash with `enable -f' # # usage: shobj-conf [-C compiler] -c host_cpu -o host_os -v host_vendor # # ...
Shell
#! /bin/sh # # shlib-install - install a shared library and do any necessary host-specific # post-installation configuration (like ldconfig) # # usage: shlib-install [-D] -O host_os [-V host_vendor] -d installation-dir [-b bin-dir] -i install-prog [-U] library # # Chet Ramey # chet@po.cwru.edu # # defaults # INSTAL...
Shell
#! /bin/sh # # mkdirs - a work-alike for `mkdir -p' # # Chet Ramey # chet@po.cwru.edu # Copyright (C) 1996-2002 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 Founda...
Shell
#! /bin/sh # texi2dvi --- produce DVI (or PDF) files from Texinfo (or LaTeX) sources. # $Id: texi2dvi,v 1.14 2003/02/05 00:42:33 karl Exp $ # # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2001, # 2002, 2003 Free Software Foundation, Inc. # # This program is free software: you can redistribute it and...
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/bash cd build/ if [ "$1" == "-c" ] then rm -rf * fi cmake .. make cd ..
Shell
#!/bin/bash cd build/ if [ "$1" == "-c" ] then rm -rf * fi cmake .. make cd ..
Shell
#!/bin/sh # # ref - Check spelling of the arguments # # Usage: ref word .. # # can be used for the K command of Vim # spell <<EOF $* EOF
Shell
#!/bin/sh # enable DEC locator input model on remote terminal printf "\033[1;2'z\033[1;3'{\c" vim "$@" # disable DEC locator input model on remote terminal printf "\033[2;4'{\033[0'z\c"
Shell
#!/bin/sh # # ref - Check spelling of the arguments # # Usage: ref word .. # # can be used for the K command of Vim # spell <<EOF $* EOF
Shell
#!/bin/sh # enable DEC locator input model on remote terminal printf "\033[1;2'z\033[1;3'{\c" vim "$@" # disable DEC locator input model on remote terminal printf "\033[2;4'{\033[0'z\c"
Shell
#!/bin/bash cd build/ if [ "$1" == "-c" ] then rm -rf * fi cmake .. make cd ..
Shell
#!/bin/bash cd build/ if [ "$1" == "-c" ] then rm -rf * fi cmake .. make cd ..
Shell
#!/bin/bash # 打开apache.http调试信息 adb shell setprop log.tag.org.apache.http VERBOSE adb shell setprop log.tag.org.apache.http.wire VERBOSE adb shell setprop log.tag.org.apache.http.headers VERBOSE echo "Enable Debug"
Shell
#!/bin/sh path=`dirname $0` pythonhome=$path/../Frameworks/Python.framework/Versions/2.6 export PYTHONHOME=$pythonhome export DYLD_LIBRARY_PATH=$path/../MacOS:$DYLD_LIBRARY_PATH export DYLD_LIBRARY_PATH=$path/../coral:$DYLD_LIBRARY_PATH export DYLD_LIBRARY_PATH=$path/../coral/coral:$DYLD_LIBRARY_PATH export DYLD_LIBRA...
Shell