code
stringlengths
1
1.96M
language
stringclasses
1 value
#!/bin/bash find org/apache/harmony -name '*.java' -exec sed -i 's:import org.apache.harmony.auth.internal.nls.Messages;::' '{}' ';' find org/apache/harmony -name '*.java' -exec sed -i 's:Messages.getString(\("[^"]*"\)):\1:g' '{}' ';'
Shell
#!/bin/bash rm -rf org/ietf/ rm -rf org/apache/harmony/auth rm -rf org/apache/harmony/javax/security/auth/kerberos/ rm -rf org/apache/harmony/javax/security/auth/x500/ rm org/apache/harmony/javax/security/auth/Policy.java
Shell
#!/bin/bash rm org/jivesoftware/smack/debugger/LiteDebugger.java rm org/jivesoftware/smackx/debugger/EnhancedDebugger.java rm org/jivesoftware/smackx/debugger/EnhancedDebuggerWindow.java
Shell
#!/bin/bash echo "## Step 00: initialize" ( if ! [ -d build ]; then mkdir build mkdir build/src mkdir build/src/trunk fi ) fetch() { ( cd src if ! [ -f "${2}/.svn/entries" ]; then mkdir "${2}" cd "${2}" svn co --non-interactive --trust-server-cert "${1}" "." else cd "${2}" sv...
Shell
#!/bin/sh # This script installs the gtksourceview language specification for squirrel # (and the .nut mimetype) specdir="$HOME/.gnome2/gtksourceview-1.0/language-specs" mkdir -pv "$specdir" cp -p squirrel.lang "$specdir" test -z "$XDG_DATA_HOME" && XDG_DATA_HOME="$HOME/.local/share" MIMEDIR="$XDG_DATA_HOME/mime" mkd...
Shell
# -*-shell-script-*- # Autopackage spec file # # Copyright (C) 2006 Christoph Sommer <christoph.sommer@2006.expires.deltadevelopment.de> # Mono-Specific tests and bootstrap script adapted from gnome-rdp autopackage, # Copyright (C) 2006 Balazs Varkonyi <vbali@linuxforge.hu> # # This program is free software; you can r...
Shell
#!/bin/sh mono --debug supertux-editor.exe "$@" # EOF #
Shell
#!/bin/sh prefix="@prefix@" exec_prefix="@exec_prefix@" libdir="@libdir@/@PACKAGE@" exec -a supertux-editor mono "${libdir}/supertux-editor.exe" "$@"
Shell
#!/bin/sh prefix="/home/matze/.local" exec_prefix="${prefix}" libdir="${exec_prefix}/lib/supertux-sharp" exec -a supertux-editor mono "${libdir}/supertux-editor.exe" "$@"
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/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 VENV_HOME=/opt/wpp WPP_HOME=$VENV_HOME/src/wpp LOGDIR=$WPP_HOME/log . $VENV_HOME/bin/activate datetime=`date +%Y-%m%d` timestamp=`date +%Y-%m%d-%H%M%S` thisfilename=`basename $0 |awk -F. '{print $1}'` task_banner="\n========= TASK:$thisfilename WAKEUP@$timestamp ========" [ -d $LOGDIR ] || mkdir -p $LOG...
Shell
#!/bin/bash VENV_HOME=/opt/wpp WPP_HOME=$VENV_HOME/src/wpp LOGDIR=$WPP_HOME/log/area . $VENV_HOME/bin/activate datetime=`date +%Y-%m%d` timestamp=`date +%Y-%m%d-%H%M%S` thisfilename=`basename $0 |awk -F. '{print $1}'` task_banner="\n========= TASK:$thisfilename WAKEUP@$timestamp ========" [ -d $LOGDIR ] || mkdir -p...
Shell
#!/bin/bash # $0 <total reqs> <concurrent reqs> <target id> Usage() { thisfile=`basename $0` cat <<HELP $thisfile -- Apache Benchmark wrapper for FPP/WPP performance testing. USAGE: $thisfile <total reqs> <concurrent reqs> <target server id> <target server id>: 1 - WPP Python 2 - FPP neusoft 3 - WPP Vance 4 - FPP...
Shell
#!/bin/bash # MUST be executed at the wpp ROOT dir. # e.g. $cd /path/to/wpp; ./wpp/util/src_lines sum_py=0 pyfiles=`find . -name '*.py'` echo '----------python------------' for pyfile in $pyfiles do l=`wc -l $pyfile| awk '{print $1}'` printf "%-40s%5d\n" $pyfile $l sum_py=$(($sum_py+$l)) done sum_bash=0...
Shell
#!/bin/bash # Convert old rmp csv format to fpp-compatible 14 or 16-field format. # rmp format: spid 0,lat 1,lon 2,macs 3,rsss 4 # $0 <rmp csv with old format> # # FIELD 14col,16col # IMEI 0, 3 # IMSI 1, 4 # UA 2, 5 # MCC 3, 6 # MNC 4, 7 # LAC 5, 8 # CI ...
Shell
#!/bin/bash maxmacs_num=4 #maxmacs_num=all for f in $* do if [ "$maxmacs_num" = "all" ]; then declare -a uniq_macs=`awk -F, '{print $4}' $f |uniq` declare -a uniq_essid=`awk -F, '{print $6}' $f |uniq` elif [ $maxmacs_num -eq 4 ]; then declare -a uniq_macs=`awk -F, '{print $4}' $f |awk -F'|' '{print $1"|"$2"|"...
Shell
#!/bin/bash logs=$* if [ "$logs" == "" ]; then logdir=~/tmp/log logfiles=wpp.log* logs=$logdir/$logfiles fi hits_tot=`grep 'PosReq' $logs |wc -l` hits_fail=`grep 'ErrCode="102"' $logs |wc -l` rate_ok=`echo "scale=4;($hits_tot-$hits_fail)/$hits_tot*100" |bc` echo "positioning success rate: ${rate_ok}%, tota...
Shell
#!/bin/bash # 1)filtering out NaN cols. # 2)del cols /wo lat/lon, assign h to 0 when it's null when lat/lon are available. # 3)del cols /wo wlan macs or rsss. #awk -F'\",\"' ' awk -F, ' BEGIN { OFS="," } { if (NF == 16){ ilat=12; ilon=13; ih=14; imac=15; irss=16 }else if (NF == 14){ ilat=9...
Shell
#!/bin/bash sqlterm=psql SHP2SQL=shp2pgsql # shape file to sql converter opt_srs="-s 4326" # spatial reference system, default: EPSG 4326(i.e. WGS84) SCHEMA=gis_schema # gis schema for gistemplate in postgis dbhost=localhost dbname=gisdb dbuser=gis pathout=log/out patherr=log/err #flow control args fc_shp2sql=0 f...
Shell
#!/bin/bash #usage: basename [OPTION], use '-h/--help' for more info. VER=0.1 # Default init aio=0 start_spid=1 stop_spid=1 runtimes=60 fakegps=0 makepyc=0 nstop=0 stabtest=0 stabtest_times=50 log_analysis=0 pathout=log/out patherr=log/err online="python online.py" offline="python offline.py" Version () { cat <...
Shell
#!/bin/bash # split input data to be two parts: more & less. loop=$1 datin=$2 picktool=/home/alexy/wlan-pos/tool/datpick_req-db datmore=incr.csv datless=db.csv #datmore=db.csv #datless=incr.csv req=req.csv datall=$datin.tmp rm -f $datmore $datless cp -f $datin $datall for i in $(seq $loop) do $picktool $datall if...
Shell
#!/bin/bash # picking up data respectively for request and db. awk -F, ' BEGIN { OFS="," pick_req=0 } { if (pick_req == 1){ print >> "req.csv" pick_req = 0 }else{ print >> "db.csv" pick_req = 1 } } ' $1
Shell
#!/bin/bash # $0 <csv> # e.g. # alexy@x200:~/wlan-pos$ ./tool/hide_coords dat/fpp_rawdata/moto/fpp_rawdata_moto_20101015.csv > tmp1.csv # 16col #awk -F, 'BEGIN{OFS=","}{$12="";$13="";$14="";print}' $1 # 14col awk -F, 'BEGIN{OFS=","}{$9="";$10="";$11="";print}' $1
Shell
#!/bin/bash req_packs=\ "\ ConcurrentLogHandler==0.8.4 SQLAlchemy==0.7.1 gunicorn==0.12.2 lxml==2.3 meinheld==0.4.13 netifaces==0.4 numpy==1.6.0 progressbar==2.3 psycopg2==2.4.2 simplejson==1.9.2\ " num_packs=`echo $req_packs |awk -F== '{print NF}'` num_packs=$(($num_packs - 1)) echo "-------[$num_packs] packages:---...
Shell
#!/bin/bash opt=$1 target_files=~/tmp/log/wpp.log* #day_str="2 days ago" day_str="now" #mon_str="1 month ago" mon_str="now" day_end=`date -d "$day_str" "+%d"` if [ "$opt" == "today" ]; then #just for today. day_start=$day_end date_today=`date +%Y-%m-%d` target_files=`ls $target_files -tr --full-time |grep ...
Shell
#!/bin/bash # picking up test cases(lines) from reqreterr($1) which have different pos/err results between cpp/python. awk -F, ' BEGIN { OFS="," } { ep_cpp_py = $15; ee_cpp_py = $16 if (ep_cpp_py > 10 || ee_cpp_py > 10){ print #print $1,$2,ep_cpp_py } } ' $1 |grep -v 'NaN'
Shell
#!/bin/bash max_interv=4 while true do python yc.py #delay=$[ $RANDOM%$max_interv ] #echo $delay #sleep $delay done
Shell
#!/bin/bash csvfile=$1 awk -F, ' { if($9!="" && $10!="" && $12!="" && $13!=""){ print $9","$10","$12","$13 } }' $csvfile |sed '/^$/d' |uniq > cells_latlon.csv
Shell
#!/bin/bash # $0 <source html> grep 'nbsp;' $1 |grep '<br>' |sed 's/<br>/\n/g' |sed 's/span class="content">/\n/g' |grep -v content |grep -v span |sed 's/&nbsp;//g' |sed 's/ /,/g' > area_code_name_cn.csv
Shell
#!/bin/bash # connect remote bluetooth serial port device. bt_dev_name=yxt-e71 btinit=/etc/init.d/bluetooth btkeyword=bluetooth btcomportid=0 btcomport=rfcomm$btcomportid btcomdev=/dev/$btcomport if [ "`which pskill`" = "" ]; then haspskill=0 btprocess=`ps aux|grep $btkeyword |grep -v 'grep' |awk '{print $N...
Shell
#!/bin/bash # MUST be executed at WPP root dir. logdir_gunicorn=wpp/web/log logfile_gunicorn=`ls -tr ${logdir_gunicorn}/gunicorn_* |tail -1` numErr=`grep '\[ERROR\]' ${logfile_gunicorn} |wc -l` echo "Found $numErr ERROR(s) in ${logfile_gunicorn}" [ $numErr -eq 0 ] && exit 0 echo -n "Press any key other than *n* to ...
Shell
#!/bin/bash # $0 <moto bad csv> # moto sometime has only 13 col with height info omitted. # e.g. # alexy@x200:~/wlan-pos$ ./tool/correct_motodata dat/fpp_rawdata/moto/fpp_rawdata_moto_20101015.csv > tmp1.csv awk -F, 'BEGIN{OFS=","}{if(NF==13) $10=$10",";print}' $1
Shell
#!/bin/bash # colorizing wpp tail -f log. # Usage: $0 <logfile> OPT_TYPE="ONLINE" if [ $# = 1 ]; then WPP_LOG=$1 else WPP_LOG=~/tmp/log/wpp.log #OPT_TYPE=ONLINE fi WPP_ROOT=~/wpp WPP_COLORIZE=$WPP_ROOT/wpp/util/colorize OPT_ERRINFO=-u18:ERROR OPT_POSERR=+l71:ErrCode=\\\"102\\\" OPT_UA=+l34:UserAgent=...
Shell
#!/bin/bash # update soft links for req/ret.csv. [ "$1" = "" ] && ( echo -e "\nType: $0 <tagname>\n"; exit 99 ) tag=$1 path="$PWD/dat/fpp_rawdata/cmri" reqlnk=$path/req.csv retlnk=$path/ret.csv reqnew=$path/req_$tag.csv retnew=$path/ret_$tag.csv echo "removing old links..." echo $reqlnk echo $retlnk rm $reqlnk $retln...
Shell
#!/bin/bash #usage: test basic cases in config.py for online algos. VER=0.1 Version () { cat <<VER GNU `basename $0` version $VER, by Yan Xiaotian Built on i686-ubuntu-linux-gnu Copyright (C) `date +%Y` Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warran...
Shell
#!/bin/bash # blog deploy. server_ip=192.168.109.58 remote_dir=/usr/local/nginx/html/blog sphinx_book_dir=/home/alexy/downloads/site/writing_a_book_with_sphinx remote_dir_sphinxbook=$remote_dir/sphinx_book #read -s -p "Enter $server_ip password: " inputline #pwd_remote="$inputline" pwd_remote="password" echo echo -n...
Shell
#!/bin/bash # script for gunicorn control. # $0 [options] PATH_WPPWEB=`dirname $0` LOGDIR=log LOGPATH=$PATH_WPPWEB/$LOGDIR [ -d $LOGPATH ] || mkdir -p $LOGPATH WPPLOGFILE=wpp.log WPP_LOG=/dev/null #WPP_LOG=$LOGDIR/$WPPLOGFILE PFILE=/tmp/gunicorn.pid GU=gunicorn W_MH="egg:meinheld#gunicorn_worker" W_GE="egg:gunicorn#...
Shell
#!/bin/bash find org/jivesoftware -name '*.java' -exec sed -i 's:import org.xmlpull.mxp1.MXParser:import org.xmlpull.v1.XmlPullParserFactory:' '{}' ';' find org/jivesoftware -name '*.java' -exec sed -i 's:new MXParser():XmlPullParserFactory.newInstance().newPullParser():g' '{}' ';'
Shell
#!/bin/bash rm org/xbill/DNS/spi/DNSJavaNameServiceDescriptor.java
Shell
#!/bin/bash mkdir -p org/apache/harmony/ mv javax org/apache/harmony/ find org/apache/harmony/ -name '*.java' -exec sed -i 's:package javax:package org.apache.harmony.javax:g' '{}' ';' find -name '*.java' -exec sed -i 's:import javax.security.sasl:import org.apache.harmony.javax.security.sasl:g' '{}' ';' find -name '*...
Shell
#!/bin/bash find -name '*.java' -exec sed -i 's:import org.apache.harmony.javax.security.sasl.Sasl;:import de.measite.smack.Sasl;:g' '{}' ';'
Shell
#!/bin/bash find org/apache/harmony -name '*.java' -exec sed -i 's:import org.apache.harmony.auth.internal.nls.Messages;::' '{}' ';' find org/apache/harmony -name '*.java' -exec sed -i 's:Messages.getString(\("[^"]*"\)):\1:g' '{}' ';'
Shell
#!/bin/bash rm -rf org/ietf/ rm -rf org/apache/harmony/auth rm -rf org/apache/harmony/javax/security/auth/kerberos/ rm -rf org/apache/harmony/javax/security/auth/x500/ rm org/apache/harmony/javax/security/auth/Policy.java
Shell
#!/bin/bash rm org/jivesoftware/smack/debugger/LiteDebugger.java rm org/jivesoftware/smackx/debugger/EnhancedDebugger.java rm org/jivesoftware/smackx/debugger/EnhancedDebuggerWindow.java
Shell
#!/bin/bash echo "## Step 00: initialize" ( if ! [ -d build ]; then mkdir build mkdir build/src mkdir build/src/trunk fi ) fetch() { ( cd src if ! [ -f "${2}/.svn/entries" ]; then mkdir "${2}" cd "${2}" svn co --non-interactive --trust-server-cert "${1}" "." else cd "${2}" sv...
Shell
#!/bin/sh prefix="@prefix@" exec_prefix="@exec_prefix@" exec_prefix_set=no usage="\ Usage: libmpq-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" ...
Shell
#!/bin/sh # echo "Generating build information using aclocal, autoheader, automake and autoconf" echo "This may take a while ..." # Touch the timestamps on all the files since CVS messes them up directory=`dirname $0` touch $directory/configure.ac # Regenerate configuration files libtoolize --copy aclocal autoheader ...
Shell
#!/bin/bash perl -wpi -e "s/ +$//g" $1
Shell
#!/bin/bash perl -wpi -e "s/\t/ /g" $1
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 ...
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 # Free Software Foundation, Inc. # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 # # This pr...
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; ei...
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 th...
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 ...
Shell
#! /bin/sh # Configuration validation subroutine script. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, # 2000, 2001, 2002, 2003 Free Software Foundation, Inc. timestamp='2004-01-05' # This file is (in principle) common to ALL GNU software. # The presence of a machine in this file suggest...
Shell
#! /bin/sh # Attempt to guess a canonical system name. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, # 2000, 2001, 2002, 2003 Free Software Foundation, Inc. timestamp='2004-01-05' # This file is free software; you can redistribute it and/or modify it # under the terms of the GNU General ...
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; ei...
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 ...
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 th...
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 ...
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/bash set +e set -o errexit if [ $# -ne 4 ] then echo "Syntax: $0 IPSW RAMDISK KEY IV" echo "python_scripts/kernel_patcher.py can generate a shell script with the correct parameters" exit fi IPSW=$1 RAMDISK=$2 KEY=$3 IV=$4 CUSTOMRAMDISK="myramdisk.dmg" IMG3FS="./img3fs/img3fs" IMG3MNT="/tmp/img3" ...
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/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 # 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 # 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/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 # Generate GPG signatures on a PuTTY release/snapshot directory as # delivered by Buildscr. # Usage: sign.sh <builddir> <keytype> # e.g. sign.sh build.out Snapshots # or sign.sh 0.60 Releases set -e sign() { # Check for the prior existence of the signature, so we can # re-run this scri...
Shell
# -*- sh -*- # Build script to construct a full distribution directory of PuTTY. module putty # Set up the arguments for the main make command. set Makever -DSVN_REV=$(revision) ifneq "$(!numeric $(revision))" "yes" set Makever $(Makever) -DMODIFIED ifneq "$(RELEASE)" "" set Makever $(Makever) -DRELEASE=$(REL...
Shell
#!/bin/sh # Shell script to be run on Mac OS X, which uses `SetFile' to set # up the appropriate file metadata so that you can run MPW and have # it build classic-Mac PuTTY. SETFILE=/Developer/Tools/SetFile # I want to be able to run this either from the `mac' subdirectory # or from the main `putty' source...
Shell
#!/bin/sh # Shell script to be run on Mac OS X, which uses `SetFile' to set # up the appropriate file metadata so that you can run MPW and have # it build classic-Mac PuTTY. SETFILE=/Developer/Tools/SetFile # I want to be able to run this either from the `mac' subdirectory # or from the main `putty' source...
Shell
#! /bin/sh # This script makes the autoconf mechanism for the Unix port work. # It's separate from mkfiles.pl because it won't work (and isn't needed) # on a non-Unix system. # Track down automake's copy of install-sh cp `aclocal --print-ac-dir | sed 's/aclocal$/automake/'`/install-sh unix/. (cd unix && autorec...
Shell
# -*- sh -*- # Build script to construct a full distribution directory of PuTTY. module putty # Set up the arguments for the main make command. set Makever -DSVN_REV=$(revision) ifneq "$(!numeric $(revision))" "yes" set Makever $(Makever) -DMODIFIED ifneq "$(RELEASE)" "" set Makever $(Makever) -DRELEASE=$(REL...
Shell
#!/bin/sh # Build a Unix source distribution from the PuTTY CVS area. # # Pass an argument of the form `2004-02-08' to have the archive # tagged as a development snapshot; of the form `0.54' to have it # tagged as a release; of the form `r1234' to have it tagged as a # custom build. Otherwise it'll be tagged a...
Shell
#!/bin/sh # Generate GPG signatures on a PuTTY release/snapshot directory as # delivered by Buildscr. # Usage: sign.sh <builddir> <keytype> # e.g. sign.sh build.out Snapshots # or sign.sh 0.60 Releases set -e sign() { # Check for the prior existence of the signature, so we can # re-run this scri...
Shell
#! /bin/sh # This script makes the autoconf mechanism for the Unix port work. # It's separate from mkfiles.pl because it won't work (and isn't needed) # on a non-Unix system. # Track down automake's copy of install-sh cp `aclocal --print-ac-dir | sed 's/aclocal$/automake/'`/install-sh unix/. (cd unix && autorec...
Shell
#!/bin/sh # Build a Unix source distribution from the PuTTY CVS area. # # Pass an argument of the form `2004-02-08' to have the archive # tagged as a development snapshot; of the form `0.54' to have it # tagged as a release; of the form `r1234' to have it tagged as a # custom build. Otherwise it'll be tagged a...
Shell
#!/bin/sh set -x glib-gettextize --copy --force libtoolize --automake --copy --force intltoolize --automake --copy --force aclocal autoconf --force autoheader --force automake --add-missing --copy --force-missing --foreign
Shell
#!/bin/bash # # This script checks the java version and bails if it's less # than Java6 (because we use @Override annotations on interface # overriding methods. It then proceeds to do a maven build that # first cleans, then builds the normal lifecycle through compilation # unit testing (if available) up to packaging. ...
Shell
#!/bin/sh CURRENTDIR=`pwd` cd `dirname $0` VERSION=0.1a DESTDIR=procycle-$VERSION FILES="artwork libpc procycle procycle.pro procycle.pri LICENSE" EXCLUDES="libpc/doc libpc/Makefile procycle/Makefile" rm -rf $DESTDIR* mkdir $DESTDIR for F in $FILES do if [ -f $F ] then cp $F $DESTDIR elif [ -d $F ] then ...
Shell
#!/bin/bash CURRENTDIR=`pwd` cd `dirname $0` function usage { echo -e "\033[0;34m\033[1m" echo -e " - ProCycle manual maintenance utility -\033[0m" echo -e " Purpose is to efficiently track the manual changes through" echo -e " Mercurial which better handles text files than binary files." echo -e "" ...
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_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 # # 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 # # 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 # # 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 # 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 sets the proper /etc/resolv.conf entries # as pulled down from an OpenVPN server....
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 #################################### # 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 ################################# # 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 route add -net 10.0.0.0 netmask 255.255.255.0 gw $5
Shell
#!/bin/sh # stop all openvpn processes killall -TERM openvpn
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 # 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