code stringlengths 1 1.96M | language stringclasses 1
value |
|---|---|
#!/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-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-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
# 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-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
# 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-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
# 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
# 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
# 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
find . -name "*.h" -o -name "*.c" -o -name "*.cpp" > cscope.files
cscope -bq
| Shell |
#!/bin/bash
find . -name "*.h" -o -name "*.c" -o -name "*.cpp" > cscope.files
cscope -bq
| 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 argumen... | 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
# following... | 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 repository)
# ... | 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 repository)
# ... | 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 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 reposito... | 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 (the path t... | 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 (the path... | 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
# following... | 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 repository)
... | 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 argumen... | 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 ordered
#... | 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 path to this... | 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 (the path... | 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 repository)
... | 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 (the 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 ordered
#... | 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 reposito... | Shell |
#!/bin/bash
# Call: pscompress filename.ps
#
# Will overwrite the input .ps file with a (usually) smaller oen
#
# courtesy Sam Skillman via http://billauer.co.il/blog/2009/07/gimp-xcf-jpg-jpeg-convert-bash-script/
# Modified 07/14/2010 by Adam Ginsburg
# Path to the gimp executable
GIMP='/Applications/Gimp.app/Conten... | Shell |
#!/bin/bash
# Call: pngtoeps filename.png
#
# Converts filename.png to filename.eps and filename.pdf using The Gimp
#
# courtesy Sam Skillman via http://billauer.co.il/blog/2009/07/gimp-xcf-jpg-jpeg-convert-bash-script/
# Path to the gimp executable
GIMP='/Applications/Gimp.app/Contents/Resources/bin/gimp'
{
cat <<... | Shell |
#!/bin/bash
# Call: pngtoeps filename.png
# courtesy Sam Skillman via http://billauer.co.il/blog/2009/07/gimp-xcf-jpg-jpeg-convert-bash-script/
# Path to the gimp executable
GIMP='/Applications/Gimp.app/Contents/Resources/bin/gimp'
{
cat <<EOF
(define (convert-eps-to-png filename outfile)
(let* (
(image (car (g... | Shell |
#!/bin/bash
# Call: pngtoeps filename.png
#
# Converts filename.png to filename.eps and filename.pdf using The Gimp
#
# courtesy Sam Skillman via http://billauer.co.il/blog/2009/07/gimp-xcf-jpg-jpeg-convert-bash-script/
# Path to the gimp executable
GIMP='/Applications/Gimp.app/Contents/Resources/bin/gimp'
{
cat <<... | Shell |
#!/bin/bash
# Call: pscompress filename.ps
#
# Will overwrite the input .ps file with a (usually) smaller oen
#
# courtesy Sam Skillman via http://billauer.co.il/blog/2009/07/gimp-xcf-jpg-jpeg-convert-bash-script/
# Modified 07/14/2010 by Adam Ginsburg
# Path to the gimp executable
GIMP='/Applications/Gimp.app/Conten... | Shell |
#!/bin/bash
# Call: pngtoeps filename.png
# courtesy Sam Skillman via http://billauer.co.il/blog/2009/07/gimp-xcf-jpg-jpeg-convert-bash-script/
# Path to the gimp executable
GIMP='/Applications/Gimp.app/Contents/Resources/bin/gimp'
{
cat <<EOF
(define (convert-eps-to-png filename outfile)
(let* (
(image (car (g... | Shell |
#!/bin/bash
file="$1"
line="$2"
debug="$3"
echo file: $file
echo line: $line
echo debug: $debug
for server in `mvim --serverlist`
do
if [[ $debug ]] ; then echo mvim --servername $server --remote-expr "WhichTab('$file')"; fi
foundfile=`mvim --servername $server --remote-expr "WhichTab('$file')"`
if [[ $... | Shell |
#!/bin/sh
# set install path
HOMEDIR=~
PREFIX="$HOMEDIR/bin/"
VIMDIR="$HOMEDIR/.vim/"
# get relevant scripts
echo "Getting macvim-load-line from googlecode repository"
curl -s http://agpy.googlecode.com/svn/trunk/macvim-skim/macvim-load-line > ${PREFIX}/macvim-load-line
chmod +x ${PREFIX}/macvim-load-line
echo "Getti... | Shell |
#!/bin/sh
# set install path
HOMEDIR=~
PREFIX="$HOMEDIR/bin/"
VIMDIR="$HOMEDIR/.vim/"
# get relevant scripts
echo "Getting macvim-load-line from googlecode repository"
curl -s http://agpy.googlecode.com/svn/trunk/macvim-skim/macvim-load-line > ${PREFIX}/macvim-load-line
chmod +x ${PREFIX}/macvim-load-line
echo "Getti... | Shell |
#!/bin/bash
file="$1"
line="$2"
debug="$3"
echo file: $file
echo line: $line
echo debug: $debug
for server in `mvim --serverlist`
do
if [[ $debug ]] ; then echo mvim --servername $server --remote-expr "WhichTab('$file')"; fi
foundfile=`mvim --servername $server --remote-expr "WhichTab('$file')"`
if [[ $... | Shell |
#!/bin/bash
# http://stackoverflow.com/questions/192249/how-do-i-parse-command-line-arguments-in-bash
# :r = -r has no options
# a: = -a takes an option
python /Users/adam/bin/pstopng.py $*
#doremove=0
#multipage=0
#while getopts :r:m OPT; do
# case "$OPT" in
# r) doremove=1 ;;
# m) multipage=1 ;;
... | Shell |
#!/bin/bash
# Wrapper to mosaic a *subset* of images in the current directory
#
# Usage:
# mGetHdr template_fitsfile.fit mosaic.hdr
# montage outfile=l089_reference_montage.fits 0*_indiv13pca*_map01.fits combine=median &
#
# Keyword parameters:
# combine - 'median', 'average', or 'sum'
# header - Filename of fits... | Shell |
#!/bin/bash
# http://stackoverflow.com/questions/192249/how-do-i-parse-command-line-arguments-in-bash
# :r = -r has no options
# a: = -a takes an option
python /Users/adam/bin/pstopng.py $*
#doremove=0
#multipage=0
#while getopts :r:m OPT; do
# case "$OPT" in
# r) doremove=1 ;;
# m) multipage=1 ;;
... | Shell |
#!/bin/bash
# Wrapper to mosaic a *subset* of images in the current directory
#
# Usage:
# mGetHdr template_fitsfile.fit mosaic.hdr
# montage outfile=l089_reference_montage.fits 0*_indiv13pca*_map01.fits combine=median &
#
# Keyword parameters:
# combine - 'median', 'average', or 'sum'
# header - Filename of fits... | Shell |
appcfg.py upload_data --config_file=bulkloader.yaml --filename=users.csv --kind=User --url=http://agree-app.appspot.com/_ah/remote_api --application=s~agree-app | Shell |
#! /bin/sh
find . -iname '*.[oa]' -exec \rm -f {} \;
find . -iname '*.ppm' -exec \rm -f {} \;
find . -iname '*~' -exec \rm -f {} \;
find . -iname 'gamma.*' -exec \rm -f {} \;
find . -iname Debug -exec \rm -rf {} \;
find . -iname Release -exec \rm -rf {} \;
find . -iname '*.exe' -exec \rm -rf {} \;
find . -ina... | Shell |
# autogen.sh
#
# invoke the auto* tools to create the configureation system
# build aclocal.m4
aclocal
# build the configure script
autoconf
# set up libtool
libtoolize --force
# invoke automake
automake --foreign --add-missing
# and finally invoke our new configure
./configure $*
# end
| Shell |
# autogen.sh
#
# invoke the auto* tools to create the configuration/build system
# build aclocal.m4
aclocal
# build config.h
autoheader
# build the configure script
autoconf
# set up libtool
libtoolize --force
# invoke automake
automake --foreign --add-missing --ignore-deps
# and finally invoke... | Shell |
#! /bin/sh
find . -iname '*.[oa]' -exec \rm -f {} \;
find . -iname '*.ppm' -exec \rm -f {} \;
find . -iname '*~' -exec \rm -f {} \;
find . -iname 'gamma.*' -exec \rm -f {} \;
find . -iname Debug -exec \rm -rf {} \;
find . -iname Release -exec \rm -rf {} \;
find . -iname '*.exe' -exec \rm -rf {} \;
find . -ina... | Shell |
#!/bin/sh
closure.sh --js brps.dev.js --js_output_file brps.js
closure.sh --js gas.dev.js --js_output_file gas.js
| Shell |
# LTA : tu pourrais au moins prendre un parametre a la ligne de commande :-)
# gougnafier :)
workspaceDir=..
mvn install:install-file -DgroupId=org.apache.xmlbeans -DartifactId=xbeans -Dversion=2.5.0 -Dpackaging=jar -Dfile=$workspaceDir/ThirdParty/xmlBeans/lib/xbean.jar -DpomFile=$workspaceDir/ThirdParty/poms/pomXbe... | 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/bash
# not part of the official test suite (yet); just some q&d testing
# to be run from ~/gitolite as ./$0
set -e
exec 3>&2
exec > /dev/null
exec 2> /dev/null
print2() { echo -n "$@" >&3; }
say2() { echo "$@" >&3; }
die() { echo FATAL: "$@" >&3; exit 1; }
export od=$PWD
export tmp=$(mktemp -d)
echo $tmp >&3... | Shell |
#!/bin/bash
set -e
hosts="frodo sam gollum"
mainhost=frodo
# setup software
bd=`gitolite query-rc -n GL_BINDIR`
rm -rf /tmp/g3/src
cp -a $bd /tmp/g3/src
chmod -R go+rX /tmp/g3
# setup symlinks in frodo, sam, and gollum's accounts
for h in $hosts
do
sudo -u $h -i bash -c "rm -rf *.pub bin .ssh projects.list repos... | Shell |
#!/bin/bash
# not part of the official test suite (yet); just some q&d testing
# to be run from ~/gitolite as ./$0
set -e
exec 3>&2
exec > /dev/null
exec 2> /dev/null
print2() { echo -n "$@" >&3; }
say2() { echo "$@" >&3; }
die() { echo FATAL: "$@" >&3; exit 1; }
export od=$PWD
export tmp=$(mktemp -d)
echo $tmp >&3... | Shell |
#!/bin/bash
# not part of the official test suite (yet); just some q&d testing
# to be run from ~/gitolite as ./$0
set -e
exec 3>&2
exec > /dev/null
exec 2> /dev/null
print2() { echo -n "$@" >&3; }
say2() { echo "$@" >&3; }
die() { echo FATAL: "$@" >&3; exit 1; }
export od=$PWD
export tmp=$(mktemp -d)
echo $tmp >&3... | Shell |
#!/bin/bash
# not part of the official test suite (yet); just some q&d testing
# to be run from ~/gitolite as ./$0
set -e
exec 3>&2
exec > /dev/null
exec 2> /dev/null
print2() { echo -n "$@" >&3; }
say2() { echo "$@" >&3; }
die() { echo FATAL: "$@" >&3; exit 1; }
export od=$PWD
export tmp=$(mktemp -d)
echo $tmp >&3... | Shell |
#!/bin/bash
# ----------------------------------------------------------------------
# please do not even LOOK at this file without reading doc/http.mkd
# ----------------------------------------------------------------------
die() { echo "$@"; exit 1; }
# scare the sh*t out of people who run it blindly
[ -f /tmp/gi... | Shell |
#!/bin/bash
die() { echo "$@"; exit 1; }
# git clone `url u1 r1`
url() {
echo http://$1:$1@localhost/git/$2.git
}
# `cmd sitaram info`
cmd() {
c="curl http://$1:$1@localhost/git"
shift
c="$c/$1"
shift
if [ -n "$1" ]
then
c="$c?$1"
shift
fi
while [ -n "$1" ]
do... | Shell |
#!/bin/bash
# author: damien.nozay@gmail.com
# Given a username,
# Provides a space-separated list of groups that the user is a member of.
#
# see http://gitolite.com/gitolite/conf.html#ldap
# GROUPLIST_PGM => /path/to/ldap_groups.sh
ldap_groups() {
username=$1;
# this relies on openldap / pam_ldap to be con... | Shell |
#!/bin/sh
export GL_BYPASS_ACCESS_CHECKS=1
git push "$@"
| Shell |
#!/bin/sh
# Usage: ssh git@host sudo <user> <command> <arguments>
#
# Let super-user run commands as any other user. "Super-user" is defined as
# "have write access to the gitolite-admin repo".
die() { echo "$@" >&2; exit 1; }
usage() { perl -lne 'print substr($_, 2) if /^# Usage/../^$/' < $0; exit 1; }
[ -z "$2"... | Shell |
#!/bin/sh
# ----------------------------------------------------------------------
# ADMINISTRATOR NOTES:
# ----------------------------------------------------------------------
# - set TRASH_CAN in the rc if you don't like the default. It should be
# relative to GL_REPO_BASE or an absolute value. It should also... | Shell |
#!/bin/bash
# Usage: ssh git@host create <repo>
#
# Create wild repo.
die() { echo "$@" >&2; exit 1; }
usage() { perl -lne 'print substr($_, 2) if /^# Usage/../^$/' < $0; exit 1; }
[ -z "$1" ] && usage
[ -z "$2" ] || usage
[ "$1" = "-h" ] && usage
[ -z "$GL_USER" ] && die GL_USER not set
# -----------------------... | Shell |
#!/bin/sh
# Usage: ssh git@host symbolic-ref <repo> <arguments to git-symbolic-ref>
#
# allow 'git symbolic-ref' over a gitolite connection
# Security: remember all arguments to commands must match a very conservative
# pattern. Once that is assured, the symbolic-ref command has no security
# related side-effects... | Shell |
#!/bin/sh
# Usage: ssh git@host fork <repo1> <repo2>
#
# Forks repo1 to repo2. You must have read permissions on repo1, and create
# ("C") permissions for repo2, which of course must not exist.
#
# A fork is functionally the same as cloning repo1 to a client and pushing it
# to a new repo2. It's just a little mor... | Shell |
#!/bin/sh
# this is probably the *fastest* git-daemon update possible.
# ----------------------------------------------------------------------
# skip if arg-1 is POST_CREATE and no arg-3 (user name) exists; this means
# it's been triggered by a *normal* (not "wild") repo creation, which in turn
# means a POST_COMPIL... | Shell |
#!/bin/sh
# For normal (not "wild") repos, gitolite v3 sets 'gitweb.description' instead
# of putting the text in the "description" file. This is easier because it
# just goes with the flow of setting config variables; nothing special needs
# to be done for the description.
# But this only works for gitweb, not for ... | Shell |
#!/bin/sh
# Update git-daemon and gitweb access using 'option' lines instead of special
# usernames.
# To use:
# * enable this combined updater in the rc file by removing the other two
# update-*-access-list entries and inserting this one instead. (This would
# be in the POST_CREATE and POST_COMPILE lists).
# ... | Shell |
#!/bin/bash
# split multi-key files into separate keys like ssh-authkeys likes
# WHY
# ---
#
# Yeah I wonder that too, when it's so much more maintainable to keep the damn
# keys as sitaram@home.pub and sitaram@work.pub or such. But there's no
# accounting for tastes, and some old fogies apparently want to put all... | Shell |
#!/bin/sh
# this is literally the simplest gitweb update possible. You are free to add
# whatever you want and contribute it back, as long as it is upward
# compatible.
# ----------------------------------------------------------------------
# delete the 'description' file that 'git init' created if this is run from... | Shell |
#!/bin/sh
# manage local, gitolite-controlled, copies of read-only upstream repos.
repo=$2
url=$(gitolite git-config $repo gitolite-options.upstream.url)
[ -z "$url" ] && exit 0 # exit if no url was specified
cd $GL_REPO_BASE/$repo.git || exit 1
[ "$1" != "fetch" ] && {
nice=$(gitolite git-config $repo git... | Shell |
#!/bin/bash
# quick and dirty program to background any of the triggers programs that are
# taking too long. To use, just replace a line like
# 'post-compile/update-gitweb-access-list',
# with
# 'bg post-compile/update-gitweb-access-list',
# We dump output to a file in the log directory but please keep i... | Shell |
#!/bin/sh
# this is a wee bit expensive in terms of forks etc., compared to doing it in
# perl, but I wanted to show how *easy* it actually is now. And really,
# you'll only notice if you access this repo like a hundred times a minute or
# something so don't sweat it.
# given a repo and a user, check if option('part... | Shell |
#!/bin/sh
n=$1
[ "$n" = "PRE_GIT" ] && n=10
renice -n $n $GL_TID >/dev/null
| Shell |
#!/bin/sh
# POST_CREATE trigger to set up default set of perms for a new wild repo
# ----------------------------------------------------------------------
# skip if arg-1 is POST_CREATE and no arg-3 (user name) exists (i.e., it's not
# a wild repo)
[ "$1" = "POST_CREATE" ] && [ -z "$3" ] && exit 0;
[ "$4" = "R" ] ||... | Shell |
#!/bin/sh
# gitolite VREF to count votes before allowing pushes to certain branches.
# This approximates gerrit's voting (but it is SHA based; I believe Gerrit is
# more "changeset" based). Here's how it works:
# - A normal developer "bob" proposes changes to master by pushing a commit to
# "pers/bob/master", the... | Shell |
#!/bin/sh
# push updated branches back to the "main" repo.
# This must be run as the *last* VREF, though it doesn't matter what
# permission you give to it
die() { echo "$@" >&2; exit 1; }
repo=$GL_REPO
user=$GL_USER
ref=$1 # we're running like an update hook
old=$2
new=$3
# never send any STDOUT back, to... | Shell |
#!/bin/sh
# gitolite VREF to count number of changed/new files in a push
# see gitolite docs for what the first 7 arguments mean
# inputs:
# arg-8 is a number
# arg-9 is optional, and can be "NEWFILES"
# outputs (STDOUT)
# arg-7 if the number of changed (or new, if arg-9 supplied) files is > arg-8
# otherwis... | Shell |
#!/bin/sh
echo "Content-Type: text/plain"
echo
echo $QUERY_STRING
| 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 "This is shell script CGI."
| 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-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
# 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-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-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-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-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
# 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-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
# 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-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
# 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
# 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.