code
stringlengths
1
1.96M
language
stringclasses
1 value
################################################################################ # There are many resources online to help you make your shell how you want it. # http://grml.org/zsh/zsh-lovers.html has a good compilation of many resources, # including many of the ones cited below. man zsh has a very complete and well #...
Shell
#!/usr/bin/env bash echo "This script will add lines in your zshrc, zshenv, vimrc, hgrc, and login to source the files in this repository. That way, you can have computer specific settings (for instance, if you need a command to behave differently on your ubuntu machine than on your mac) in your ~/.zshrc and settings ...
Shell
# use zsh instead of csh if we are using an interactive shell and zsh exists # Checking that the prompt is defined is necessary because otherwise, the bootup # shell when physically logging in to a cluster computer won't boot. # CUSTOMIZE(shell) if ( $?prompt && -f /bin/zsh) exec /bin/zsh -l
Shell
#!/bin/bash # This converts hole.avi to hole.amv # by Tom # # NOTE !!! Make sure you've run ./srcprepare.sh and compiled ffmpeg (cd ffmpeg;./configure;make) # Use default ADPCM_IMA_WAV codec and AVI format # fmpeg/ffmpeg -i hole.avi -f avi -intra -r 16 -vcodec mjpeg -s 160x120 -ac 1 -ar 22050 -acodec adpcm_ima_wav hol...
Shell
#!/bin/bash # This converts hole.avi to hole.amv # by Tom # # NOTE !!! Make sure you've run ./srcprepare.sh and compiled ffmpeg (cd ffmpeg;./configure;make) # Use default ADPCM_IMA_WAV codec and AVI format # fmpeg/ffmpeg -i hole.avi -f avi -intra -r 16 -vcodec mjpeg -s 160x120 -ac 1 -ar 22050 -acodec adpcm_ima_wav hol...
Shell
#!/bin/sh # # FFmpeg configure script # # Copyright (c) 2000, 2001, 2002 Fabrice Bellard # Copyright (c) 2005-2006 Diego Biurrun # Copyright (c) 2005-2006 Mans Rullgard # # make sure we are running under a compatible shell # try to make this part work with most shells try_exec(){ echo "Trying shell $1" type "...
Shell
#!/bin/sh svn_revision=`cd "$1" && LC_ALL=C svn info 2> /dev/null | grep Revision | cut -d' ' -f2` test $svn_revision || svn_revision=`cd "$1" && grep revision .svn/entries 2>/dev/null | cut -d '"' -f2` test $svn_revision || svn_revision=`cd "$1" && sed -n -e '/^dir$/{n;p;q}' .svn/entries 2>/dev/null` test $svn_revisi...
Shell
#!/bin/sh svn_revision=`cd "$1" && LC_ALL=C svn info 2> /dev/null | grep Revision | cut -d' ' -f2` test $svn_revision || svn_revision=`cd "$1" && grep revision .svn/entries 2>/dev/null | cut -d '"' -f2` test $svn_revision || svn_revision=`cd "$1" && sed -n -e '/^dir$/{n;p;q}' .svn/entries 2>/dev/null` test $svn_revisi...
Shell
#!/bin/sh # # automatic regression test for ffmpeg # # #set -x # Even in the 21st century some diffs do not support -u. diff -u "$0" "$0" > /dev/null 2>&1 if [ $? -eq 0 ]; then diff_cmd="diff -u" else diff_cmd="diff" fi diff -w "$0" "$0" > /dev/null 2>&1 if [ $? -eq 0 ]; then diff_cmd="$diff_cmd -w" fi set -e ...
Shell
#!/bin/bash # Even in the 21st century some diffs are not supporting -u. diff -u $0 $0 > /dev/null 2>&1 if [ $? -eq 0 ]; then diff_cmd="diff -u" else diff_cmd="diff" fi # Make sure that the data directory exists mkdir -p tests/data #perl -e 'chomp($wd = `pwd`); print map { s!tests/data/!!; "<Stream $_>\nFile $wd/...
Shell
#!/bin/sh LC_ALL=C export LC_ALL datadir="tests/data" logfile="$datadir/seek.regression" reffile="$1" list=`ls tests/data/a-* tests/data/b-* | sort` rm -f $logfile for i in $list ; do echo ---------------- >> $logfile echo $i >> $logfile echo $i | grep -v 'b-libav[01][0-9][.]' 2> /dev/null && tests/...
Shell
#!/bin/sh # # automatic regression test for ffmpeg # # #set -x # Even in the 21st century some diffs do not support -u. diff -u "$0" "$0" > /dev/null 2>&1 if [ $? -eq 0 ]; then diff_cmd="diff -u" else diff_cmd="diff" fi diff -w "$0" "$0" > /dev/null 2>&1 if [ $? -eq 0 ]; then diff_cmd="$diff_cmd -w" fi set -e ...
Shell
#!/bin/bash # Even in the 21st century some diffs are not supporting -u. diff -u $0 $0 > /dev/null 2>&1 if [ $? -eq 0 ]; then diff_cmd="diff -u" else diff_cmd="diff" fi # Make sure that the data directory exists mkdir -p tests/data #perl -e 'chomp($wd = `pwd`); print map { s!tests/data/!!; "<Stream $_>\nFile $wd/...
Shell
#!/bin/sh LC_ALL=C export LC_ALL datadir="tests/data" logfile="$datadir/seek.regression" reffile="$1" list=`ls tests/data/a-* tests/data/b-* | sort` rm -f $logfile for i in $list ; do echo ---------------- >> $logfile echo $i >> $logfile echo $i | grep -v 'b-libav[01][0-9][.]' 2> /dev/null && tests/...
Shell
#!/bin/sh tr '\n' '\001' | sed 's/\x01\x01/\x01 \x01/g' | sed 's/\x01\([^-+ @]\)/ \1/g' | tr '\001' '\n'
Shell
#!/bin/sh sed 's/unsigned//g' |\ sed 's/enum//g' |\ egrep '^ *(int|float|double|AVRational|char *\*) *[a-zA-Z_0-9]* *;' |\ sed 's/^ *\([^ ]*\)[ *]*\([^;]*\);.*$/{"\2", NULL, OFFSET(\2), FF_OPT_TYPE_\U\1, DEFAULT, \1_MIN, \1_MAX},/' |\ sed 's/AVRATIONAL_M/INT_M/g'|\ sed 's/TYPE_AVRATIONAL/TYPE_RATIONAL/g'|\ sed 's...
Shell
#!/bin/sh sed 's/unsigned//g' |\ sed 's/enum//g' |\ egrep '^ *(int|float|double|AVRational|char *\*) *[a-zA-Z_0-9]* *;' |\ sed 's/^ *\([^ ]*\)[ *]*\([^;]*\);.*$/{"\2", NULL, OFFSET(\2), FF_OPT_TYPE_\U\1, DEFAULT, \1_MIN, \1_MAX},/' |\ sed 's/AVRATIONAL_M/INT_M/g'|\ sed 's/TYPE_AVRATIONAL/TYPE_RATIONAL/g'|\ sed 's...
Shell
#!/bin/sh tr '\n' '\001' | sed 's/\x01\x01/\x01 \x01/g' | sed 's/\x01\([^-+ @]\)/ \1/g' | tr '\001' '\n'
Shell
#!/bin/sh # # FFmpeg configure script # # Copyright (c) 2000, 2001, 2002 Fabrice Bellard # Copyright (c) 2005-2006 Diego Biurrun # Copyright (c) 2005-2006 Mans Rullgard # # make sure we are running under a compatible shell # try to make this part work with most shells try_exec(){ echo "Trying shell $1" type "...
Shell
#!/bin/sh svn_revision=`cd "$1" && LC_ALL=C svn info 2> /dev/null | grep Revision | cut -d' ' -f2` test $svn_revision || svn_revision=`cd "$1" && grep revision .svn/entries 2>/dev/null | cut -d '"' -f2` test $svn_revision || svn_revision=`cd "$1" && sed -n -e '/^dir$/{n;p;q}' .svn/entries 2>/dev/null` test $svn_revisi...
Shell
#!/bin/sh svn_revision=`cd "$1" && LC_ALL=C svn info 2> /dev/null | grep Revision | cut -d' ' -f2` test $svn_revision || svn_revision=`cd "$1" && grep revision .svn/entries 2>/dev/null | cut -d '"' -f2` test $svn_revision || svn_revision=`cd "$1" && sed -n -e '/^dir$/{n;p;q}' .svn/entries 2>/dev/null` test $svn_revisi...
Shell
#!/bin/sh # # automatic regression test for ffmpeg # # #set -x # Even in the 21st century some diffs do not support -u. diff -u "$0" "$0" > /dev/null 2>&1 if [ $? -eq 0 ]; then diff_cmd="diff -u" else diff_cmd="diff" fi diff -w "$0" "$0" > /dev/null 2>&1 if [ $? -eq 0 ]; then diff_cmd="$diff_cmd -w" fi set -e ...
Shell
#!/bin/bash # Even in the 21st century some diffs are not supporting -u. diff -u $0 $0 > /dev/null 2>&1 if [ $? -eq 0 ]; then diff_cmd="diff -u" else diff_cmd="diff" fi # Make sure that the data directory exists mkdir -p tests/data #perl -e 'chomp($wd = `pwd`); print map { s!tests/data/!!; "<Stream $_>\nFile $wd/...
Shell
#!/bin/sh LC_ALL=C export LC_ALL datadir="tests/data" logfile="$datadir/seek.regression" reffile="$1" list=`ls tests/data/a-* tests/data/b-* | sort` rm -f $logfile for i in $list ; do echo ---------------- >> $logfile echo $i >> $logfile echo $i | grep -v 'b-libav[01][0-9][.]' 2> /dev/null && tests/...
Shell
#!/bin/sh # # automatic regression test for ffmpeg # # #set -x # Even in the 21st century some diffs do not support -u. diff -u "$0" "$0" > /dev/null 2>&1 if [ $? -eq 0 ]; then diff_cmd="diff -u" else diff_cmd="diff" fi diff -w "$0" "$0" > /dev/null 2>&1 if [ $? -eq 0 ]; then diff_cmd="$diff_cmd -w" fi set -e ...
Shell
#!/bin/bash # Even in the 21st century some diffs are not supporting -u. diff -u $0 $0 > /dev/null 2>&1 if [ $? -eq 0 ]; then diff_cmd="diff -u" else diff_cmd="diff" fi # Make sure that the data directory exists mkdir -p tests/data #perl -e 'chomp($wd = `pwd`); print map { s!tests/data/!!; "<Stream $_>\nFile $wd/...
Shell
#!/bin/sh LC_ALL=C export LC_ALL datadir="tests/data" logfile="$datadir/seek.regression" reffile="$1" list=`ls tests/data/a-* tests/data/b-* | sort` rm -f $logfile for i in $list ; do echo ---------------- >> $logfile echo $i >> $logfile echo $i | grep -v 'b-libav[01][0-9][.]' 2> /dev/null && tests/...
Shell
#!/bin/sh tr '\n' '\001' | sed 's/\x01\x01/\x01 \x01/g' | sed 's/\x01\([^-+ @]\)/ \1/g' | tr '\001' '\n'
Shell
#!/bin/sh sed 's/unsigned//g' |\ sed 's/enum//g' |\ egrep '^ *(int|float|double|AVRational|char *\*) *[a-zA-Z_0-9]* *;' |\ sed 's/^ *\([^ ]*\)[ *]*\([^;]*\);.*$/{"\2", NULL, OFFSET(\2), FF_OPT_TYPE_\U\1, DEFAULT, \1_MIN, \1_MAX},/' |\ sed 's/AVRATIONAL_M/INT_M/g'|\ sed 's/TYPE_AVRATIONAL/TYPE_RATIONAL/g'|\ sed 's...
Shell
#!/bin/sh sed 's/unsigned//g' |\ sed 's/enum//g' |\ egrep '^ *(int|float|double|AVRational|char *\*) *[a-zA-Z_0-9]* *;' |\ sed 's/^ *\([^ ]*\)[ *]*\([^;]*\);.*$/{"\2", NULL, OFFSET(\2), FF_OPT_TYPE_\U\1, DEFAULT, \1_MIN, \1_MAX},/' |\ sed 's/AVRATIONAL_M/INT_M/g'|\ sed 's/TYPE_AVRATIONAL/TYPE_RATIONAL/g'|\ sed 's...
Shell
#!/bin/sh tr '\n' '\001' | sed 's/\x01\x01/\x01 \x01/g' | sed 's/\x01\([^-+ @]\)/ \1/g' | tr '\001' '\n'
Shell
#!/bin/sh # # FFmpeg configure script # # Copyright (c) 2000, 2001, 2002 Fabrice Bellard # Copyright (c) 2005-2006 Diego Biurrun # Copyright (c) 2005-2006 Mans Rullgard # # make sure we are running under a compatible shell # try to make this part work with most shells try_exec(){ echo "Trying shell $1" type "...
Shell
#!/bin/sh # check for SVN revision number revision=`cd "$1" && LC_ALL=C svn info 2> /dev/null | grep Revision | cut -d' ' -f2` test $revision || revision=`cd "$1" && grep revision .svn/entries 2>/dev/null | cut -d '"' -f2` test $revision || revision=`cd "$1" && sed -n -e '/^dir$/{n;p;q}' .svn/entries 2>/dev/null` test...
Shell
#!/bin/sh # check for SVN revision number revision=`cd "$1" && LC_ALL=C svn info 2> /dev/null | grep Revision | cut -d' ' -f2` test $revision || revision=`cd "$1" && grep revision .svn/entries 2>/dev/null | cut -d '"' -f2` test $revision || revision=`cd "$1" && sed -n -e '/^dir$/{n;p;q}' .svn/entries 2>/dev/null` test...
Shell
#!/bin/sh # # automatic regression test for ffmpeg # # #set -x # Even in the 21st century some diffs do not support -u. diff -u "$0" "$0" > /dev/null 2>&1 if [ $? -eq 0 ]; then diff_cmd="diff -u" else diff_cmd="diff" fi diff -w "$0" "$0" > /dev/null 2>&1 if [ $? -eq 0 ]; then diff_cmd="$diff_cmd -w" fi set -e ...
Shell
#!/bin/bash # Even in the 21st century some diffs are not supporting -u. diff -u $0 $0 > /dev/null 2>&1 if [ $? -eq 0 ]; then diff_cmd="diff -u" else diff_cmd="diff" fi # Make sure that the data directory exists mkdir -p tests/data #perl -e 'chomp($wd = `pwd`); print map { s!tests/data/!!; "<Stream $_>\nFile $wd/...
Shell
#!/bin/sh LC_ALL=C export LC_ALL datadir="tests/data" logfile="$datadir/seek.regression" reffile="$1" list=`ls tests/data/a-* tests/data/b-* | sort` rm -f $logfile for i in $list ; do echo ---------------- >> $logfile echo $i >> $logfile echo $i | grep -v 'b-libav[01][0-9][.]' 2> /dev/null && tests/...
Shell
#!/bin/sh # # automatic regression test for ffmpeg # # #set -x # Even in the 21st century some diffs do not support -u. diff -u "$0" "$0" > /dev/null 2>&1 if [ $? -eq 0 ]; then diff_cmd="diff -u" else diff_cmd="diff" fi diff -w "$0" "$0" > /dev/null 2>&1 if [ $? -eq 0 ]; then diff_cmd="$diff_cmd -w" fi set -e ...
Shell
#!/bin/bash # Even in the 21st century some diffs are not supporting -u. diff -u $0 $0 > /dev/null 2>&1 if [ $? -eq 0 ]; then diff_cmd="diff -u" else diff_cmd="diff" fi # Make sure that the data directory exists mkdir -p tests/data #perl -e 'chomp($wd = `pwd`); print map { s!tests/data/!!; "<Stream $_>\nFile $wd/...
Shell
#!/bin/sh LC_ALL=C export LC_ALL datadir="tests/data" logfile="$datadir/seek.regression" reffile="$1" list=`ls tests/data/a-* tests/data/b-* | sort` rm -f $logfile for i in $list ; do echo ---------------- >> $logfile echo $i >> $logfile echo $i | grep -v 'b-libav[01][0-9][.]' 2> /dev/null && tests/...
Shell
#!/bin/sh tr '\n' '\001' | sed 's/\x01\x01/\x01 \x01/g' | sed 's/\x01\([^-+ @]\)/ \1/g' | tr '\001' '\n'
Shell
#!/bin/sh sed 's/unsigned//g' |\ sed 's/enum//g' |\ egrep '^ *(int|float|double|AVRational|char *\*) *[a-zA-Z_0-9]* *;' |\ sed 's/^ *\([^ ]*\)[ *]*\([^;]*\);.*$/{"\2", NULL, OFFSET(\2), FF_OPT_TYPE_\U\1, DEFAULT, \1_MIN, \1_MAX},/' |\ sed 's/AVRATIONAL_M/INT_M/g'|\ sed 's/TYPE_AVRATIONAL/TYPE_RATIONAL/g'|\ sed 's...
Shell
#!/bin/sh sed 's/unsigned//g' |\ sed 's/enum//g' |\ egrep '^ *(int|float|double|AVRational|char *\*) *[a-zA-Z_0-9]* *;' |\ sed 's/^ *\([^ ]*\)[ *]*\([^;]*\);.*$/{"\2", NULL, OFFSET(\2), FF_OPT_TYPE_\U\1, DEFAULT, \1_MIN, \1_MAX},/' |\ sed 's/AVRATIONAL_M/INT_M/g'|\ sed 's/TYPE_AVRATIONAL/TYPE_RATIONAL/g'|\ sed 's...
Shell
#!/bin/sh tr '\n' '\001' | sed 's/\x01\x01/\x01 \x01/g' | sed 's/\x01\([^-+ @]\)/ \1/g' | tr '\001' '\n'
Shell
#!/bin/sh export BUILDDIR=.\\out mkdir out nmake -f makefile.nt all
Shell
#!/bin/sh export BUILDDIR=.\\out mkdir out nmake -f makefile.nt all
Shell
#!/bin/sh # run .../target/os/tst/foo.s [ remotehost ] # set -x target=`echo $1 | awk -F/ '{ print $(NF-3) }'` os=`echo $1 | awk -F/ '{ print $(NF-2) }'` dir=$target/$os case "$1" in *symbolic/irix*) idir=include/mips/irix; remotehost=noexecute ;; *symbolic/osf*) idir=include/alpha/osf; remotehost=noexecut...
Shell
#!/bin/sh # run .../target/os/tst/foo.s [ remotehost ] # set -x target=`echo $1 | awk -F/ '{ print $(NF-3) }'` os=`echo $1 | awk -F/ '{ print $(NF-2) }'` dir=$target/$os case "$1" in *symbolic/irix*) idir=include/mips/irix; remotehost=noexecute ;; *symbolic/osf*) idir=include/alpha/osf; remotehost=noexecut...
Shell
#!/bin/sh PATH=/bin:/usr/bin:/usr/sbin build=0 if [ ! -s linkgame.cpp ]; then build=1 else for i in ents/*; do if [ $i -nt linkgame.cpp ]; then build=1 fi done fi if [ "$build" = 0 ]; then exit fi echo "Building linkgame.cpp" >& 2 cat > linkgame.cpp <<EOC // vi: set ts=4 sw=4 : // vi...
Shell
#!/bin/sh PATH=/bin:/usr/bin:/usr/sbin build=0 if [ ! -s linkgame.cpp ]; then build=1 else for i in ents/*; do if [ $i -nt linkgame.cpp ]; then build=1 fi done fi if [ "$build" = 0 ]; then exit fi echo "Building linkgame.cpp" >& 2 cat > linkgame.cpp <<EOC // vi: set ts=4 sw=4 : // vi...
Shell
#!/bin/sh ################################################## # aMule.app bundle creator. # ################################################## ## This file is part of the aMule Project ## ## Copyright (c) 2004-2009 Angel Vidal (Kry) ( kry@amule.org ) ## Copyright (c) 2003-2009 aMule Project ( h...
Shell
#!/bin/bash # This file is part of the aMule project. # # Copyright (c) 2004-2009 aMule Project ( admin@amule.org / http://www.amule.org ) # Copyright (c) 2004-2009 Jacobo Vilella aka Jacobo221 # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public Licen...
Shell
#!/bin/sh if [ -z ${1} ] ; then echo "You have to specify a language to translate into (i.e. de)." exit 0 fi if [ ! -e docs/man/manpages-${1}.po ] ; then echo "The specified translation catalog doesn\`t exist" echo "Make sure, that the .po-file is in docs/man" exit 0 fi bin=`which po4a-translate` || { echo ...
Shell
#!/bin/sh ################################################## # aMule Version Info Bumper # ################################################## ## This file is part of the aMule Project ## ## Copyright (c) 2006-2009 Angel Vidal (Kry) ( kry@amule.org ) ## Copyright (c) 2006-2009 aMule Proje...
Shell
#!/bin/bash ## This file is part of the aMule Project ## ## Copyright (c) 2006-2009 Angel Vidal (Kry) ( kry@amule.org ) ## Copyright (c) 2006-2009 aMule Project ( http://www.amule-project.net ) ## ## This program is free software; you can redistribute it and/or ## modify it under the terms of the GNU Gene...
Shell
#!/bin/sh # This file is part of the aMule project. # # Copyright (c) 2003-2006 aMule Project ( admin@amule.org / http://www.amule.org ) # Copyright (c) 2006 Werner Mahr aka Vollstrecker # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as...
Shell
#!/bin/sh # This file is part of the aMule project. # # Copyright (c) 2003-2006 aMule Project ( admin@amule.org / http://www.amule.org ) # # 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...
Shell
#!/bin/sh # Create Makefile.am echo > Makefile.am echo 'EXTRA_DIST = \' >> Makefile.am ls *.xpm | sed -e 's/^/ /' -e 's/$/ \\/' >> Makefile.am echo ' makeflags.sh' >> Makefile.am # Create CountryFlags.h and header echo > CountryFlags.h echo >> CountryFlags.h echo '#ifndef COUNTRY_FLAGS_H' >> CountryFlags.h echo '#def...
Shell
#! /bin/sh # Common stub for a few missing GNU programs while installing. scriptversion=2005-06-08.21 # Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005 # Free Software Foundation, Inc. # Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996. # This program is free software; you can redistribu...
Shell
#!/bin/sh # Helps bootstrapping 'aMule' when checked out from CVS. # Requires GNU autoconf, GNU automake and GNU which. export WANT_AUTOMAKE="1.7" (autoconf --version) >/dev/null 2>/dev/null || (echo "You need GNU autoconf to install from CVS (ftp://ftp.gnu.org/gnu/autoconf/)"; exit 1) || exit 1 (automake --version) >...
Shell
#! /bin/sh # mkinstalldirs --- make directory hierarchy scriptversion=2005-06-29.22 # 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@gnu.org>...
Shell
#! /bin/sh # Output a system dependent table of character encoding aliases. # # Copyright (C) 2000-2002 Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or modify it # under the terms of the GNU Library General Public License as published # by the Free Software Found...
Shell
#! /bin/sh # Wrapper for compilers which do not understand `-c -o'. scriptversion=2005-05-14.22 # Copyright (C) 1999, 2000, 2003, 2004, 2005 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 ...
Shell
#! /bin/sh # depcomp - compile a program generating dependencies as side-effects scriptversion=2005-07-09.11 # Copyright (C) 1999, 2000, 2003, 2004, 2005 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 pub...
Shell
#!/bin/sh # install - install a program, script, or datafile scriptversion=2005-05-14.22 # This originates from X11R5 (mit/util/scripts/install.sh), which was # later released in X11R6 (xc/config/util/install.sh) with the # following copyright and license. # # Copyright (C) 1994 X Consortium # # Permission is hereby ...
Shell
#! /bin/bash # # Copyright (c) 2004-2009 by Marcelo Roberto Jimenez, phoenix@amule.org # # All rights reserved. This script is provided under the terms of the GPL. # # # Example usage: copy all tarballs to a directory, cd to it and # $ ./amule_build_install.sh # SCRIPT_VERSION="2.0.0" USERHOME=$(echo ~) DEFAULT...
Shell
#! /bin/sh # Output a system dependent set of variables, describing how to set the # run time search path of shared libraries in an executable. # # Copyright 1996-2002 Free Software Foundation, Inc. # Taken from GNU libtool, 2001 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 # # This program is ...
Shell
#!/bin/bash python play.py 34
Shell
#!/bin/bash python play.py 34
Shell
ant clean; ant release; adb install -r bin/MetaTracker-release.apk
Shell
#!/bin/bash if [[ $1 = "start" ]] then echo "Stopping any running daemons..." /usr/local/bin/searchd --config /usr/local/etc/sphinx.conf --stop 2> /dev/null echo "Starting sphinx search daemon..." /usr/local/bin/searchd --config /usr/local/etc/sphinx.conf 2> /dev/null fi if [[ $1 = "stop" ]] then echo "Stopping ...
Shell
#!/bin/sh # StatusNet - a distributed open-source microblogging tool # Copyright (C) 2008, 2009, StatusNet, Inc. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either version 3 of th...
Shell
#!/bin/bash export user=$1 export password=$2 export DB=$3 export SCR=$4 mysqldump -u $user --password=$password -c -t --hex-blob $DB > /tmp/$DB.sql mysqladmin -u $user --password=$password -f drop $DB mysqladmin -u $user --password=$password create $DB mysql -u $user --password=$password $DB < $SCR mysql -u $user --...
Shell
#!/bin/bash source /etc/statusnet/setup.cfg export nickname=$1 export sitename=$2 export password=`$PWDGEN` export database=$nickname$DBBASE export username=$nickname$USERBASE # Create the db mysqladmin -h $DBHOST -u $ADMIN --password=$ADMINPASS create $database for f in statusnet.sql innodb.sql sms_carrier.sql f...
Shell
#!/bin/sh # StatusNet - a distributed open-source microblogging tool # Copyright (C) 2008, 2009, StatusNet, Inc. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either version 3 of th...
Shell
#!/bin/sh # StatusNet - a distributed open-source microblogging tool # Copyright (C) 2008, 2009, StatusNet, Inc. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either version 3 of th...
Shell
#!/bin/sh # StatusNet - a distributed open-source microblogging tool # Copyright (C) 2008, 2009, StatusNet, Inc. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either version 3 of th...
Shell
#!/bin/bash if [[ $1 = "start" ]] then echo "Stopping any running daemons..." /usr/local/bin/searchd --config /usr/local/etc/sphinx.conf --stop 2> /dev/null echo "Starting sphinx search daemon..." /usr/local/bin/searchd --config /usr/local/etc/sphinx.conf 2> /dev/null fi if [[ $1 = "stop" ]] then echo "Stopping ...
Shell
#!/bin/bash source /etc/statusnet/setup.cfg export nickname=$1 export database=$nickname$DBBASE # Create the db mysqladmin -h $DBHOST -u $ADMIN --password=$ADMINPASS -f drop $database mysql -h $DBHOST -u $ADMIN --password=$ADMINPASS $SITEDB << ENDOFCOMMANDS delete from status_network where nickname = '$nickname'...
Shell
#!/bin/bash source /etc/statusnet/setup.cfg export nickname=$1 export sitename=$2 export password=`$PWDGEN` export database=$nickname$DBBASE export username=$nickname$USERBASE # Create the db mysqladmin -h $DBHOST -u $ADMIN --password=$ADMINPASS create $database for f in statusnet.sql innodb.sql sms_carrier.sql f...
Shell
#!/bin/bash # # ******************************* WARNING ********************************* # Do not run this script until you have read and understood the information # below, AND backed up your database. Failure to observe these instructions # may result in losing all the data in your database. # # This script is used ...
Shell
#!/bin/bash export user=$1 export password=$2 export DB=$3 export SCR=$4 mysqldump -u $user --password=$password -c -t --hex-blob $DB > /tmp/$DB.sql mysqladmin -u $user --password=$password -f drop $DB mysqladmin -u $user --password=$password create $DB mysql -u $user --password=$password $DB < $SCR mysql -u $user --...
Shell
#!/bin/bash export user=$1 export password=$2 export DB=$3 export SCR=$4 mysqladmin -u $user --password=$password -f drop $DB mysqladmin -u $user --password=$password create $DB mysql -u $user --password=$password $DB < $SCR
Shell
#!/bin/bash # StatusNet - a distributed open-source microblogging tool # Copyright (C) 2008, 2009, StatusNet, Inc. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either version 3 of ...
Shell
#!/bin/sh # StatusNet - a distributed open-source microblogging tool # Copyright (C) 2008, 2009, StatusNet, Inc. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either version 3 of th...
Shell
#!/bin/bash source /etc/statusnet/setup.cfg export nickname=$1 export database=$nickname$DBBASE # Create the db mysqladmin -h $DBHOST -u $ADMIN --password=$ADMINPASS -f drop $database mysql -h $DBHOST -u $ADMIN --password=$ADMINPASS $SITEDB << ENDOFCOMMANDS delete from status_network where nickname = '$nickname'...
Shell
#!/bin/bash # StatusNet - a distributed open-source microblogging tool # Copyright (C) 2008, 2009, StatusNet, Inc. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either version 3 of ...
Shell
#!/bin/bash # # ******************************* WARNING ********************************* # Do not run this script until you have read and understood the information # below, AND backed up your database. Failure to observe these instructions # may result in losing all the data in your database. # # This script is used ...
Shell
cd `dirname $0` cd .. xgettext --from-code=UTF-8 --default-domain=statusnet --output=locale/statusnet.po --language=PHP --join-existing actions/*.php classes/*.php lib/*.php scripts/*.php
Shell
#!/bin/sh # StatusNet - a distributed open-source microblogging tool # Copyright (C) 2008, 2009, StatusNet, Inc. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either version 3 of th...
Shell
#!/bin/bash export user=$1 export password=$2 export DB=$3 export SCR=$4 mysqladmin -u $user --password=$password -f drop $DB mysqladmin -u $user --password=$password create $DB mysql -u $user --password=$password $DB < $SCR
Shell
#!/bin/bash # Scripts in the tools/ directory should source this file with the line: # pushd "$(dirname $0)" >/dev/null && source common.sh && popd >/dev/null export TOOLS_DIR=$(pwd) export PROJECT_DIR=$(dirname $TOOLS_DIR) export APP_DIR=$PROJECT_DIR/app export TESTS_DIR=$PROJECT_DIR/tests for dir in \ "$APPENG...
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 to...
Shell
#!/bin/bash pushd "$(dirname $0)" >/dev/null && source common.sh && popd >/dev/null $PYTHON $TOOLS_DIR/validate_merge.py "$@"
Shell
#!/bin/bash # Creates a code review on codereview.appspot.com for the current branch. # The posted patch is a diff from the default head to this branch's head. # # This script supports the following workflow: # 1. Create a named branch and make your changes there. # 2. Merge changes (if any) from the default...
Shell
#!/bin/bash pushd "$(dirname $0)" >/dev/null && source common.sh && popd >/dev/null export REMOTE_API_RC="from model import *"$'\n'"from setup_pf import *" $PYTHON $TOOLS_DIR/remote_api.py "$@"
Shell
#!/bin/bash pushd "$(dirname $0)" >/dev/null && source common.sh && popd >/dev/null $PYTHON $TOOLS_DIR/merge_messages.py "$@"
Shell
#!/bin/bash DEFAULT_DAYS=90 function usage() { echo "Usage: $0 [-r <rev>] [-d <days>] [-l] [-h]" echo echo " Interactively go through all the heads that have no children in" echo " history DAG and that are at least $DEFAULT_DAYS days old, and " echo " no-op merge them to the default branch." echo ech...
Shell
#!/bin/bash # To run all tests: # # tools/unit_tests # # To run just the tests in tests/test_model.py and tests/test_indexing.py: # # tools/unit_tests test_model test_indexing pushd "$(dirname $0)" >/dev/null && source common.sh && popd >/dev/null echo echo "--- Running unit tests" TZ=UTC $PYTHON $TESTS_DIR/...
Shell
#!/bin/bash # Copyright 2011 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 to in w...
Shell