code
stringlengths
1
1.96M
language
stringclasses
1 value
#!/bin/sh # PRE-REVPROP-CHANGE HOOK # # The pre-revprop-change hook is invoked before a revision property # is added, modified or deleted. Subversion runs this hook by invoking # a program (script, executable, binary, etc.) named 'pre-revprop-change' # (for which this file is a template), with the following or...
Shell
#!/bin/sh # POST-UNLOCK HOOK # # The post-unlock hook runs after a path is unlocked. Subversion runs # this hook by invoking a program (script, executable, binary, etc.) # named 'post-unlock' (for which this file is a template) with the # following ordered arguments: # # [1] REPOS-PATH (the path to this...
Shell
#!/bin/bash running="false" log="FinanceLog_`date +"%y_%m_%d_%H_%M_%S"`" echo "`date` Started" >> "$log" while [ true ] do hour=`date +"%H"` day=`date +"%w"` if [[ 10#$hour -le 17 && 10#$hour -ge 6 && 10#$day -ne 6 && 10#$day -ne 0 ]]; then if [ $running = "false" ]; then ...
Shell
#!/bin/bash running="false" log="FinanceLog_`date +"%y_%m_%d_%H_%M_%S"`" echo "`date` Started" >> "$log" while [ true ] do hour=`date +"%H"` day=`date +"%w"` if [[ 10#$hour -le 17 && 10#$hour -ge 6 && 10#$day -ne 6 && 10#$day -ne 0 ]]; then if [ $running = "false" ]; then ...
Shell
killall -9 inotify_main gcc -o inotify_main inotify_main.c cfg_rw.c dir_list.c rm -rf /tmp/statistics #./inotify_main /public_share/home/linshougang &
Shell
#!/bin/sh # Help for myscript commands # echo "android_ndk script help : " echo "mhp.sh - Help" echo "adr.sh - Run executable program on adb" echo "api.sh - Install the apk" echo "apu.sh - Unistall the apk" echo "lgs.sh - Clean and start log" echo "ndbr.sh - Build or rebuild with ndk-build"
Shell
#!/bin/sh # Run exe on adb # Parameters: projectName projectPath # echo 'Running on adb...' if [ "$#" != "2" ]; then echo "Usage: adr.sh projectName projectPath" else DESTINATION="/data/"$1 # '/data/myTest' LIBPATH=$2"/libs/armeabi" # 'D:/home/gccProject/COPF/android_ndk/libs/armeabi' echo "[ProjectNam...
Shell
#!/bin/sh # Install the apk # if [ "$#" != "1" ] && [ "$#" != "3" ]; then echo "Usage: api.sh input" else # install all apk in folder for file in ` ls $1 ` do TMPFILE=$1'/'$file if [ -f $TMPFILE ] && [ "${file##*.}" = "apk" ]; then echo 'Installing apk... '$TMPFILE ...
Shell
#!/bin/sh # Init environment # Change to your path # echo "Init enviroment for Android NDK and SDK" if [ "$#" != "3" ]; then echo "Usage: init.sh ndkscriptpath androidndkpath androidsdkpath" else # ndk script path export NDKSCRIPTPATH=$1 # init NDK path export NDK=$2 # export ANDROID_NDK_ROOT=$...
Shell
#!/bin/sh # Convert all script to unix format # Parameters: projectName projectPath # echo 'Dos to unix...' dos2unix _adbt.sh _adbt.sh dos2unix adr.sh adr.sh dos2unix api.sh api.sh dos2unix apu.sh apu.sh dos2unix init.sh init.sh dos2unix lgs.sh lgs.sh dos2unix mhp.sh mhp.sh dos2unix ndbr.sh ndbr.sh
Shell
# run sh in adb # e.g. # adb push "C:/android-ndk-r5b/myscript/_adbt.sh" /data/adbt.sh # adb shell # chmod 777 /data/adbt.sh # /data/adbt.sh path name # echo "[Project path on adb: $1 Exe: $2]" #DESTINATION=$1 #e.g. '/data/myTest' chmod 777 $1/$2 LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$1 $1/$2
Shell
#!/bin/sh # Unistall the apk # Please cd to the folder of the apk # if [ "$#" -lt 1 ]; then echo "Usage: api.sh input" else echo 'Uninstalling apk... '$1 APKCLASS=$1 # 'com.example.test' adb uninstall $APKCLASS if [ "$#" == "2" ]; then APK=$2 # 'F:/workspace/test01/bin/test01.apk' ...
Shell
#!/bin/sh # Build or Rebuild with NDK # Please cd to the NDK root folder # if [ "$1" != "r" ]; then echo "Building with NDK..." else echo 'Rebuilding the NDK...' $NDK/ndk-build clean fi $NDK/ndk-build # # Copy libs to workspace # if [ "$#" == "2" ]; then # # SOURSE="$PWD/libs/armeabi" # SOURSE=${PWD...
Shell
#!/bin/sh # Clean and start log # echo 'Starting the log...' adb logcat -c adb logcat
Shell
#!/bin/sh jar cvfm bin/plugin.jar manifest.txt -C bin . monkeyrunner -plugin bin/plugin.jar dealdroid_with_plugin.py
Shell
#!/bin/sh jar cvfm bin/plugin.jar manifest.txt -C bin . monkeyrunner -plugin bin/plugin.jar dealdroid_with_plugin.py
Shell
#!/bin/sh # START-COMMIT HOOK # # The start-commit hook is invoked before a Subversion txn is created # in the process of doing a commit. Subversion runs this hook # by invoking a program (script, executable, binary, etc.) named # 'start-commit' (for which this file is a template) # with the following ordered...
Shell
#!/bin/sh # PRE-COMMIT HOOK # # The pre-commit hook is invoked before a Subversion txn is # committed. Subversion runs this hook by invoking a program # (script, executable, binary, etc.) named 'pre-commit' (for which # this file is a template), with the following ordered arguments: # # [1] REPOS-PATH (t...
Shell
#!/bin/sh # PRE-LOCK HOOK # # The pre-lock hook is invoked before an exclusive lock is # created. Subversion runs this hook by invoking a program # (script, executable, binary, etc.) named 'pre-lock' (for which # this file is a template), with the following ordered arguments: # # [1] REPOS-PATH (the pat...
Shell
#!/bin/sh # POST-COMMIT HOOK # # The post-commit hook is invoked after a commit. Subversion runs # this hook by invoking a program (script, executable, binary, etc.) # named 'post-commit' (for which this file is a template) with the # following ordered arguments: # # [1] REPOS-PATH (the path to this rep...
Shell
#!/bin/sh # PRE-COMMIT HOOK # # The pre-commit hook is invoked before a Subversion txn is # committed. Subversion runs this hook by invoking a program # (script, executable, binary, etc.) named 'pre-commit' (for which # this file is a template), with the following ordered arguments: # # [1] REPOS-PATH (t...
Shell
#!/bin/sh # PRE-REVPROP-CHANGE HOOK # # The pre-revprop-change hook is invoked before a revision property # is added, modified or deleted. Subversion runs this hook by invoking # a program (script, executable, binary, etc.) named 'pre-revprop-change' # (for which this file is a template), with the following or...
Shell
#!/bin/sh # PRE-LOCK HOOK # # The pre-lock hook is invoked before an exclusive lock is # created. Subversion runs this hook by invoking a program # (script, executable, binary, etc.) named 'pre-lock' (for which # this file is a template), with the following ordered arguments: # # [1] REPOS-PATH (the pat...
Shell
#!/bin/sh # POST-REVPROP-CHANGE HOOK # # The post-revprop-change hook is invoked after a revision property # has been added, modified or deleted. Subversion runs this hook by # invoking a program (script, executable, binary, etc.) named # 'post-revprop-change' (for which this file is a template), with the # f...
Shell
#!/bin/sh # POST-LOCK HOOK # # The post-lock hook is run after a path is locked. Subversion runs # this hook by invoking a program (script, executable, binary, etc.) # named 'post-lock' (for which this file is a template) with the # following ordered arguments: # # [1] REPOS-PATH (the path to this repos...
Shell
#!/bin/sh # PRE-UNLOCK HOOK # # The pre-unlock hook is invoked before an exclusive lock is # destroyed. Subversion runs this hook by invoking a program # (script, executable, binary, etc.) named 'pre-unlock' (for which # this file is a template), with the following ordered arguments: # # [1] REPOS-PATH ...
Shell
#!/bin/sh # START-COMMIT HOOK # # The start-commit hook is invoked before a Subversion txn is created # in the process of doing a commit. Subversion runs this hook # by invoking a program (script, executable, binary, etc.) named # 'start-commit' (for which this file is a template) # with the following ordered...
Shell
#!/bin/sh # POST-COMMIT HOOK # # The post-commit hook is invoked after a commit. Subversion runs # this hook by invoking a program (script, executable, binary, etc.) # named 'post-commit' (for which this file is a template) with the # following ordered arguments: # # [1] REPOS-PATH (the path to this rep...
Shell
#!/bin/sh # POST-UNLOCK HOOK # # The post-unlock hook runs after a path is unlocked. Subversion runs # this hook by invoking a program (script, executable, binary, etc.) # named 'post-unlock' (for which this file is a template) with the # following ordered arguments: # # [1] REPOS-PATH (the path to this...
Shell
#!/bin/sh # POST-UNLOCK HOOK # # The post-unlock hook runs after a path is unlocked. Subversion runs # this hook by invoking a program (script, executable, binary, etc.) # named 'post-unlock' (for which this file is a template) with the # following ordered arguments: # # [1] REPOS-PATH (the path to this...
Shell
#!/bin/sh # PRE-REVPROP-CHANGE HOOK # # The pre-revprop-change hook is invoked before a revision property # is added, modified or deleted. Subversion runs this hook by invoking # a program (script, executable, binary, etc.) named 'pre-revprop-change' # (for which this file is a template), with the following or...
Shell
#!/bin/sh # POST-LOCK HOOK # # The post-lock hook is run after a path is locked. Subversion runs # this hook by invoking a program (script, executable, binary, etc.) # named 'post-lock' (for which this file is a template) with the # following ordered arguments: # # [1] REPOS-PATH (the path to this repos...
Shell
#!/bin/sh # POST-REVPROP-CHANGE HOOK # # The post-revprop-change hook is invoked after a revision property # has been added, modified or deleted. Subversion runs this hook by # invoking a program (script, executable, binary, etc.) named # 'post-revprop-change' (for which this file is a template), with the # f...
Shell
#!/bin/sh # PRE-UNLOCK HOOK # # The pre-unlock hook is invoked before an exclusive lock is # destroyed. Subversion runs this hook by invoking a program # (script, executable, binary, etc.) named 'pre-unlock' (for which # this file is a template), with the following ordered arguments: # # [1] REPOS-PATH ...
Shell
#!/usr/bin/env bash ############################################################################## ## ## Gradle start up script for UN*X ## ############################################################################## # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to ...
Shell
#! /bin/bash # Binary of the Texturepacker: TEXTUREPACKER_BINARY=/usr/local/bin/TexturePacker # Shared TexturePack-Output-Definitions: TEXTUREPACK_OUTPUT_DIRECTORY="../assets/gfx/texturepacks/" TEXTUREPACK_OUTPUT_JAVAIDS_PACKAGE="org.website.project.texturepacks" TEXTUREPACK_OUTPUT_JAVAIDS_DIRECTORY="../src/org/websi...
Shell
#! /bin/bash # Binary of the Texturepacker: TEXTUREPACKER_BINARY=/usr/local/bin/TexturePacker # Shared TexturePack-Output-Definitions: TEXTUREPACK_OUTPUT_DIRECTORY="../assets/gfx/texturepacks/" TEXTUREPACK_OUTPUT_JAVAIDS_PACKAGE="org.website.project.texturepacks" TEXTUREPACK_OUTPUT_JAVAIDS_DIRECTORY="../src/org/websi...
Shell
#!/bin/bash NDK_DIRECTORY="/Users/ngramlich/Applications/android/ndk/r8e/" SCRIPT_DIR="$( cd "$( dirname "${0}" )" && pwd )" PROJECT_DIRECTORY=${SCRIPT_DIR}/../ # Run build: pushd ${PROJECT_DIRECTORY} > /dev/null ${NDK_DIRECTORY}ndk-build -j8 # Clean temporary files: rm -rf ${PROJECT_DIRECTORY}obj find . -name gdb...
Shell
#!/bin/bash NDK_DIRECTORY="/Users/ngramlich/Applications/android/ndk/r8e/" SCRIPT_DIR="$( cd "$( dirname "${0}" )" && pwd )" PROJECT_DIRECTORY=${SCRIPT_DIR}/../ # Run build: pushd ${PROJECT_DIRECTORY} > /dev/null ${NDK_DIRECTORY}ndk-build -j8 # Clean temporary files: rm -rf ${PROJECT_DIRECTORY}obj find . -name gdb...
Shell
#!/bin/bash NDK_DIRECTORY="/Users/ngramlich/Applications/android/ndk/r8e/" SCRIPT_DIR="$( cd "$( dirname "${0}" )" && pwd )" PROJECT_DIRECTORY=${SCRIPT_DIR}/../ # Run build: pushd ${PROJECT_DIRECTORY} > /dev/null ${NDK_DIRECTORY}ndk-build -j8 # Clean temporary files: rm -rf ${PROJECT_DIRECTORY}obj find . -name gdb...
Shell
#!/bin/bash NDK_DIRECTORY="/Users/ngramlich/Applications/android/ndk/r8e/" SCRIPT_DIR="$( cd "$( dirname "${0}" )" && pwd )" PROJECT_DIRECTORY=${SCRIPT_DIR}/../ # Run build: pushd ${PROJECT_DIRECTORY} > /dev/null ${NDK_DIRECTORY}ndk-build -j8 # Clean temporary files: rm -rf ${PROJECT_DIRECTORY}obj find . -name gdb...
Shell
#!/bin/sh gen_icon() { file_name=$1 img_size=$2 res_folder=$3 echo Converting misc/$file_name.* to res/$res_folder/$file_name.png convert -resize $img_size -background transparent misc/$file_name.* res/$res_folder/$file_name.png } gen_app_icon() { file_name=$1 gen_icon $file_name 96x96 d...
Shell
#!/bin/sh #hg push https://mp3tunesadam%40gmail.com:vQ6ku6CD5Ej8@mp3tunes.googlecode.com/hg/mp3tunes hg push https://mp3tunesron%40gmail.com:wE6UR3FT7em4@mp3tunes.googlecode.com/hg/mp3tunes
Shell
#!/bin/bash cd mp3tunes rm -rf bin gen ant release /usr/lib/jvm/java-6-sun-1.6.0.14/bin/jarsigner -verbose -keystore ~/my-release-key.keystore -storepass wEluveM1 bin/Login-unsigned.apk latency rm ../mp3tunes-android_*.apk d=`date +20%y%m%d%H%M` filename='../mp3tunes-android_'$d'.apk' zipalign -v 4 bin/Login-un...
Shell
#!/bin/sh MAX_LEN=32 TRUNCATE="sed -e s/\(.\{1,$MAX_LEN\}\).*/\1/" DATE=`LC_ALL=C LANG=C date +%Y%m%d-%H%M%S` BY=`whoami` HOST=`hostname | $TRUNCATE` BYHOST=`echo ${BY}@${HOST} | $TRUNCATE` SVNREV=`svn info | grep \^Revision: | cut -c 11-` svn st | grep \^M >/dev/null [ "$?" -eq "0" ] && SVNREV=${SVNREV}-unclean e...
Shell
#!/bin/sh MAX_LEN=32 TRUNCATE="sed -e s/\(.\{1,$MAX_LEN\}\).*/\1/" DATE=`LC_ALL=C LANG=C date +%Y%m%d-%H%M%S` BY=`whoami` HOST=`hostname | $TRUNCATE` BYHOST=`echo ${BY}@${HOST} | $TRUNCATE` SVNREV=`svn info | grep \^Revision: | cut -c 11-` svn st | grep \^M >/dev/null [ "$?" -eq "0" ] && SVNREV=${SVNREV}-unclean e...
Shell
#!/bin/bash # (C) Milosch Meriac <meriac@bitmanufaktur.de> 2006 UART='/dev/ttyUSB1' SAM7='/usr/local/bin/sam7' if [[ -a $1 ]]; then echo "1. please unplug the USB cable and insert the SAM-BA jumper (Pin 1+2)" echo "2. attach the USB cable" echo "3. wait ten seconds" echo "4. unplug the USB cable" ...
Shell
#!/bin/bash # (C) Milosch Meriac <meriac@bitmanufaktur.de> 2006 # (C) Henryk Plötz <henryk@ploetzli.ch> 2007 #UART='/dev/ttyUSB1' FLASH_FILE=$1 USB_ID='03eb:6124' USB_MODALIAS='usb:v03EBp6124d0110dc02dsc00dp00ic0Aisc00ip00' SAM7='/usr/local/bin/sam7' LSUSB='/usr/sbin/lsusb' echo "Automatic SAM-BA flasher ..." echo ec...
Shell
#!/bin/bash # (C) Milosch Meriac <meriac@bitmanufaktur.de> 2006 UART='/dev/ttyUSB1' SAM7='/usr/local/bin/sam7' if [[ -a $1 ]]; then echo "1. please unplug the USB cable and insert the SAM-BA jumper (Pin 1+2)" echo "2. attach the USB cable" echo "3. wait ten seconds" echo "4. unplug the USB cable" ...
Shell
#!/bin/bash # (C) Milosch Meriac <meriac@bitmanufaktur.de> 2006 # (C) Henryk Plötz <henryk@ploetzli.ch> 2007 #UART='/dev/ttyUSB1' FLASH_FILE=$1 USB_ID='03eb:6124' USB_MODALIAS='usb:v03EBp6124d0110dc02dsc00dp00ic0Aisc00ip00' SAM7='/usr/local/bin/sam7' LSUSB='/usr/sbin/lsusb' echo "Automatic SAM-BA flasher ..." echo ec...
Shell
#!/bin/sh MAX_LEN=32 TRUNCATE="sed -e s/\(.\{1,$MAX_LEN\}\).*/\1/" DATE=`LC_ALL=C LANG=C date +%Y%m%d-%H%M%S` BY=`whoami` HOST=`hostname | $TRUNCATE` BYHOST=`echo ${BY}@${HOST} | $TRUNCATE` SVNREV=`svn info | grep \^Revision: | cut -c 11-` svn st | grep \^M >/dev/null [ "$?" -eq "0" ] && SVNREV=${SVNREV}-unclean e...
Shell
#!/bin/sh MAX_LEN=32 TRUNCATE="sed -e s/\(.\{1,$MAX_LEN\}\).*/\1/" DATE=`LC_ALL=C LANG=C date +%Y%m%d-%H%M%S` BY=`whoami` HOST=`hostname | $TRUNCATE` BYHOST=`echo ${BY}@${HOST} | $TRUNCATE` SVNREV=`svn info | grep \^Revision: | cut -c 11-` svn st | grep \^M >/dev/null [ "$?" -eq "0" ] && SVNREV=${SVNREV}-unclean e...
Shell
#!/bin/sh run () { echo "running: $*" eval $* if test $? != 0 ; then echo "error: while running '$*'" exit 1 fi } run aclocal run libtoolize -f run automake -a run autoconf
Shell
#!/bin/sh run () { echo "running: $*" eval $* if test $? != 0 ; then echo "error: while running '$*'" exit 1 fi } run aclocal run libtoolize -f run automake -a run autoconf
Shell
#!/bin/sh run () { echo "running: $*" eval $* if test $? != 0 ; then echo "error: while running '$*'" exit 1 fi } run aclocal run libtoolize -f run automake -a run autoconf
Shell
#!/bin/sh run () { echo "running: $*" eval $* if test $? != 0 ; then echo "error: while running '$*'" exit 1 fi } run aclocal run libtoolize -f run automake -a run autoconf
Shell
#!/bin/bash echo "Generating ORMlite resources" java -classpath lib/ormlite-core-4.31.jar:lib/ormlite-android-4.31.jar:bin/res:bin/classes com.j256.ormlite.android.apptools.OrmLiteConfigUtil ormlite_config.txt echo "done."
Shell
#!/bin/bash echo "Generating ORMlite resources" java -classpath lib/ormlite-core-4.31.jar:lib/ormlite-android-4.31.jar:bin/res:bin/classes com.j256.ormlite.android.apptools.OrmLiteConfigUtil ormlite_config.txt echo "done."
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/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 # # 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 # Wrapper for compilers which do not understand '-c -o'. scriptversion=2012-10-14.11; # UTC # Copyright (C) 1999-2013 Free Software Foundation, Inc. # Written by Tom Tromey <tromey@cygnus.com>. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General ...
Shell
OPENVPN_PACKAGE_NAME="@PACKAGE_NAME@" OPENVPN_PACKAGE_TARNAME="@PACKAGE_TARNAME@" OPENVPN_PACKAGE_VERSION="@PACKAGE_VERSION@" OPENVPN_PACKAGE_HOST="@host@"
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 # 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 # # 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 route add -net 10.0.0.0 netmask 255.255.255.0 gw $5
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
#!/bin/sh route add -net 10.0.1.0 netmask 255.255.255.0 gw $5
Shell
#!/bin/sh # stop all openvpn processes killall -TERM openvpn
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../../../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../../../include}" CC="${CC:-gcc}" CFLAGS="${CFLAGS:--O2 -Wall -g}" $CC $CPPFLAGS $CFLAGS -fPIC -...
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 # # 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
#!@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/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
#!/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/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 # vi:ts=4:et # Copyright (C) 1996-2011 Markus F.X.J. Oberhumer rm -f *.o liblzo2.a dict.out lzopack.out precomp.out precomp2.out simple.out lzotest.out testmini.out true
Shell
#! /bin/sh # vi:ts=4:et test "X${top_srcdir}" = X && top_srcdir=`echo "$0" | sed 's,[^/]*$,,'`../.. LZO_CFG_FREESTANDING=1 . $top_srcdir/B/generic/build.sh
Shell
#! /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/sh # Get modification time of a file or directory and pretty-print it. scriptversion=2010-08-21.06; # UTC # Copyright (C) 1995, 1996, 1997, 2003, 2004, 2005, 2007, 2009, 2010 # Free Software Foundation, Inc. # written by Ulrich Drepper <drepper@gnu.ai.mit.edu>, June 1995 # # This program is free software; you ...
Shell
#! /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/sh # mkinstalldirs --- make directory hierarchy scriptversion=2009-04-28.21; # UTC # Original author: Noah Friedman <friedman@prep.ai.mit.edu> # Created: 1993-05-16 # Public domain. # # This file is maintained in Automake, please report # bugs to <bug-automake@gnu.org> or send patches to # <automake-patches@g...
Shell
#! /bin/sh # Wrapper for compilers which do not understand `-c -o'. scriptversion=2010-11-15.09; # UTC # Copyright (C) 1999, 2000, 2003, 2004, 2005, 2009, 2010 Free Software # Foundation, Inc. # Written by Tom Tromey <tromey@cygnus.com>. # # This program is free software; you can redistribute it and/or modify # it un...
Shell