code stringlengths 1 1.96M | language stringclasses 1
value |
|---|---|
#!/bin/bash
source "`dirname "${0}"`/munkiwebadmin-config"
REPORTSUBMITURL="${MWA_HOST}/update"
INVENTORYHASHURL="${MWA_HOST}/inventory/hash"
INVENTORYSUBMITURL="${MWA_HOST}/inventory/submit"
RUNTYPE="$1"
MAC=`ifconfig en0 | awk '$1=="ether" {print $2}'`
NAME=`/usr/sbin/scutil --get ComputerName`
REPORTPATH="/Library... | Shell |
#!/bin/bash
#
# Creates a pkg installer for the preflight, postflight and
# report_broken_client scripts.
#
# Joe Wollard <joe.wollard@gmail.com> 2013.03.23
#
BUNDLE_IDENTIFIER="com.googlecode.munki.munkiwebadmin-scripts"
BUNDLE_VERSION=`date +"%Y.%m.%d"`
BASE_DIR=`dirname "${0}"`
SCRIPT_NAME=`basename "${0}"`
## cle... | Shell |
#!/bin/bash
source "`dirname "${0}"`/munkiwebadmin-config"
SUBMITURL="${MWA_HOST}/update"
RUNTYPE="$1"
if [ -z "$RUNTYPE" ]; then
RUNTYPE="reportbrokenclient"
fi
MAC=`ifconfig en0 | awk '/ether/ {print $2}'`
NAME=`/usr/sbin/scutil --get ComputerName`
mwa_curl --max-time 5 \
-d runtype="$RUNTYPE" \
-d mac=... | Shell |
#!/bin/bash
# The fqdn for your Munki Web Admin server.
# EXAMPLE: https://example.com
MWA_HOST="http://example.com:8000"
# The optional name of your SSL certificate to use when communicating with
# Munki Web Admin. If you place the certificate in the same directory as this
# script, you don't need to include the fu... | Shell |
#!/bin/bash
source "`dirname "${0}"`/munkiwebadmin-config"
SUBMITURL="${MWA_HOST}/update"
LOOKUPURL="${MWA_HOST}/lookup/ip"
RUNTYPE="$1"
MAC=`ifconfig en0 | awk '$1=="ether" {print $2}'`
NAME=`/usr/sbin/scutil --get ComputerName`
if [ "$RUNTYPE" == "custom" -o "$RUNTYPE" == "auto" ]; then
if [ ! -z "$MWA_ALLOWED... | Shell |
#!/usr/bin/env bash
#
# Look in the local directory for PHP files that have tabs in them. If
# there are files with tabs, print the list of files and exit with
# non-zero status.
tabs=$(./admin/findphp | xargs egrep -n ' ' | sort)
if [ ! -z "$tabs" ]
then
cat <<EOF 1>&2
Found tabs in:
$tabs
EOF
exit 1
fi
| Shell |
#!/usr/bin/env bash
files_with_long_lines=$(./admin/findphp |
xargs -l1 wc -L |
awk '$1 > 80 { print $2 }' |
xargs -l1 --replace=FILENAME /usr/bin/env perl admin/longlines.pl FILENAME 80)
if [ "$files_with_long_lines" ]
then
cat <<EOF 1>&2
Found lines > 80 characters in:
$... | Shell |
#!/usr/bin/env bash
cat <<EOF | xargs chmod +x
admin/checkimport
admin/checkimports
admin/docblocks
admin/findphp
admin/findglobals
admin/fixperms
admin/makedoc.sh
admin/mathlib
admin/prepare-release
admin/runtests
EOF
| Shell |
#!/usr/bin/env bash
./admin/findphp | xargs -L 1 ./admin/checkimport | Shell |
#!/usr/bin/env bash
find Auth Tests \
-name _darcs -prune -o \
\( -type f \
-a -name \*.php \
-a ! -name .\* \
\) | grep -v Tests
| Shell |
#!/usr/bin/env bash
#
# Prepare this repository for release
REPO_ROOT=$(dirname $(dirname $(readlink --canonicalize "$0")))
cd "$REPO_ROOT"
bash ./admin/fixperms
./admin/makedoc.sh
darcs changes --from-tag=. --summary > CHANGELOG
| Shell |
#!/bin/sh
set -v
phpdoc -p on -t doc -d Auth,admin/tutorials -ti "JanRain OpenID Library" \
--ignore \*~,BigMath.php,Discover.php,CryptUtil.php,DiffieHellman.php,HMACSHA1.php,KVForm.php,Parse.php,TrustRoot.php,HTTPFetcher.php,ParanoidHTTPFetcher.php,PlainHTTPFetcher.php,ParseHTML.php,URINorm.php,XRI.php,XRIRes.php,... | Shell |
#!/usr/bin/env bash
HERE=$(readlink --canonicalize $(dirname "$0"))
test_import () {
./admin/checkimports
}
test_tabs () {
/usr/bin/env bash "$HERE/notabs"
}
test_longlines () {
/usr/bin/env bash "$HERE/nolonglines"
}
test_nobadbraces () {
/usr/bin/env bash "$HERE/nobadbraces"
}
test_nobadcase () ... | Shell |
#!/usr/bin/env bash
set -e
./admin/findphp | xargs -l1 /usr/bin/env perl admin/brace_style.pl
| Shell |
#!/usr/bin/env bash
#set -e
bad_files=$(./admin/findphp | xargs -l1 /usr/bin/env perl admin/docblocks.pl)
if [ "$bad_files" ]
then
cat <<EOF 1>&2
These files do not start with docblocks:
$bad_files
EOF
exit 1
fi
| Shell |
#!/bin/sh
set -v
phpdoc -p on -t doc -d Auth,admin/tutorials -ti "JanRain OpenID Library" \
--ignore \*~,BigMath.php,Discover.php,CryptUtil.php,DiffieHellman.php,HMACSHA1.php,KVForm.php,Parse.php,TrustRoot.php,HTTPFetcher.php,ParanoidHTTPFetcher.php,PlainHTTPFetcher.php,ParseHTML.php,URINorm.php,XRI.php,XRIRes.php,... | Shell |
#!/usr/bin/env bash
HERE=$(readlink --canonicalize $(dirname "$0"))
test_import () {
./admin/checkimports
}
test_tabs () {
/usr/bin/env bash "$HERE/notabs"
}
test_longlines () {
/usr/bin/env bash "$HERE/nolonglines"
}
test_nobadbraces () {
/usr/bin/env bash "$HERE/nobadbraces"
}
test_nobadcase () ... | Shell |
#!/usr/bin/env bash
# Find all PHP modules that are likely to have global variables
set -e
./admin/findphp | xargs grep '^\$'
| Shell |
#!/usr/bin/env bash
bad_files=$(./admin/findphp |
xargs -l1 grep -H -m 1 "<?php" -c |
grep ":0" |
awk -F: '{ print $1 }')
if [ "$bad_files" ]
then
cat <<EOF 1>&2
These PHP files do NOT begin with <?php :
$bad_files
EOF
exit 1
fi
| Shell |
#!/usr/bin/env bash
cat <<EOF | xargs chmod +x
admin/checkimport
admin/checkimports
admin/docblocks
admin/findphp
admin/findglobals
admin/fixperms
admin/makedoc.sh
admin/mathlib
admin/prepare-release
admin/runtests
EOF
| Shell |
#!/usr/bin/env bash
./admin/findphp | xargs -L 1 ./admin/checkimport | Shell |
#!/usr/bin/env bash
bad=$(./admin/findphp | xargs egrep -n '\b(TRUE|FALSE|NULL)\b')
if [ ! -z "$bad" ]
then
cat <<EOF 1>&2
These files contain wrongly capitalized constants:
$bad
EOF
exit 1
fi
| Shell |
#!/usr/bin/env bash
#
# Look in the local directory for PHP files that have tabs in them. If
# there are files with tabs, print the list of files and exit with
# non-zero status.
tabs=$(./admin/findphp | xargs egrep -n ' ' | sort)
if [ ! -z "$tabs" ]
then
cat <<EOF 1>&2
Found tabs in:
$tabs
EOF
exit 1
fi
| Shell |
#!/usr/bin/env bash
find Auth Tests \
-name _darcs -prune -o \
\( -type f \
-a -name \*.php \
-a ! -name .\* \
\) | grep -v Tests
| Shell |
#!/usr/bin/env bash
files_with_long_lines=$(./admin/findphp |
xargs -l1 wc -L |
awk '$1 > 80 { print $2 }' |
xargs -l1 --replace=FILENAME /usr/bin/env perl admin/longlines.pl FILENAME 80)
if [ "$files_with_long_lines" ]
then
cat <<EOF 1>&2
Found lines > 80 characters in:
$... | Shell |
#!/usr/bin/env bash
#
# Prepare this repository for release
REPO_ROOT=$(dirname $(dirname $(readlink --canonicalize "$0")))
cd "$REPO_ROOT"
bash ./admin/fixperms
./admin/makedoc.sh
darcs changes --from-tag=. --summary > CHANGELOG
| Shell |
#!/usr/bin/env bash
# Find all PHP modules that are likely to have global variables
set -e
./admin/findphp | xargs grep '^\$'
| Shell |
#!/usr/bin/env bash
#set -e
bad_files=$(./admin/findphp | xargs -l1 /usr/bin/env perl admin/docblocks.pl)
if [ "$bad_files" ]
then
cat <<EOF 1>&2
These files do not start with docblocks:
$bad_files
EOF
exit 1
fi
| Shell |
#!/usr/bin/env bash
bad_files=$(./admin/findphp |
xargs -l1 grep -H -m 1 "<?php" -c |
grep ":0" |
awk -F: '{ print $1 }')
if [ "$bad_files" ]
then
cat <<EOF 1>&2
These PHP files do NOT begin with <?php :
$bad_files
EOF
exit 1
fi
| Shell |
#!/usr/bin/env bash
set -e
./admin/findphp | xargs -l1 /usr/bin/env perl admin/brace_style.pl
| Shell |
#!/usr/bin/env bash
bad=$(./admin/findphp | xargs egrep -n '\b(TRUE|FALSE|NULL)\b')
if [ ! -z "$bad" ]
then
cat <<EOF 1>&2
These files contain wrongly capitalized constants:
$bad
EOF
exit 1
fi
| Shell |
#!/bin/sh
mvn versions:update-child-modules -N
mvn versions:commit
| Shell |
#!/bin/bash
java -jar dbdeploy-*.jar $@
| Shell |
#!/bin/sh
# Copyright 2011 Cooliris, 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
# Copyright 2011 Cooliris, 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
# Copyright 2011 Cooliris, 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
# Copyright 2011 Cooliris, 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
# Copyright 2011 Cooliris, 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
# Copyright 2011 Cooliris, 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/bash
export LD_LIBRARY_PATH=/usr/lib:/usr/local/lib:/opt/openssl/ssl/lib/:/opt/libgcc/lib/:/opt/libiconv/lib/:/opt/mysql/lib/mysql:/usr/lib/mps
export II_SYSTEM=/opt/pkg/IngresII_2.6_dunham_gen
export INGLIB=$II_SYSTEM/ingres/lib
export PGLIB=/usr/local/pgsql/7.4.2/lib
export MYLIB=/usr/local/mysql/mysql/lib
exp... | Shell |
#!/bin/bash
export LD_LIBRARY_PATH=/usr/lib:/usr/local/lib:/opt/openssl/ssl/lib/:/opt/libgcc/lib/:/opt/libiconv/lib/:/opt/mysql/lib/mysql:/usr/lib/mps
export II_SYSTEM=/opt/pkg/IngresII_2.6_dunham_gen
export INGLIB=$II_SYSTEM/ingres/lib
export PGLIB=/usr/local/pgsql/7.4.2/lib
export MYLIB=/usr/local/mysql/mysql/lib
exp... | Shell |
# !/bin/bash
# a innovator test tool for socketcli.py
for i in {1..100}
do
##echo "sdf"
python socketcli.py
done
| Shell |
#!/bin/sh
valgrind -q --leak-check=full --track-origins=yes --suppressions=glibc.supp --log-file=.valgrind-log "$@"
result="$?"
# Valgrind should generate no error messages
log_contents="`cat .valgrind-log`"
if [ "$log_contents" != "" ]; then
cat .valgrind-log >&2
result=1
fi
rm -f .valgrind-log
e... | Shell |
#!/bin/sh
autoreconf -vif
if [ -z "$NOCONFIGURE" ]; then
exec ./configure -C "$@"
fi
| Shell |
#!/usr/bin/env bash
# Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
# For licensing, see LICENSE.html or http://ckeditor.com/license
# Use this file to quickly run the sample under Linux.
adl application.xml ../../
| Shell |
#!/usr/bin/env bash
# Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
# For licensing, see LICENSE.html or http://ckeditor.com/license
# Use this file to quickly run the sample under Linux.
adl application.xml ../../
| Shell |
#! /bin/sh
for arg in "$@" ; do
xpi_exec_args="$xpi_exec_args $arg"
done
PRG="$0"
progname=`basename "$0"`
# need this for relative symlinks
while [ -h "$PRG" ] ; do
ls=`ls -ld "$PRG"`
link=`expr "$ls" : '.*-> \(.*\)$'`
if expr "$link" : '/.*' > /dev/null; then
PRG="$link"
else
PRG=`dirname "$PRG"`"/$l... | Shell |
#!/bin/sh
zip "$1" -@ < "$2"
| Shell |
#! /bin/sh
for arg in "$@" ; do
xpi_exec_args="$xpi_exec_args \"$arg\""
done
PRG="$0"
progname=`basename "$0"`
# need this for relative symlinks
while [ -h "$PRG" ] ; do
ls=`ls -ld "$PRG"`
link=`expr "$ls" : '.*-> \(.*\)$'`
if expr "$link" : '/.*' > /dev/null; then
PRG="$link"
else
PRG=`dirname "$PRG... | Shell |
#!/bin/sh
zip "$1" -@ < "$2"
| Shell |
#! /bin/sh
for arg in "$@" ; do
xpi_exec_args="$xpi_exec_args $arg"
done
PRG="$0"
progname=`basename "$0"`
# need this for relative symlinks
while [ -h "$PRG" ] ; do
ls=`ls -ld "$PRG"`
link=`expr "$ls" : '.*-> \(.*\)$'`
if expr "$link" : '/.*' > /dev/null; then
PRG="$link"
else
PRG=`dirname "$PRG"`"/$l... | Shell |
#! /bin/sh
for arg in "$@" ; do
xpi_exec_args="$xpi_exec_args \"$arg\""
done
PRG="$0"
progname=`basename "$0"`
# need this for relative symlinks
while [ -h "$PRG" ] ; do
ls=`ls -ld "$PRG"`
link=`expr "$ls" : '.*-> \(.*\)$'`
if expr "$link" : '/.*' > /dev/null; then
PRG="$link"
else
PRG=`dirname "$PRG... | Shell |
#!/bin/sh
dpkg-buildpackage -b -d -tc
| Shell |
#!/bin/sh
if [ $# -eq 1 ]
then
msginit --input=cherrytree.pot --locale=$1
else
echo "Please provide the language code as one and only argument (e.g. 'es' for Spanish)"
fi
| Shell |
#!/bin/bash
# Check if the jar has been built.
if [ ! -e target/bitcoinj-tools-*.jar ]; then
echo "Compiling WalletTool to a JAR"
mvn -q package -DskipTests
fi
java -jar target/bitcoinj-tools-*.jar $*
| Shell |
calabash test/tests.xproc.org/required/identity-001.xml test/test-runner.xm
calabash test/tests.xproc.org/required/add-attribute-001.xml test/test-runner.xml
calabash test/data/test.xml test/xproc/basic/identity/identity1.xml
calabash test/data/test.xml test/xproc/basic/xquery/xquery1.xml | Shell |
bin/xprocxq test/tests.xproc.org/required/add-attribute-001.xml test/test-runner.xml
bin/xprocxq test/data/test.xml test/xproc/basic/declare-step/declare-step1.xml | Shell |
calabash test/tests.xproc.org/required/identity-001.xml test/test-runner.xm
calabash test/tests.xproc.org/required/add-attribute-001.xml test/test-runner.xml
calabash test/data/test.xml test/xproc/basic/identity/identity1.xml
calabash test/data/test.xml test/xproc/basic/xquery/xquery1.xml | Shell |
bin/xprocxq test/tests.xproc.org/required/add-attribute-001.xml test/test-runner.xml
bin/xprocxq test/data/test.xml test/xproc/basic/declare-step/declare-step1.xml | Shell |
#! /bin/sh
# mkinstalldirs --- make directory hierarchy
# Author: Noah Friedman <friedman@prep.ai.mit.edu>
# Created: 1993-05-16
# Public domain
errstatus=0
dirmode=""
usage="\
Usage: mkinstalldirs [-h] [--help] [-m mode] dir ..."
# process command line arguments
while test $# -gt 0 ; do
case $1 in
-h | --help... | Shell |
#! /bin/sh
# depcomp - compile a program generating dependencies as side-effects
scriptversion=2009-04-28.21; # UTC
# Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007, 2009 Free
# Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU Ge... | 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
# Run this to generate all the initial makefiles, etc.
srcdir=`dirname $0`
test -z "$srcdir" && srcdir=.
DIE=0
if [ -n "$GNOME2_DIR" ]; then
ACLOCAL_FLAGS="-I $GNOME2_DIR/share/aclocal $ACLOCAL_FLAGS"
LD_LIBRARY_PATH="$GNOME2_DIR/lib:$LD_LIBRARY_PATH"
PATH="$GNOME2_DIR/bin:$PATH"
export PATH
export LD... | Shell |
#! /bin/sh
# mkinstalldirs --- make directory hierarchy
# Author: Noah Friedman <friedman@prep.ai.mit.edu>
# Created: 1993-05-16
# Public domain
errstatus=0
dirmode=""
usage="\
Usage: mkinstalldirs [-h] [--help] [-m mode] dir ..."
# process command line arguments
while test $# -gt 0 ; do
case $1 in
-h | --help... | Shell |
#! /bin/sh
# depcomp - compile a program generating dependencies as side-effects
scriptversion=2009-04-28.21; # UTC
# Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007, 2009 Free
# Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU Ge... | Shell |
#!/bin/sh
# install - install a program, script, or datafile
scriptversion=2009-04-28.21; # UTC
# 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 ... | 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
# install - install a program, script, or datafile
scriptversion=2009-04-28.21; # UTC
# 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 ... | Shell |
#!/bin/sh
# Run this to generate all the initial makefiles, etc.
srcdir=`dirname $0`
test -z "$srcdir" && srcdir=.
DIE=0
if [ -n "$GNOME2_DIR" ]; then
ACLOCAL_FLAGS="-I $GNOME2_DIR/share/aclocal $ACLOCAL_FLAGS"
LD_LIBRARY_PATH="$GNOME2_DIR/lib:$LD_LIBRARY_PATH"
PATH="$GNOME2_DIR/bin:$PATH"
export PATH
export LD... | Shell |
#! /bin/sh
# mkinstalldirs --- make directory hierarchy
# Author: Noah Friedman <friedman@prep.ai.mit.edu>
# Created: 1993-05-16
# Public domain
errstatus=0
dirmode=""
usage="\
Usage: mkinstalldirs [-h] [--help] [-m mode] dir ..."
# process command line arguments
while test $# -gt 0 ; do
case $1 in
-h | --help... | Shell |
#!/bin/sh
# Run this to generate all the initial makefiles, etc.
srcdir=`dirname $0`
test -z "$srcdir" && srcdir=.
DIE=0
if [ -n "$GNOME2_DIR" ]; then
ACLOCAL_FLAGS="-I $GNOME2_DIR/share/aclocal $ACLOCAL_FLAGS"
LD_LIBRARY_PATH="$GNOME2_DIR/lib:$LD_LIBRARY_PATH"
PATH="$GNOME2_DIR/bin:$PATH"
export PATH
export LD... | Shell |
#! /bin/sh
# mkinstalldirs --- make directory hierarchy
# Author: Noah Friedman <friedman@prep.ai.mit.edu>
# Created: 1993-05-16
# Public domain
errstatus=0
dirmode=""
usage="\
Usage: mkinstalldirs [-h] [--help] [-m mode] dir ..."
# process command line arguments
while test $# -gt 0 ; do
case $1 in
-h | --help... | Shell |
#!/bin/sh
# Run this to generate all the initial makefiles, etc.
srcdir=`dirname $0`
test -z "$srcdir" && srcdir=.
DIE=0
if [ -n "$GNOME2_DIR" ]; then
ACLOCAL_FLAGS="-I $GNOME2_DIR/share/aclocal $ACLOCAL_FLAGS"
LD_LIBRARY_PATH="$GNOME2_DIR/lib:$LD_LIBRARY_PATH"
PATH="$GNOME2_DIR/bin:$PATH"
export PATH
export LD... | Shell |
#!/bin/sh
#
# dex2jar - Tools to work with android .dex and java .class files
# Copyright (c) 2009-2012 Panxiaobo
#
# 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... | Shell |
#!/bin/sh
#
# FFmpeg configure script
#
# Copyright (c) 2000-2002 Fabrice Bellard
# Copyright (c) 2005-2008 Diego Biurrun
# Copyright (c) 2005-2008 Mans Rullgard
#
# Prevent locale nonsense from breaking basic text processing.
LC_ALL=C
export LC_ALL
# make sure we are running under a compatible shell
# try to make th... | Shell |
#!/bin/sh
#perl -e 'chomp($wd = `pwd`); print map { s!tests/data/!!; "<Stream $_>\nFile $wd/tests/data/$_\n</Stream>\n\n" } @ARGV' tests/data/a* >> tests/data/ffserver.conf
#perl -e 'chomp($wd = `pwd`); print map { s!tests/data/!!; "<Stream $_.asf>\nFile $wd/tests/data/$_\n</Stream>\n\n" } @ARGV' tests/data/a* >> test... | Shell |
#!/bin/sh
#
# automatic regression test for avconv
#
#
#set -x
set -e
. $(dirname $0)/regression-funcs.sh
eval do_$test=y
# generate reference for quality check
if [ -n "$do_vref" ]; then
do_avconv $raw_ref -f image2 -vcodec pgmyuv -i $raw_src -an -f rawvideo
fi
if [ -n "$do_aref" ]; then
do_avconv $pcm_ref -b 128k... | Shell |
#! /bin/sh
set -e
base=$(dirname $0)
ref="${base}/ref/fate"
FATE_DB_URL="http://fate.multimedia.cx/fate-tests.sqlite.bz2"
FATE_DB=$(mktemp fate-db.XXXXXX)
SQL_TESTS='SELECT id,short_name,command FROM test_spec WHERE active=1 ORDER BY short_name'
do_sql(){
sqlite3 -noheader -separator ' ' "$FATE_DB" "$@"
}
wget... | Shell |
#!/bin/sh
LC_ALL=C
export LC_ALL
datadir="tests/data"
logfile="$datadir/copy.regression"
reffile="$1"
list=$(grep -oh ' ./tests/data/.*' tests/ref/{acodec,lavf,vsynth1}/*| sort)
rm -f $logfile
for i in $list ; do
echo ---------------- >> $logfile
echo $i >> $logfile
./ffmpeg_g -flags +bitexact -i $i -ac... | Shell |
#!/bin/sh
LC_ALL=C
export LC_ALL
datadir="tests/data"
logfile="$datadir/copy.regression"
reffile="$1"
list=$(grep -oh ' ./tests/data/.*' tests/ref/{acodec,lavf,vsynth1}/*| sort)
rm -f $logfile
for i in $list ; do
echo ---------------- >> $logfile
echo $i >> $logfile
./ffmpeg_g -flags +bitexact -i $i -ac... | Shell |
#! /bin/sh
export LC_ALL=C
base=$(dirname $0)
. "${base}/md5.sh"
base64=tests/base64
test="${1#fate-}"
samples=$2
target_exec=$3
target_path=$4
command=$5
cmp=${6:-diff}
ref=${7:-"${base}/ref/fate/${test}"}
fuzz=${8:-1}
threads=${9:-1}
thread_type=${10:-frame+slice}
cpuflags=${11:-all}
cmp_shift=${12:-0}
cmp_target... | Shell |
#! /bin/sh
config=$1
die(){
echo "$@"
exit 1
}
test -r "$config" || die "usage: fate.sh <config>"
workdir=$(cd $(dirname $config) && pwd)
make=make
tar='tar c'
. "$config"
test -n "$slot" || die "slot not specified"
test -n "$repo" || die "repo not specified"
test -d "$samples" || die "samples loca... | Shell |
#! /bin/sh
set -e
base=$(dirname $0)
ref="${base}/ref/fate"
FATE_DB_URL="http://fate.multimedia.cx/fate-tests.sqlite.bz2"
FATE_DB=$(mktemp fate-db.XXXXXX)
SQL_TESTS='SELECT id,short_name,command FROM test_spec WHERE active=1 ORDER BY short_name'
do_sql(){
sqlite3 -noheader -separator ' ' "$FATE_DB" "$@"
}
wget... | Shell |
#!/bin/sh
#
# automatic regression test for libavfilter
#
#
#set -x
set -e
. $(dirname $0)/regression-funcs.sh
eval do_$test=y
do_video_filter() {
label=$1
filters=$2
shift 2
printf '%-20s' $label
run_avconv $DEC_OPTS -f image2 -vcodec pgmyuv -i $raw_src \
$ENC_OPTS -vf "$filters" -vc... | Shell |
#!/bin/sh
#
# automatic regression test for avconv
#
#
#set -x
set -e
. $(dirname $0)/regression-funcs.sh
eval do_$test=y
# generate reference for quality check
if [ -n "$do_vref" ]; then
do_avconv $raw_ref -f image2 -vcodec pgmyuv -i $raw_src -an -f rawvideo
fi
if [ -n "$do_aref" ]; then
do_avconv $pcm_ref -b 128k... | Shell |
#!/bin/sh
#
# common regression functions for avconv
#
#
test="${1#regtest-}"
test_ref=$2
raw_src_dir=$3
target_exec=$4
target_path=$5
threads=${6:-1}
cpuflags=${8:-all}
samples=$9
datadir="./tests/data"
target_datadir="${target_path}/${datadir}"
this="$test.$test_ref"
outfile="$datadir/$test_ref/"
# various files
... | Shell |
#!/bin/sh
#perl -e 'chomp($wd = `pwd`); print map { s!tests/data/!!; "<Stream $_>\nFile $wd/tests/data/$_\n</Stream>\n\n" } @ARGV' tests/data/a* >> tests/data/ffserver.conf
#perl -e 'chomp($wd = `pwd`); print map { s!tests/data/!!; "<Stream $_.asf>\nFile $wd/tests/data/$_\n</Stream>\n\n" } @ARGV' tests/data/a* >> test... | Shell |
#!/bin/sh
#
# automatic regression test for libavformat
#
#
#set -x
set -e
. $(dirname $0)/regression-funcs.sh
eval do_$test=y
ENC_OPTS="$ENC_OPTS -metadata title=lavftest"
do_lavf_fate()
{
file=${outfile}lavf.$1
input="${samples}/$2"
do_avconv $file $DEC_OPTS -i "$input" $ENC_OPTS -vcodec copy -acodec... | Shell |
# try to find an md5 program
if [ X"$(echo | md5sum 2> /dev/null)" != X ]; then
do_md5sum() { md5sum -b $1; }
elif [ X"$(echo | md5 2> /dev/null)" != X ]; then
do_md5sum() { md5 $1 | sed 's#MD5 (\(.*\)) = \(.*\)#\2 *\1#'; }
elif [ -x /sbin/md5 ]; then
do_md5sum() { /sbin/md5 -r $1 | sed 's# \**\./# *./#'; ... | Shell |
#! /bin/sh
export LC_ALL=C
base=$(dirname $0)
. "${base}/md5.sh"
base64=tests/base64
test="${1#fate-}"
samples=$2
target_exec=$3
target_path=$4
command=$5
cmp=${6:-diff}
ref=${7:-"${base}/ref/fate/${test}"}
fuzz=${8:-1}
threads=${9:-1}
thread_type=${10:-frame+slice}
cpuflags=${11:-all}
cmp_shift=${12:-0}
cmp_target... | Shell |
#!/bin/sh
#
# automatic regression test for libavfilter
#
#
#set -x
set -e
. $(dirname $0)/regression-funcs.sh
eval do_$test=y
do_video_filter() {
label=$1
filters=$2
shift 2
printf '%-20s' $label
run_avconv $DEC_OPTS -f image2 -vcodec pgmyuv -i $raw_src \
$ENC_OPTS -vf "$filters" -vc... | Shell |
#! /bin/sh
config=$1
die(){
echo "$@"
exit 1
}
test -r "$config" || die "usage: fate.sh <config>"
workdir=$(cd $(dirname $config) && pwd)
make=make
tar='tar c'
. "$config"
test -n "$slot" || die "slot not specified"
test -n "$repo" || die "repo not specified"
test -d "$samples" || die "samples loca... | Shell |
#!/bin/sh
#
# automatic regression test for libavformat
#
#
#set -x
set -e
. $(dirname $0)/regression-funcs.sh
eval do_$test=y
ENC_OPTS="$ENC_OPTS -metadata title=lavftest"
do_lavf_fate()
{
file=${outfile}lavf.$1
input="${samples}/$2"
do_avconv $file $DEC_OPTS -i "$input" $ENC_OPTS -vcodec copy -acodec... | Shell |
#!/bin/sh
#
# common regression functions for avconv
#
#
test="${1#regtest-}"
test_ref=$2
raw_src_dir=$3
target_exec=$4
target_path=$5
threads=${6:-1}
cpuflags=${8:-all}
samples=$9
datadir="./tests/data"
target_datadir="${target_path}/${datadir}"
this="$test.$test_ref"
outfile="$datadir/$test_ref/"
# various files
... | Shell |
#!/bin/sh
# Copyright (c) 2011 Nicolas George
#
# This file is part of FFmpeg.
#
# FFmpeg is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any la... | Shell |
#!/bin/sh
# Copyright (c) 2011 Nicolas George
#
# This file is part of FFmpeg.
#
# FFmpeg is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any la... | Shell |
#!/bin/sh
#
# FFmpeg configure script
#
# Copyright (c) 2000-2002 Fabrice Bellard
# Copyright (c) 2005-2008 Diego Biurrun
# Copyright (c) 2005-2008 Mans Rullgard
#
# Prevent locale nonsense from breaking basic text processing.
LC_ALL=C
export LC_ALL
# make sure we are running under a compatible shell
# try to make th... | Shell |
#!/bin/sh
#
# FFmpeg configure script
#
# Copyright (c) 2000-2002 Fabrice Bellard
# Copyright (c) 2005-2008 Diego Biurrun
# Copyright (c) 2005-2008 Mans Rullgard
#
# Prevent locale nonsense from breaking basic text processing.
LC_ALL=C
export LC_ALL
# make sure we are running under a compatible shell
# try to make th... | Shell |
#!/bin/sh
# check for git short hash
if ! test "$revision"; then
revision=$(cd "$1" && git describe --tags --match N 2> /dev/null)
fi
# Shallow Git clones (--depth) do not have the N tag:
# use 'git-YYYY-MM-DD-hhhhhhh'.
test "$revision" || revision=$(cd "$1" &&
git log -1 --pretty=format:"git-%cd-%h" --date=sho... | Shell |
#!/bin/sh
tr '\n' '\001' | sed 's/\x01\x01/\x01 \x01/g' | sed 's/\x01\([^-+ @]\)/ \1/g' | tr '\001' '\n'
| Shell |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.