code stringlengths 1 1.96M | language stringclasses 1
value |
|---|---|
#!/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
################################################################################
#
# Bake is a shell script for running CakePHP bake script
# PHP versions 4 and 5
#
# CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
# Copyright 2005-2011, Cake Software Foundation, Inc.
#
# Licensed under The ... | Shell |
#!/bin/bash
################################################################################
#
# Bake is a shell script for running CakePHP bake script
# PHP versions 4 and 5
#
# CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
# Copyright 2005-2011, Cake Software Foundation, Inc.
#
# Licensed under The ... | 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 ... | Shell |
#!/bin/sh
# See here for more info:
# http://www.ameir.net/blog/archives/27-Free-mail-relay-servers.html
apt-get update && apt-get -y install postfix-tls
postconf -e 'relayhost = [smtp.gawab.com]:587'
postconf -e 'smtp_sasl_auth_enable = yes'
postconf -e 'smtp_sasl_password_maps = hash:/etc/postfix/sasl... | Shell |
#!/bin/sh
# See here for more info:
# http://www.ameir.net/blog/archives/27-Free-mail-relay-servers.html
apt-get update && apt-get -y install postfix-tls
postconf -e 'relayhost = [smtp.gawab.com]:587'
postconf -e 'smtp_sasl_auth_enable = yes'
postconf -e 'smtp_sasl_password_maps = hash:/etc/postfix/sasl... | Shell |
#! /bin/bash
# Ameir Abdeldayem
# http://www.ameir.net
# You are free to modify and distribute this code,
# so long as you keep my name and URL in it.
# your MySQL server's name
SERVER=`hostname -f`
# directory to backup to
BACKDIR=~/backups/mysql
# date format that is appended to filename
DATE=`date ... | Shell |
#! /bin/bash
# Ameir Abdeldayem
# http://www.ameir.net
# You are free to modify and distribute this code,
# so long as you keep my name and URL in it.
# your MySQL server's name
SERVER=`hostname -f`
# directory to backup to
BACKDIR=~/backups/mysql
# date format that is appended to filename
DATE=`date ... | Shell |
#! /bin/bash
# See the following link for more info:
# http://www.ameir.net/blog/archives/17-LDAP-Authentication-PAMNSS-Using-Debian-or-Ubuntu-Bash-Script-v2.html
# This script will install an LDAP authentication client for
# Debian-based systems. It relies on apt-get for package
# installation. If you are using... | Shell |
#! /bin/bash
# See the following link for more info:
# http://www.ameir.net/blog/archives/17-LDAP-Authentication-PAMNSS-Using-Debian-or-Ubuntu-Bash-Script-v2.html
# This script will install an LDAP authentication client for
# Debian-based systems. It relies on apt-get for package
# installation. If you are using... | Shell |
#!/bin/bash
# GWMover: WAN/Gateway failover
# Pings gateway and switches to backup line when it goes down.
# Reverts to primary line when gateway becomes accessible.
# Modified version of script found at:
# http://www.howtoforge.com/forums/showthread.php?p=55402#post55402
#
# Last modified: August 2, 2007
# Ameir A... | Shell |
#!/bin/bash
# GWMover: WAN/Gateway failover
# Pings gateway and switches to backup line when it goes down.
# Reverts to primary line when gateway becomes accessible.
# Modified version of script found at:
# http://www.howtoforge.com/forums/showthread.php?p=55402#post55402
#
# Last modified: August 2, 2007
# Ameir A... | Shell |
function go {
server_list='.go.conf'
if [ -f $server_list ]; then
server_alias=$1
grep=`grep $1 $server_list`
results=`echo "$grep" | wc -l` # needs to be 1 for single result; anything more means the search term is ambiguous
if [ $results != 1 ]; then
echo "Y... | Shell |
#!/bin/bash
. $4
#----------------------------------------------------
# This script will sync an SVN repo to a remote FTP
# server. It is designed to be used as a post-commit
# hook. More documentation to come.
#
# - Ameir Abdeldayem
#
#-----------------------------------------------------
# End of config option... | Shell |
#!/bin/bash
. $4
#----------------------------------------------------
# This script will sync an SVN repo to a remote FTP
# server. It is designed to be used as a post-commit
# hook.
#
# - Ameir Abdeldayem
# http://www.ameir.net
# You are free to use this script as you please so long
# as you keep my name and URL i... | Shell |
#!/bin/bash
. $4
#----------------------------------------------------
# This script will sync an SVN repo to a remote FTP
# server. It is designed to be used as a post-commit
# hook.
#
# - Ameir Abdeldayem
# http://www.ameir.net
# You are free to use this script as you please so long
# as you keep my name and URL i... | Shell |
#!/bin/bash
. $4
#----------------------------------------------------
# This script will sync an SVN repo to a remote FTP
# server. It is designed to be used as a post-commit
# hook. More documentation to come.
#
# - Ameir Abdeldayem
#
#-----------------------------------------------------
# End of config option... | Shell |
#!/bin/bash
TEMP="/formDef.json"
if [ "$1" ]; then
for f in "$@"
do
TEMP2="${f%/*.xlsx}"
if [ -f $TEMP2$TEMP ]; then
rm $TEMP2$TEMP
fi
base64 $f | /System/Library/Frameworks/JavaScriptCore.framework/Versions/A/Resources/jsc macGenConverter.js >> $TEMP2$TEMP
d... | Shell |
#!/bin/bash
rm -R -v /Library/WebServer/Documents/FORM
mkdir -p /Library/WebServer/Documents/FORM
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
echo $DIR
cp -a -v -R ${DIR}/form-files/ /Library/WebServer/Documents/FORM
rm /Library/WebServer/Documents/FORM/copy.bat
rm /Library/WebServer/Documents/FORM/copyMnt.... | Shell |
cp Tests/sharpsnmplib.tests.snk SharpSnmpLib/sharpsnmplib.snk
| Shell |
cd Browser/bin/Debug
mono Browser.exe
| Shell |
xbuild SharpSnmpLib.md.sln
| Shell |
#!/bin/sh
#
# smistrip --
#
# Extract MIB modules from text files, like RFCs or I-Ds.
#
# This is variant of smistrip from libsmi-0.2, modified to be somewhat
# more aggressive in suppressing blank lines, and support the -x option.
#
# Copyright (c) 1999 Frank Strauss, Technical University of Braunschweig.
# Modified b... | Shell |
#!/bin/sh
# Usage: mibfetch [ -d outdir ] host directory rfc [mibs]
#
# If "rfc" contains a "." it is expected to be a complete file name,
# otherwise it is assumed to be just the rfc number.
# If "mibs" is specified, it is a ":" separated list of mibs to extract,
# otherwise all mibs are extracted.
#
# The script fet... | Shell |
cd Compiler/bin/Debug
mono Compiler.exe
| Shell |
cd snmpd/bin/Debug
echo "need to run as root for port smaller than 1024"
mono snmpd.exe
| Shell |
xbuild SharpSnmpLib.md.sln /p:Configuration=Release
| Shell |
#!/bin/bash
[ -n "$1" ] && cd $1
git rev-list HEAD | sort > config.git-hash
LOCALVER=`wc -l config.git-hash | awk '{print $1}'`
if [ $LOCALVER \> 1 ] ; then
VER=`git rev-list origin/master | sort | join config.git-hash - | wc -l | awk '{print $1}'`
VER_DIFF=$(($LOCALVER-$VER))
echo "#define X265_REV $VER"
... | Shell |
#!/bin/bash
COMPILER="/Applications/Developer Tools/compiler.jar"
SOURCE=./src/jquery.autocomplete.js
TARGET=./src/jquery.autocomplete.min.js
echo "Minifying ${SOURCE} to ${TARGET} ... "
if `java -jar "${COMPILER}" "${SOURCE}" > "${TARGET}"`
then
echo "Minify succeeded."
else
echo "Minify failed."
rm "${... | Shell |
#!/bin/bash
# This script creates a new release of SciTools
# Make sure we have the current version
echo '--- Synchronizing repository'
sleep 1
hg pull -u
hg commit
# Update version numbers
echo '--- Update version number in ChangeLog'
sleep 1
emacs -nw ChangeLog
echo '--- Update version number in lib/scitools/__init... | Shell |
#!/bin/sh
rm -rf api-sphinx/_build easyviz/tmp_* easyviz/*~ easyviz/sphinx-rootdir | Shell |
#!/bin/sh
rm -rf *~ tmp* *.dst.txt sphinx-rootdir *.tex *.rst *.gwiki *.log *.aux *.dvi *.out
| Shell |
#!/bin/bash -x
# Create Easyviz documentation.
# clean:
rm -rf tmp_*
# Make .p.py -> .py files and make sure most recent documentation of
# Easyviz is in the __init__.py file:
# Prepare Doconce files and filter them to various formats:
cp easyviz.do.txt tmp_easyviz.do.txt
doconce format HTML tmp_easyviz.do.txt
docon... | Shell |
#!/bin/sh
# Make sure latest scitools is installed
this_dir=`pwd`
version=`python -c "import scitools as st; print st.version"`
# make easyviz doc with reST/Sphinx format:
doconce insertdocstr sphinx ../easyviz
cd ../../../lib/scitools
doconce insertdocstr sphinx .
cd $this_dir
rm -rf _build/ _static/ _templates/ co... | Shell |
#!/bin/sh
rm -rf _build *~ figs | Shell |
#!/bin/bash -x
this_dir=`pwd`
# make easyviz doc with reST format:
cd ../../../lib/scitools
doconce insertdocstr rst .
cd $this_dir
make html
rm ../sphinx/html/*
cp -r _build/html/* ../sphinx-html/
# run easyviz doc with plain again (for pydoc):
cd ../../../lib/scitools
doconce insertdocstr plain .
cd $this_dir
ls _... | Shell |
#!/bin/sh
rm -f *~ tmp* movie.gif movie.avi movie.mpeg | Shell |
#!/bin/sh
scitools pyreport -l -e -t pdf -o report_mpl -a '0.05 9' demo_pyreport.py
scitools pyreport -l -e -t html -o report_mpl -a '0.05 9' demo_pyreport.py
scitools pyreport -l -e -t pdf -o report_evz -a '0.05 9 easyviz' demo_pyreport.py
scitools pyreport -l -e -t html -o report_evz -a '0.05 9 easyviz' demo_pyrepo... | Shell |
#!/bin/sh
python _movie1.py
cp tmp.dat test1.r
cp tmp.dat test1.v
# make a little change in output:
scitools subst 46 35 test1.v
# for floatdiff:
cat > test1.vd << EOF
## field 1
151
EOF
cat > test1.rd << EOF
## field 1
151
EOF
cat test1.v >> test1.vd
cat test1.r >> test1.rd
| Shell |
#!/bin/sh
# test scitools regression|floatdiff|subst|file2interactive|ps2mpeg|profiler
rm -f *.ppm *.eps *.png
# run a scitools regression test in test1.verify:
cp _test1.verify-test test1.verify
scitools regression verify test1.verify
cat verify_log_details.htm >> verify1.v
rm -f test1.verify # don't use this for a ... | Shell |
#!/bin/sh
rm -f tmp* _test1* verify1.v | Shell |
#!/bin/bash
# Demo of the bin/scitools script.
# See test/verify1.verify for a more complete regression test of bin/scitools.
# subst:
# first make a file where we can perform a substitution:
cat > tmp1.py <<EOF
# some comment
def f(x):
return 2
compute_formula1(x, y, z)
if not first:
compute_formula2(a, b)... | Shell |
#!/bin/bash
#===================================================================================
#
# FILE: amarok_now_playing
#
# USAGE: amarok_now_playing [ > logfile]
#
# DESCRIPTION: Changes your status message in pidgin and/or
# Kopete to the song you are currently listening to in Amaro... | Shell |
#!/bin/bash
#===================================================================================
#
# FILE: amarok_now_playing
#
# USAGE: amarok_now_playing [ > logfile]
#
# DESCRIPTION: Changes your status message in pidgin and/or
# Kopete to the song you are currently listening to in Amaro... | 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
mkdir -p target
svn export src target/temp
tar czf target/ambulance-app.w2p -C target/temp .
echo "application built"
| Shell |
#!/bin/sh
mkdir -p target
svn export src target/temp
tar czf target/ambulance-app.w2p -C target/temp .
echo "application built"
| Shell |
#!/bin/sh
mkdir -p target
svn export src target/temp
tar czf target/ambulance-app.w2p -C target/temp .
echo "application built"
| Shell |
#!/bin/sh
mkdir -p target
svn export src target/temp
tar czf target/ambulance-app.w2p -C target/temp .
echo "application built"
| Shell |
#!/bin/bash
#
# Starts a basic web server on the port specified.
#
# ./serve.sh 3000 -> http://localhost:3000
#
# Copyright 2012 Eric Bidelman <ebidel@gmail.com>
port=$1
if [ $# -ne 1 ]
then
port=8000
fi
open http://localhost:$port/template.html && python -m SimpleHTTPServer $port;
| Shell |
#!/bin/sh
if [ $# -ne 1 ]; then
echo "Invalid args" >&2
exit 1
fi
case $1 in
add|ADD)
/opt/bin/nvidia-smi > /dev/null
;;
remove|REMOVE)
rm -f /dev/nvidia*
;;
esac
exit 0
| Shell |
#!/bin/sh
/opt/bin/nvidia-settings --load-config-only
| Shell |
#!/bin/sh
/opt/bin/nvidia-settings --load-config-only
| Shell |
#!/bin/sh
if [ $# -ne 1 ]; then
echo "Invalid args" >&2
exit 1
fi
case $1 in
add|ADD)
/opt/bin/nvidia-smi > /dev/null
;;
remove|REMOVE)
rm -f /dev/nvidia*
;;
esac
exit 0
| Shell |
#!/bin/bash
sed_escape() {
echo "$1" | sed -e 's/\(\/\|\\\|&\)/\\&/g'
}
if [ "$1" = "--help" ]; then
echo "kernel module repsitory generator"
exit 1
fi
OUTDIR="$1"
URL="$2"
set -e
shopt -s nullglob
[[ ${URL} =~ ^kmod://(.*)$ ]]
PKGDIR="${BASH_REMATCH[1]}"
KERNELS=""
if [ -d /lib/modules ]; then
cd /lib/modul... | Shell |
#!/bin/bash
sed_escape() {
echo "$1" | sed -e 's/\(\/\|\\\|&\)/\\&/g'
}
if [ "$1" = "--help" ]; then
echo "kernel module repsitory generator"
exit 1
fi
OUTDIR="$1"
URL="$2"
set -e
shopt -s nullglob
[[ ${URL} =~ ^kmod://(.*)$ ]]
PKGDIR="${BASH_REMATCH[1]}"
KERNELS=""
if [ -d /lib/modules ]; then
cd /lib/modul... | Shell |
#!/bin/bash
GPG_CONFIG=/usr/share/gentoo-syncer/gpg
MY_TMPDIR=/var/tmp/gentoo-syncer
set -e
shopt -s nullglob
error() {
echo "Error: $*"
cleanup
}
cleanup() {
rm -rf "$MY_TMPDIR"/*
}
trap "error Signal caugth" SIGINT SIGTERM
trap "cleanup" EXIT
if [ "$1" = "--help" ]; then
echo "Us... | Shell |
#!/bin/bash
GPG_CONFIG=/usr/share/gentoo-syncer/gpg
MY_TMPDIR=/var/tmp/gentoo-syncer
set -e
shopt -s nullglob
error() {
echo "Error: $*"
cleanup
}
cleanup() {
rm -rf "$MY_TMPDIR"/*
}
trap "error Signal caugth" SIGINT SIGTERM
trap "cleanup" EXIT
if [ "$1" = "--help" ]; then
echo "Us... | 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
./make_build.rb
make && ./editor
| Shell |
#! /bin/sh
./make_build.rb
make && ./editor
| 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 |
#!/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/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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.