code
stringlengths
1
1.96M
language
stringclasses
1 value
#!/bin/bash # Helper script to ease comparing the PSNR between two video files # Copyleft 2005 by Matthias Wieser # Copyleft 2005 by Ivo # This file comes under GPL, see http://www.gnu.org/copyleft/gpl.html for more # information on its licensing. warning_frame_number () { echo "Files have differing numbers o...
Shell
#!/bin/sh # Author: Jonas Jermann # Description: A hack to allow mencoder to encode from an audio only file if [ "$1" = "" ]; then echo "Usage: $0 <\"input file\"> <\"output file\"> <\"options\">" exit 0 fi options=${3:-"-oac mp3lame"} mencoder -demuxer rawvideo -rawvideo w=1:h=1 -ovc copy -of r...
Shell
#!/bin/bash # ----------------------------------------------------------------------------- # Check source-tree for anomalies # # Copyright (C) 2005-2007 by Ivo van Poorten # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as publi...
Shell
#!/bin/bash # (c) 2003 Vajna Miklos <mainroot@freemail.hu> # divx2svcd for MPlayer # distributed under GPL License # simple utility that creates a SVCD from a video in an AVI container # The newest version of this utility can be found at # http://vmiklos.uw.hu/divx2svcd/divx2svcd # MPlayer available at # ...
Shell
#!/bin/sh # Script to run mplayer on the console (fbdev/mga_vid/etc) without # the console text and/or flashing cursor getting in the way. # Written by Rich Felker. trap "tput cnorm ; exit 1" SIGQUIT SIGINT EXIT res=`PATH="$PATH:/usr/sbin" fbset | grep geometry | sed 's/^ *//'` width=`echo "$res" | cut -d' ' -f...
Shell
#!/bin/sh # # Collects all the appropriate subtitle files in a given directory and # its subdirectories, no matter what the filename is. # Use this together as: mplayer -sub `subsearch.sh` movie # Author: Alex # [ $1 ] && cd `dirname $1` _sub_names="" one_dir_search() { for i in $dir/* do cas...
Shell
#!/bin/bash # # Version: 0.2.2 # # Licence: GPL # # 2002/09/21 Jürgen Hammelmann <juergen.hammelmann@gmx.de> # # Script: MPlayer Sources (DVD) to (S)VCD ripping and burning # # requires: mplayer # mjpegtools # vcdimager # ...
Shell
#!/bin/bash # # QEPDVCD # # Most of this stuff comes straight from MPlayer documentation. # Options are limited only to a small useful subset, if you # want more control, RTFM and DIY. # # Version: 0.1 # # Licence: GPL # # Author: Reynaldo H. Verdejo Pinochet <reynaldo@opendot.cl...
Shell
#!/bin/sh # # This is a wrapper around the -identify functionality. # It is supposed to escape the output properly, so it can be easily # used in shellscripts by 'eval'ing the output of this script. # # Written by Tobias Diedrich <ranma+mplayer@tdiedrich.de> # Licensed under GNU GPL. if [ -z "$1" ]; then ec...
Shell
#!/bin/sh # example how to output video on multiple windows in sync. # might be even more useful in combination with vo ggi # to distribute the video arbitrarily dir=/tmp/$$ count=$1 shift if test 0"$count" -lt 1; then echo "At least 1 slave instance must be used." echo "" echo "Usage:" echo "./m...
Shell
#!/bin/sh set -e # avoid insecure tempfile creation umask 0022 # This script will download binary codecs for MPlayer unto a Debian system. # Author: thuglife, mennucc1 # CODECDIR=/usr/lib/codecs PREFDIR=/var/lib/mplayer/prefs MYSITE='http://people.debian.org/~mennucc1/mplayer' dpkgarch=$(dpkg --prin...
Shell
#!/bin/bash # # Version: 0.2.2 # # Licence: GPL # # 2002/09/21 Jürgen Hammelmann <juergen.hammelmann@gmx.de> # # Script: MPlayer Sources (DVD) to (S)VCD ripping and burning # # requires: mplayer # mjpegtools # vcdimager # ...
Shell
#!/bin/sh # Script to run mplayer on the console (fbdev/mga_vid/etc) without # the console text and/or flashing cursor getting in the way. # Written by Rich Felker. trap "tput cnorm ; exit 1" SIGQUIT SIGINT EXIT res=`PATH="$PATH:/usr/sbin" fbset | grep geometry | sed 's/^ *//'` width=`echo "$res" | cut -d' ' -f...
Shell
#!/bin/bash # (c) 2003 Vajna Miklos <mainroot@freemail.hu> # divx2svcd for MPlayer # distributed under GPL License # simple utility that creates a SVCD from a video in an AVI container # The newest version of this utility can be found at # http://vmiklos.uw.hu/divx2svcd/divx2svcd # MPlayer available at # ...
Shell
#!/bin/sh # Author: Jonas Jermann # Description: A hack to allow mencoder to encode from an audio only file if [ "$1" = "" ]; then echo "Usage: $0 <\"input file\"> <\"output file\"> <\"options\">" exit 0 fi options=${3:-"-oac mp3lame"} mencoder -demuxer rawvideo -rawvideo w=1:h=1 -ovc copy -of r...
Shell
#!/bin/sh set -e # avoid insecure tempfile creation umask 0022 # This script will download binary codecs for MPlayer unto a Debian system. # Author: thuglife, mennucc1 # CODECDIR=/usr/lib/codecs PREFDIR=/var/lib/mplayer/prefs MYSITE='http://people.debian.org/~mennucc1/mplayer' dpkgarch=$(dpkg --prin...
Shell
#!/bin/sh # # Collects all the appropriate subtitle files in a given directory and # its subdirectories, no matter what the filename is. # Use this together as: mplayer -sub `subsearch.sh` movie # Author: Alex # [ $1 ] && cd `dirname $1` _sub_names="" one_dir_search() { for i in $dir/* do cas...
Shell
#!/bin/bash # # QEPDVCD # # Most of this stuff comes straight from MPlayer documentation. # Options are limited only to a small useful subset, if you # want more control, RTFM and DIY. # # Version: 0.1 # # Licence: GPL # # Author: Reynaldo H. Verdejo Pinochet <reynaldo@opendot.cl...
Shell
#!/bin/sh # example how to output video on multiple windows in sync. # might be even more useful in combination with vo ggi # to distribute the video arbitrarily dir=/tmp/$$ count=$1 shift if test 0"$count" -lt 1; then echo "At least 1 slave instance must be used." echo "" echo "Usage:" echo "./m...
Shell
#!/bin/sh # # This is a wrapper around the -identify functionality. # It is supposed to escape the output properly, so it can be easily # used in shellscripts by 'eval'ing the output of this script. # # Written by Tobias Diedrich <ranma+mplayer@tdiedrich.de> # Licensed under GNU GPL. if [ -z "$1" ]; then ec...
Shell
#!/bin/bash # will create checkouts and tarballs in the current dir ver=1.1 dst=MPlayer-$ver svnurl=svn://svn.mplayerhq.hu/mplayer/trunk #svnurl=svn://svn.mplayerhq.hu/mplayer/branches/$ver rm -rf $dst/ $dst-DOCS/ $dst.tar* svn export $svnurl $dst/ # branches should contain a VERSION file, but # "previews" generated ...
Shell
#!/bin/sh # MPlayer mirroring script # $Id: update_mplayer_rsync 30838 2010-03-04 15:57:21Z diego $ PATH=<set_path_if_necessary> LOCK=<path_to_lockfile> MIRROR_ROOT=<path_to_mirror_root> MAILADR=<report_mail_to_adr> #TMPDIR = /tmp #export TMPDIR TMPFILE=$(mktemp -t mplayer.XXXXXXXXXXX) # Check to see if another syn...
Shell
#!/bin/sh # MPlayer mirroring script # $Id: update_mplayer_rsync 30838 2010-03-04 15:57:21Z diego $ PATH=<set_path_if_necessary> LOCK=<path_to_lockfile> MIRROR_ROOT=<path_to_mirror_root> MAILADR=<report_mail_to_adr> #TMPDIR = /tmp #export TMPDIR TMPFILE=$(mktemp -t mplayer.XXXXXXXXXXX) # Check to see if another syn...
Shell
#!/bin/bash # will create checkouts and tarballs in the current dir ver=1.1 dst=MPlayer-$ver svnurl=svn://svn.mplayerhq.hu/mplayer/trunk #svnurl=svn://svn.mplayerhq.hu/mplayer/branches/$ver rm -rf $dst/ $dst-DOCS/ $dst.tar* svn export $svnurl $dst/ # branches should contain a VERSION file, but # "previews" generated ...
Shell
#!/bin/sh # wrapper around dpkg-buildpackage to generate correct changelog # use "debian/daily-build.sh -b" to create binary packages # and "debian/daily-build.sh -S" to create a source package only # # use this invocation to load system libdvdcss at runtime # env DEB_EXTRA_CONFIGURE_FLAGS=--disable-libdvdcss-internal...
Shell
#!/bin/sh # preinst script # set -e # summary of how this script can be called: # * <new-preinst> `install' # * <new-preinst> `install' <old-version> # * <new-preinst> `upgrade' <old-version> # * <old-preinst> `abort-upgrade' <new-version> # for details, see http://www.debian.org/doc/debia...
Shell
#!/bin/sh # wrapper around dpkg-buildpackage to generate correct changelog # use "debian/daily-build.sh -b" to create binary packages # and "debian/daily-build.sh -S" to create a source package only # # use this invocation to load system libdvdcss at runtime # env DEB_EXTRA_CONFIGURE_FLAGS=--disable-libdvdcss-internal...
Shell
#!/bin/sh # preinst script # set -e # summary of how this script can be called: # * <new-preinst> `install' # * <new-preinst> `install' <old-version> # * <new-preinst> `upgrade' <old-version> # * <old-preinst> `abort-upgrade' <new-version> # for details, see http://www.debian.org/doc/debia...
Shell
#!/bin/sh test "$1" && extra="-$1" # releases extract the version number from the VERSION file version=$(cat VERSION 2> /dev/null) if test -z $version ; then # Extract revision number from file used by daily tarball snapshots # or from the places different Subversion versions have it. svn_revision=$(cat snapshot_ver...
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 tr '\n' '\001' | sed 's/\x01\x01/\x01 \x01/g' | sed 's/\x01\([^-+ @]\)/ \1/g' | tr '\001' '\n'
Shell
#!/bin/bash if [ "$NDK" = "" ]; then echo NDK variable not set, assuming ${HOME}/android-ndk export NDK=${HOME}/android-ndk fi echo "Fetching Android system headers" git clone --depth=1 --branch gingerbread-release git://github.com/CyanogenMod/android_frameworks_base.git ../android-source/frameworks/base git ...
Shell
#!/bin/sh # if no argument provided, write stdin to a file and re-run the script if [ $# = 0 ]; then cat > patcheck.stdout $0 patcheck.stdout rm -f patcheck.stdout exit fi GREP=grep EGREP=egrep TMP=patcheck.tmp OPT="-nH" #FILES=$($GREP '^+++' $* | sed 's/+++ //g') echo patCHeck 1e10.0 echo This tool ...
Shell
#!/bin/sh tr '\n' '\001' | sed 's/\x01\x01/\x01 \x01/g' | sed 's/\x01\([^-+ @]\)/ \1/g' | tr '\001' '\n'
Shell
#!/bin/sh # if no argument provided, write stdin to a file and re-run the script if [ $# = 0 ]; then cat > patcheck.stdout $0 patcheck.stdout rm -f patcheck.stdout exit fi GREP=grep EGREP=egrep TMP=patcheck.tmp OPT="-nH" #FILES=$($GREP '^+++' $* | sed 's/+++ //g') echo patCHeck 1e10.0 echo This tool ...
Shell
#!/bin/bash if [ "$NDK" = "" ]; then echo NDK variable not set, assuming ${HOME}/android-ndk export NDK=${HOME}/android-ndk fi echo "Fetching Android system headers" git clone --depth=1 --branch gingerbread-release git://github.com/CyanogenMod/android_frameworks_base.git ../android-source/frameworks/base git ...
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/bash fn=`basename "$1"` for th in 1 4; do time ./ffmpeg_g -threads $th -skip_loop_filter all -vsync 0 -y -t 30 -i "$1" -an -f rawvideo "raw/n-$fn-$th.yuv" done #for th in 1 4; do # time ./ffmpeg_g -threads $th -vsync 0 -y -t 30 -i "$1" -an -f rawvideo "raw/$fn-$th.yuv" #done
Shell
#!/bin/bash valgrind --track-origins=yes --leak-check=full ./ffmpeg_g -threads 1 -vsync 0 -y -t 30 -i "$1" -an -f null /dev/null valgrind --track-origins=yes --leak-check=full ./ffmpeg_g -threads 3 -vsync 0 -y -t 30 -i "$1" -an -f null /dev/null
Shell
#!/bin/sh -v # args [where to put patches] [smtp server] [destination] git format-patch -o "$1" --inline --subject-prefix=soc --thread origin git send-email --no-chain-reply-to --smtp-server $2 --to $3 --dry-run "$1"
Shell
#!/bin/bash fn=`basename "$1"` for th in 1 2 3 4; do time ./ffmpeg_g -threads $th -flags2 +fast -vsync 0 -y -t 30 -i "$1" -an -f framecrc "crc/$fn-$th.txt" >/dev/null 2>&1 done ./ffmpeg_g -threads 1 -y -t 10 -i "$1" -an -f framecrc "crc/$fn-1-vsync.txt" >/dev/null 2>&1 ./ffmpeg_g -threads 3 -y -t 10 -i "$1" -an ...
Shell
#!/bin/bash fn=`basename "$1"` for th in 1 4; do time ./ffmpeg_g -threads $th -skip_loop_filter all -vsync 0 -y -t 30 -i "$1" -an -f rawvideo "raw/n-$fn-$th.yuv" done #for th in 1 4; do # time ./ffmpeg_g -threads $th -vsync 0 -y -t 30 -i "$1" -an -f rawvideo "raw/$fn-$th.yuv" #done
Shell
#!/bin/bash fn=`basename "$1"` for th in 1 2 3 4; do time ./ffmpeg_g -threads $th -flags2 +fast -vsync 0 -y -t 30 -i "$1" -an -f framecrc "crc/$fn-$th.txt" >/dev/null 2>&1 done ./ffmpeg_g -threads 1 -y -t 10 -i "$1" -an -f framecrc "crc/$fn-1-vsync.txt" >/dev/null 2>&1 ./ffmpeg_g -threads 3 -y -t 10 -i "$1" -an ...
Shell
#!/bin/bash valgrind --track-origins=yes --leak-check=full ./ffmpeg_g -threads 1 -vsync 0 -y -t 30 -i "$1" -an -f null /dev/null valgrind --track-origins=yes --leak-check=full ./ffmpeg_g -threads 3 -vsync 0 -y -t 30 -i "$1" -an -f null /dev/null
Shell
#!/bin/sh -v # args [where to put patches] [smtp server] [destination] git format-patch -o "$1" --inline --subject-prefix=soc --thread origin git send-email --no-chain-reply-to --smtp-server $2 --to $3 --dry-run "$1"
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
# try to find an md5 program if [ X"$(echo | md5sum 2> /dev/null)" != X ]; then do_md5sum() { md5sum -b $1; } elif [ X"$(echo | command md5 2> /dev/null)" != X ]; then do_md5sum() { command md5 $1 | sed 's#MD5 (\(.*\)) = \(.*\)#\2 *\1#'; } elif [ -x /sbin/md5 ]; then do_md5sum() { /sbin/md5 -r $1 | sed 's/...
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 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 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 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 # # common regression functions for ffmpeg # # 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 # # 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 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 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 #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 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 # # 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 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 ffmpeg # # 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 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 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 # 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/bash # rev_new_raw=$(svnversion -n . 2>/dev/null | tr '\n' ' ' | tr -d '\r') [ -n "$rev_new_raw" ] || rev_new_raw=$(SubWCRev . 2>/dev/null | tr '\n' ' ' | tr -d '\r') rev_new_raw=$(echo $rev_new_raw | sed 's/[^0-9]*\([0-9]*\)\(.*\)/\1 \2/') rev_new=0 a=$(echo $rev_new_raw | sed 's/\([0-9]*\).*/\1/') let "a+=0...
Shell
#! /bin/bash # rev_new_raw=$(svnversion -n . 2>/dev/null | tr '\n' ' ' | tr -d '\r') [ -n "$rev_new_raw" ] || rev_new_raw=$(SubWCRev . 2>/dev/null | tr '\n' ' ' | tr -d '\r') rev_new_raw=$(echo $rev_new_raw | sed 's/[^0-9]*\([0-9]*\)\(.*\)/\1 \2/') rev_new=0 a=$(echo $rev_new_raw | sed 's/\([0-9]*\).*/\1/') let "a+=0...
Shell
#! /bin/bash # # Automatic resource file list generation # Created by Dimok outFile="./source/Memory/filelist.h" count_old=$(cat $outFile 2>/dev/null | tr -d '\n\n' | sed 's/[^0-9]*\([0-9]*\).*/\1/') count=0 for i in $(find ./data/images/ ./data/sounds/ ./data/fonts/ -maxdepth 1 -type f \( ! -printf "%f\n" \) | sort...
Shell
#! /bin/bash # # Automatic resource file list generation # Created by Dimok outFile="./source/Memory/filelist.h" count_old=$(cat $outFile 2>/dev/null | tr -d '\n\n' | sed 's/[^0-9]*\([0-9]*\).*/\1/') count=0 for i in $(find ./data/images/ ./data/sounds/ ./data/fonts/ -maxdepth 1 -type f \( ! -printf "%f\n" \) | sort...
Shell
#!/bin/bash cd es_ES/LC_MESSAGES msgfmt *po cd ../..
Shell
#!/bin/bash CURRENTDIR=`pwd` cd .. xgettext --omit-header --no-location --from-code=UTF-8 --output-dir=$CURRENTDIR *php include/*php js/*php include/*php
Shell
#!/bin/bash CURRENTDIR=`pwd` cd .. xgettext --omit-header --no-location --from-code=UTF-8 --output-dir=$CURRENTDIR *php include/*php js/*php include/*php
Shell
#!/bin/bash cd es_ES/LC_MESSAGES msgfmt *po cd ../..
Shell
#!/bin/bash cd es_ES/LC_MESSAGES msgfmt *po cd ../..
Shell
#!/bin/bash CURRENTDIR=`pwd` cd .. xgettext --omit-header --no-location --from-code=UTF-8 --output-dir=$CURRENTDIR *php include/*php js/*php include/*php
Shell
#!/bin/bash CURRENTDIR=`pwd` cd .. xgettext --omit-header --no-location --from-code=UTF-8 --output-dir=$CURRENTDIR *php include/*php js/*php include/*php
Shell
#!/bin/bash cd es_ES/LC_MESSAGES msgfmt *po cd ../..
Shell
for a in *test.py ;do ./$a $1 ; done
Shell
#!/bin/bash # Simple bash script to Unify identation in our python files: # * converts tabs into 4 spaces # * removes trailing whitespaces # (c) 2009 Nicolas Dumazet # License: WTFPL Version 2 for file in $(grep -Rl [[:cntrl:]] . | grep -v ".svn" | grep "\.py$") do sed -i 's/\t/ /g' $file sed -i 's/ $//g' $...
Shell
#!/bin/bash # Simple bash script to Unify identation in our python files: # * converts tabs into 4 spaces # * removes trailing whitespaces # (c) 2009 Nicolas Dumazet # License: WTFPL Version 2 for file in $(grep -Rl [[:cntrl:]] . | grep -v ".svn" | grep "\.py$") do sed -i 's/\t/ /g' $file sed -i 's/ $//g' $...
Shell
mvn clean deploy -DperformRelease=true -DaltDeploymentRepository=maven.xwiki.org::default::scp://maven.xwiki.org/home/maven/public_html/externals -U
Shell
#!/bin/sh dir=`pwd` migrate=$dir/migrate rm -rf $migrate >> /dev/null mkdir $migrate baseDir=org.wikimodel.wem src="src/main/java/org/wikimodel/wem" test="src/test/java/org/wikimodel/wem/test" # # Aggregator POM # cp $dir/pom-aggregator.xml $migrate/pom.xml # # Copy all the sources for the core bundle # ( cd $migra...
Shell
#!/bin/sh dir=`pwd` migrate=$dir/migrate rm -rf $migrate >> /dev/null mkdir $migrate baseDir=org.wikimodel.wem src="src/main/java/org/wikimodel/wem" test="src/test/java/org/wikimodel/wem/test" # # Aggregator POM # cp $dir/pom-aggregator.xml $migrate/pom.xml # # Copy all the sources for the core bundle # ( cd $migra...
Shell
mvn clean deploy -DperformRelease=true -DaltDeploymentRepository=maven.xwiki.org::default::scp://maven.xwiki.org/home/maven/public_html/externals -U
Shell
#!/bin/sh dir=`pwd` migrate=$dir/migrate rm -rf $migrate >> /dev/null mkdir $migrate baseDir=org.wikimodel.wem src="src/main/java/org/wikimodel/wem" test="src/test/java/org/wikimodel/wem/test" # # Aggregator POM # cp $dir/pom-aggregator.xml $migrate/pom.xml # # Copy all the sources for the core bundle # ( cd $migra...
Shell
#!/bin/sh dir=`pwd` migrate=$dir/migrate rm -rf $migrate >> /dev/null mkdir $migrate baseDir=org.wikimodel.wem src="src/main/java/org/wikimodel/wem" test="src/test/java/org/wikimodel/wem/test" # # Aggregator POM # cp $dir/pom-aggregator.xml $migrate/pom.xml # # Copy all the sources for the core bundle # ( cd $migra...
Shell
#!/bin/bash set -e echo -n "Enter the version for this release: " read ver if [ ! $ver ]; then echo "Invalid version." exit fi name="select2" js="$name.js" mini="$name.min.js" css="$name.css" release="$name-$ver" tag="$ver" branch="build-$ver" curbranch=`git branch | grep "*" | sed "s/* //"` timestamp=$(date) tok...
Shell
#!/bin/bash set -e echo -n "Enter the version for this release: " read ver if [ ! $ver ]; then echo "Invalid version." exit fi name="select2" js="$name.js" mini="$name.min.js" css="$name.css" release="$name-$ver" tag="$ver" branch="build-$ver" curbranch=`git branch | grep "*" | sed "s/* //"` timestamp=$(date) tok...
Shell
#!/bin/bash set -e echo -n "Enter the version for this release: " read ver if [ ! $ver ]; then echo "Invalid version." exit fi name="select2" js="$name.js" mini="$name.min.js" css="$name.css" release="$name-$ver" tag="$ver" branch="build-$ver" curbranch=`git branch | grep "*" | sed "s/* //"` timestamp=$(date) tok...
Shell
#!/bin/bash set -e echo -n "Enter the version for this release: " read ver if [ ! $ver ]; then echo "Invalid version." exit fi name="select2" js="$name.js" mini="$name.min.js" css="$name.css" release="$name-$ver" tag="$ver" branch="build-$ver" curbranch=`git branch | grep "*" | sed "s/* //"` timestamp=$(date) tok...
Shell
#! /bin/bash # rev_new_raw=$(svnversion -n . 2>/dev/null | tr '\n' ' ' | tr -d '\r') [ -n "$rev_new_raw" ] || rev_new_raw=$(SubWCRev . 2>/dev/null | tr '\n' ' ' | tr -d '\r') rev_new_raw=$(echo $rev_new_raw | sed 's/[^0-9]*\([0-9]*\)\(.*\)/\1 \2/') rev_new=0 a=$(echo $rev_new_raw | sed 's/\([0-9]*\).*/\1/') let "a+=0...
Shell
#! /bin/bash # rev_new_raw=$(svnversion -n . 2>/dev/null | tr '\n' ' ' | tr -d '\r') [ -n "$rev_new_raw" ] || rev_new_raw=$(SubWCRev . 2>/dev/null | tr '\n' ' ' | tr -d '\r') rev_new_raw=$(echo $rev_new_raw | sed 's/[^0-9]*\([0-9]*\)\(.*\)/\1 \2/') rev_new=0 a=$(echo $rev_new_raw | sed 's/\([0-9]*\).*/\1/') let "a+=0...
Shell
#!/bin/bash DATA_FILE="" URLS_FILE=wiki-link-urls.dat SPLIT_DIR=split_urls if [ $# -ne 1 ] then echo "Usage: ./`basename $0` wiki-link-data-file" exit 1 else DATA_FILE=$1 fi # filter the data file URL lines only (should combine sed into one) if [ -e "$URLS_FILE" ] then echo "$URLS_FILE already exists... skipp...
Shell
#!/bin/bash LOG_DIR=logs/`basename $1` OUTPUT_DIR=pages/`basename $1` echo $LOG_DIR echo $OUTPUT_DIR mkdir -p $LOG_DIR mkdir -p $OUTPUT_DIR if [ ! -e "$LOG_DIR/complete" ] then if [ ! -e "$LOG_DIR/working" ] then #remove potentially, partially downloaded chunk rm -r $...
Shell
#!/bin/bash echo $1 mkdir google cd google for ((i=0; i<10; i+=1)); do cat $1/data-0000$i-of-00010.gz | zcat; done | perl -ne 'if (($s .= $_) =~ s/(.*)\n{3}//s) {$n++; open F, sprintf(">%09d", $n); print F $1; close F}' cd ..
Shell
#!/bin/bash redis-cli -h compute-1-14 -p 63793 KEYS * | xargs redis-cli -h compute-1-14 -p 63793 DEL
Shell
#!/bin/bash # run this first: /home/martin/bin/redis-server ./conf/redis.conf REDIS_HOST=`hostname` REDIS_PORT=63793 NUM_WORKERS=5 NAME=avg-context mkdir -p ./json mkdir -p ./logs/$NAME # populate Redis. mvn scala:run -Dlauncher="avg-context-master" > ./logs/$NAME/master.log # start workers for i in `seq 1 $NUM_...
Shell
#!/bin/bash # run this first: /home/martin/bin/redis-server ./conf/redis.conf REDIS_HOST=`hostname` REDIS_PORT=63793 NUM_WORKERS=150 mkdir -p ./json mkdir -p ./logs/to_json # populate Redis. #mvn scala:run -Dlauncher="write-json-redis-master" > ./logs/to_json/master.log # start workers for i in `seq 50 $NUM_WORKE...
Shell
#!/bin/bash PAGES_DIR="" if [ $# -ne 1 ] then echo "Usage: ./`basename $0` retrieved-pages-dir/" exit 1 else PAGES_DIR=$1 fi # works with gzipped pages (-z) find $PAGES_DIR/ -name "*" -type f | parallel --progress -j0 file -b -i -z > filetypes.dat cat filetypes.dat | sort | uniq -c | sort > filetype_distributi...
Shell
#!/bin/bash # run this first: /home/martin/bin/redis-server ./conf/redis.conf REDIS_HOST=`hostname` REDIS_PORT=63793 NUM_WORKERS=50 NAME=num-pages-with-mentions mkdir -p ./json mkdir -p ./logs/$NAME # populate Redis. mvn scala:run -Dlauncher=$NAME-master > ./logs/$NAME/master.log # start workers for i in `seq 1 ...
Shell