code
stringlengths
1
1.96M
language
stringclasses
1 value
#!/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 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 # 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 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/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 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/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 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
# ltmain.sh - Provide generalized library-building support services. # NOTE: Changing this file will not affect anything until you rerun configure. # # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, # 2007, 2008 Free Software Foundation, Inc. # Originally by Gordon Matzigkeit <gord@gnu.ai.mi...
Shell
#! /bin/sh # Configuration validation subroutine script. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 # Free Software Foundation, Inc. timestamp='2008-01-16' # This file is (in principle) common to ALL GNU software. # The presence of a ma...
Shell
#! /bin/sh # Attempt to guess a canonical system name. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 # Free Software Foundation, Inc. timestamp='2008-01-23' # This file is free software; you can redistribute it and/or modify it # under the...
Shell
MIDDLE MOUSE CLICK ON COMMAND "Compiler.Compile" Compiler.Compile XLTLBase.Mod XLTLBloom.Mod XLTLGL.Mod XLTLE.Mod XLTLMath.Mod XLTLNoise.Mod XLTLgeomobj.Mod XLTLVoxel.Mod XLTLFRep.Mod XLTLM2Space.Mod XLTLM3Space.Mod XLTLM4Space.Mod XLTLRetina.Mod XLTLCellAutoVox.Mod XLTLlife.Mod XLTLDynamicStrings.Mod mdemo5.Mod XLT...
Shell
Sage.UDPChat.Text Sage.UDPChatBase.Mod Sage.UDPChatClient.Mod Sage.UDPChatServer.Mod Compiler.Compile Sage.UDPChatBase.Mod Sage.UDPChatClient.Mod Sage.UDPChatServer.Mod~ UDPChatServer.Start UDPChatClient.Open SystemTools.Free UDPChatClient UDPChatServer UDPChatBase~
Shell
OpenAL Bindings for LinuxAos and WinAos For LinuxAos: Compiler.Compile Unix.OpenAL.Mod Unix.OpenALefx.Mod Unix.OpenALext.Mod ~ For Windows: Compiler.Compile Win32.OpenAL.Mod Win32.OpenALefx.Mod Win32.OpenALext.Mod~ Examples: Compiler.Compile OpenALinfo.Mod TestOpenAL0.Mod TestOpenALWav.Mod ~ OpenALinfo.Do ~ ...
Shell
XLTLNeoRender.Open <== MIDDLE MOUSE CLICK ON THIS TEXT! SystemTools.FreeDownTo XLTLBase <== THIS RESETS THE WORLD TO ITS ORIGINAL STATE
Shell
#!/bin/sh DIRECTORY=$(cd `dirname $0` && pwd) GIT_DIR="$DIRECTORY"/osmand-git GIT_URL=git://github.com/osmandapp/Osmand.git GIT_ORIGIN_NAME=origin #rm -rf "${GIT_DIR}" # initialize git if it is not present (clone it) if [ ! -d "$GIT_DIR" ]; then git clone ${GIT_URL} "${GIT_DIR}" fi # update git cd "${GIT_DIR}" gi...
Shell
#!/bin/sh DIRECTORY=$(cd `dirname $0` && pwd) GIT_SITE_DIR=$DIRECTORY/osmand-git/config/site LOCAL_SITE_DIR=/var/www-download files='*.php tile_sources.xml favicon.ico' for f in $files ; do cp $GIT_SITE_DIR/$f $LOCAL_SITE_DIR/ -u; done
Shell
#!/bin/sh DIRECTORY=$(cd `dirname $0` && pwd) GIT_DIR="$DIRECTORY"/osmand-git GIT_ORIGIN_NAME=origin BUILD_DIR="$DIRECTORY"/builds LATESTS_DIR="$DIRECTORY"/latests VERSION_FILE=./DataExtractionOSM/src/net/osmand/Version.java DATE=$(date +%Y-%m-%d) SHORT_DATE=$(date +%d-%m) # clean all files in build directory rm -r ...
Shell
#!/bin/sh DIRECTORY=$(cd `dirname $0` && pwd) ## VARIABLES ### LOG_DIR="$DIRECTORY"/logs DATE=$(date +%d-%m-%y) LOG_FILE="$LOG_DIR/${DATE}.log" mkdir $LOG_DIR touch $LOG_FILE git pull --rebase 2>&1 >>$LOG_FILE # 1. Update git directory "${DIRECTORY}/update_git.sh" 2>&1 >>$LOG_FILE # 2. Go through branches and gen...
Shell
#!/bin/sh DIRECTORY=$(cd `dirname $0` && pwd) GIT_DIR="$DIRECTORY"/osmand-git GIT_URL=git://github.com/osmandapp/Osmand.git if [ ! -d "$GIT_DIR" ]; then git clone ${GIT_URL} "${GIT_DIR}" fi cd "$GIT_DIR" git checkout . git reset HEAD --hard git checkout master # First time add entries to .git/config (!) and add...
Shell
#!/bin/sh DIRECTORY=$(cd `dirname $0` && pwd) FTP_SITE=download.osmand.net FTP_FOLDER=/var/www-download/night-builds FTP_LATEST=/var/www-download/latest-night-build # FTP_USER in local.properties # FTP_PWD= in local.properties BUILD_DIR="$DIRECTORY"/builds LATEST_DIR="$DIRECTORY"/latests . "$DIRECTORY"/local.properti...
Shell
#!/bin/sh DIRECTORY=$(cd `dirname $0` && pwd) FTP_SITE=download.osmand.net FTP_FOLDER=night-builds FTP_LATEST=latest-night-build # FTP_USER in local.properties # FTP_PWD= in local.properties BUILD_DIR="$DIRECTORY"/builds LATEST_DIR="$DIRECTORY"/latests . "$DIRECTORY"/local.properties # 3. upload to ftp server lftp -c...
Shell
cd ~/gen_indexes rm osmand.log rm console # update map creator cd OsmAndMapCreator yes | unzip /var/www-download/latest-night-build/OsmAndMapCreator-development.zip cd .. # remove backup and create new backup rm -r backup mkdir backup mv indexes/uploaded/*.* backup # remove all previous files rm -r indexes mkdir inde...
Shell
# This file will start the Osm Extraction UI with custom memory settings for # the JVM. With the below settings the heap size (Available memory for the application) # will range from 64 megabyte up to 512 megabyte. #/usr/lib/jvm/java-6-sun/jre/bin/ if [ -n "`ps auxw | grep batch_server.xml | grep IndexBatchCreator | g...
Shell
cd ~/gen_indexes rm osmand.log rm console # update map creator cd OsmAndMapCreator yes | unzip /var/www-download/latest-night-build/OsmAndMapCreator-development.zip cd .. # remove backup and create new backup rm -r backup mkdir backup # Not space enough - so that's commented right now # mv indexes/uploaded/*.* backup ...
Shell
# This file will start the Osm Extraction UI with custom memory settings for # the JVM. With the below settings the heap size (Available memory for the application) # will range from 64 megabyte up to 512 megabyte. #/usr/lib/jvm/java-6-sun/jre/bin/ if [ -n "`ps auxw | grep batch_server.xml | grep IndexBatchCreator | g...
Shell
#!/bin/sh # This file will start the Osm Extraction UI with custom memory settings for # the JVM. With the below settings the heap size (Available memory for the application) # will range from 64 megabyte up to 720 megabyte. java -Djava.util.logging.config.file=logging.properties -Xms64M -Xmx720M -cp "./OsmAndMapCrea...
Shell
# This file will start the Osm Extraction UI with custom memory settings for # the JVM. With the below settings the heap size (Available memory for the application) # will range from 64 megabyte up to 512 megabyte. java -Djava.util.logging.config.file=logging.properties -Xms64M -Xmx720M -cp "./OsmAndMapCreator.jar:./l...
Shell
#!/bin/sh # This file will start the Osm Extraction UI with custom memory settings for # the JVM. With the below settings the heap size (Available memory for the application) # will range from 64 megabyte up to 512 megabyte. java -Djava.util.logging.config.file=logging.properties -Xms64M -Xmx512M -cp "./OsmAndMapCrea...
Shell
#!/bin/bash # http://dadaru.blog.51cto.com/218979/477236 # Check if user is root if [ $(id -u) != "0" ]; then echo "Error: You must be root to run this script, please use root to install lnmp" exit 1 fi #downurl #nginx http://nginx.org/download/nginx-1.0.1.tar.gz #php http://cn.php.net/get/php-5.3.6.tar....
Shell
#!/bin/bash # http://dadaru.blog.51cto.com/218979/477236 # Check if user is root if [ $(id -u) != "0" ]; then echo "Error: You must be root to run this script, please use root to install lnmp" exit 1 fi #downurl #nginx http://nginx.org/download/nginx-1.0.1.tar.gz #php http://cn.php.net/get/php-5.3.6.tar....
Shell
#!/bin/bash # generates plotting script for spectral density output (Energy components # # we assume the different modes of phi and Fphi get dumped to spectra_{nki}_[real/imag].out # # mixed -layer variance goes into ml_var.out #------------------------------------------------------_# # globals: #--------------------...
Shell
#!/bin/bash # generates plotting script for output # # we assume the isotropic phis get dumped to phi.out # isotropic Gs get dumpted to G.out ./plotspec gnuscript="plot.plt" gnubin=$(dirname $(which gnuplot))/gnuplot if [ "$gnubin" == "" ]; then echo Error: cannot find gnuplot. exit 1; fi; #numks=...
Shell
#!/bin/bash # generates plotting script for spectral density output (Energy components # # we assume the different modes of phi and Fphi get dumped to spectra_{nki}_[real/imag].out # # mixed -layer variance goes into ml_var.out #------------------------------------------------------_# # globals: #--------------------...
Shell
#!/bin/bash # generates plotting script for output # # we assume the isotropic phis get dumped to phi.out # isotropic Gs get dumpted to G.out ./plotspec gnuscript="plot.plt" gnubin=$(dirname $(which gnuplot))/gnuplot if [ "$gnubin" == "" ]; then echo Error: cannot find gnuplot. exit 1; fi; #numks=...
Shell
#!/bin/bash # generates plotting script for spectral density output (Energy components # # we assume the different modes of phi and Fphi get dumped to spectra_{nki}_[real/imag].out # # mixed -layer variance goes into ml_var.out #------------------------------------------------------_# # globals: #--------------------...
Shell
#!/bin/bash # generates plotting script for output # # we assume the isotropic phis get dumped to phi.out # isotropic Gs get dumpted to G.out ./plotspec gnuscript="plot.plt" gnubin=$(dirname $(which gnuplot))/gnuplot if [ "$gnubin" == "" ]; then echo Error: cannot find gnuplot. exit 1; fi; #numks=...
Shell
#!/bin/bash # generates plotting script for spectral density output (Energy components # # we assume the different modes of phi and Fphi get dumped to spectra_{nki}_[real/imag].out # # mixed -layer variance goes into ml_var.out #------------------------------------------------------_# # globals: #--------------------...
Shell
#!/bin/bash # generates plotting script for output # # we assume the isotropic phis get dumped to phi.out # isotropic Gs get dumpted to G.out ./plotspec gnuscript="plot.plt" gnubin=$(dirname $(which gnuplot))/gnuplot if [ "$gnubin" == "" ]; then echo Error: cannot find gnuplot. exit 1; fi; #numks=...
Shell
#!/bin/bash ################################################################################# # # Scripts compiles various components of the model based on flags specified # ################################################################################# function runmake { local flags= local pflag=serial while [ "$...
Shell
#!/bin/bash ################################################################################# # # Scripts compiles various components of the model based on flags specified # ################################################################################# function runmake { local flags= local pflag=serial while [ "$...
Shell
#!/bin/bash includeList= testList= bin=test_main.qg cbin=./main_opt dbin=./main_dbg binaries="$dbin ./main_opt" valGrind= binBody= if [ ! -e ./default.qg ]; then touch default.qg; else if ! ./main_opt -compile &> /dev/null; then echo 'Error: Could not compile default.qg module.' > /dev/stderr; echo 'Pl...
Shell
#!/bin/bash includeList= testList= bin=test_main.qg cbin=./main_opt dbin=./main_dbg binaries="$dbin ./main_opt" valGrind= binBody= if [ ! -e ./default.qg ]; then touch default.qg; else if ! ./main_opt -compile &> /dev/null; then echo 'Error: Could not compile default.qg module.' > /dev/stderr; echo 'Pl...
Shell
#!/bin/bash resultsFileName='testResults.out'; testData='simpleParseTests.dat'; outputData='simpleParseTestResults.dat'; testBaseLine='simpleParseTestsBaseLine.dat'; testScript='simpleParseTests.qg'; cat $testData | awk ' BEGIN { FS=";" counter=0; # generate script header printf("SCRIPT {\n"); printf("\n"); ...
Shell
#!/bin/bash bin=runParseTests bdir=$(pwd) for token in $(find . -type d); do if [ -f ${token}/${bin} ]; then pushd ./ > /dev/null cd ${token} echo +===================================================================+ cdir=$(pwd) echo Running all tests under: .${cdir#${bdir}} echo + = = = = = = = = = = = = = = = = = = ...
Shell
#!/bin/bash bin=runParseTests bdir=$(pwd) for token in $(find . -type d); do if [ -f ${token}/${bin} ]; then pushd ./ > /dev/null cd ${token} echo +===================================================================+ cdir=$(pwd) echo Running all tests under: .${cdir#${bdir}} echo + = = = = = = = = = = = = = = = = = = ...
Shell
#!/bin/bash resultsFileName='testResults.out'; testData='simpleParseTests.dat'; outputData='simpleParseTestResults.dat'; testBaseLine='simpleParseTestsBaseLine.dat'; testScript='simpleParseTests.qg'; cat $testData | awk ' BEGIN { FS=";" counter=0; # generate script header printf("SCRIPT {\n"); printf("\n"); ...
Shell
#!/bin/bash resultsFileName='testResults.out'; testData='exprComparisonTests.dat'; outputData='exprComparisonTestResults.dat'; testBaseLine='exprComparisonTestsBaseLine.dat'; testScript='exprComparisonTests.qg'; cat $testData | awk ' BEGIN { FS=";" counter=0; # generate script header printf("SCRIPT {\n"); pri...
Shell
#!/bin/bash resultsFileName='testResults.out'; testData='exprComparisonTests.dat'; outputData='exprComparisonTestResults.dat'; testBaseLine='exprComparisonTestsBaseLine.dat'; testScript='exprComparisonTests.qg'; cat $testData | awk ' BEGIN { FS=";" counter=0; # generate script header printf("SCRIPT {\n"); pri...
Shell
#!/bin/sh if [[ -z $ADB ]]; then ADB=adb; fi ./kill_process.sh $ADB shell rm -r /data/data/com.google.android.apps.iosched/*
Shell
#!/bin/sh if [[ -z $ADB ]]; then ADB=adb; fi $ADB shell am force-stop com.google.android.apps.iosched
Shell
#!/bin/sh if [[ -z $ADB ]]; then ADB=adb; fi $ADB shell "echo '$*' | sqlite3 -header -column /data/data/com.google.android.apps.iosched/databases/schedule.db"
Shell
#!/bin/sh # Sessions list #adb shell am start -a android.intent.action.VIEW -d content://com.google.android.apps.iosched/tracks/android/sessions # Vendors list #adb shell am start -a android.intent.action.VIEW -d content://com.google.android.apps.iosched/tracks/android/vendors # Session detail #adb shell am start -a...
Shell
#!/bin/sh if [[ -z $ADB ]]; then ADB=adb; fi MAC_UNAME="Darwin" if [[ "`uname`" == ${MAC_UNAME} ]]; then DATE_FORMAT="%Y-%m-%dT%H:%M:%S" else DATE_FORMAT="%Y-%m-%d %H:%M:%S" fi if [ -z "$1" ]; then NOW_DATE=$(date "+${DATE_FORMAT}") echo Please provide a mock time in the format \"${NOW_DATE}\" or \"d\" to del...
Shell
#!/bin/sh adb shell cat /data/data/com.google.android.apps.iosched/shared_prefs/com.google.android.apps.iosched_preferences.xml | xmllint --format -
Shell
#!/bin/sh # Remember VERBOSE only works on debug builds of the app adb shell setprop log.tag.iosched_SyncHelper VERBOSE adb shell setprop log.tag.iosched_SessionsHandler VERBOSE adb shell setprop log.tag.iosched_ImageCache VERBOSE adb shell setprop log.tag.iosched_ImageWorker VERBOSE adb shell setprop log.tag.iosched_I...
Shell
#!/bin/sh adb shell pm clear com.google.android.apps.iosched
Shell
#!/bin/sh if [[ -z $ADB ]]; then ADB=adb; fi $ADB shell am start \ -a android.intent.action.MAIN \ -c android.intent.category.LAUNCHER \ -n com.google.android.apps.iosched/.ui.HomeActivity
Shell
# Script for debian packaging by Tal Hadad. # You can do what ever you want with this file under # your responsibility, no copyright intended. #The format is: #ARGS_INPUT_FORMAT="OPTION STRING 1|OPTION STRING 2(OPTIONAL)|OPTION STRING N(OPTIONAL):VARIABLE NAME WHICH HOLDS OPTION VALUE:DEFAULT OPTION VALUE(OPTIONAL):DE...
Shell
#!/bin/bash # This script can be used to manually update po files from a pot file if [ -f ./xnoise.pot ] ; then echo "found pot file!" else echo "no pot file found" exit 1 fi for file in ./*.po ; do msgmerge -U $file xnoise.pot done
Shell
#!/bin/sh # Run this to generate all the initial makefiles, etc. srcdir=`dirname $0` test -z "$srcdir" && srcdir=. PKG_NAME="xnoise" . gnome-autogen.sh
Shell
#!/bin/bash # set -uex curl 'http://localhost:8081/list-games'
Shell
#!/bin/bash # set -ue set -x curl -H "Content-Type: application/json" "http://localhost:12345/ping"
Shell
#!/bin/bash # set -ue backend="" # match dev_appserver oauth2 default user_id userID="0" while [ $# -ge 1 ] do arg="$1" shift if [ "$arg" == "-b" ] then backend=1 else userID="$arg" fi done if [ "$backend" ] then # matcher backend set -x curl --data-binary "{}" -H "Content-Type: applicatio...
Shell
#!/bin/bash # set -uex dev_appserver.py \ --host 0.0.0.0 \ --skip_sdk_update_check yes \ . $*
Shell
#!/bin/bash # set -uex curl 'http://localhost:8081/debug'
Shell
#!/bin/bash # set -uex curl 'http://localhost:8081/start-game'
Shell
#!/bin/bash # set -ue set -x curl -H "Content-Type: application/json" "http://localhost:12345/log"
Shell
#!/bin/bash # set -ue # make sure stuff is installed [ ! -d 'node_modules' ] && npm install socket.io express set -x # run the game node games-server/main.js $*
Shell
#!/bin/bash # set -ue pairing_key=$( cat shared/pairing-key.json | sed -e 's/{"key": "//' -e 's/".*//' ) set -x data='{ "userID": 823478923748932, "displayName": "fredsa", "game_name": "syXv", "player_game_key": "283473289478329" }' curl --data-binary "$data" -H "Content-Type: application/json" "http://localhost:1234...
Shell
#!/bin/sh # Start GUI Vim on a copy of the tutor file. # Usage: gvimtutor [xx] # See vimtutor for usage. exec `dirname $0`/vimtutor -g "$@"
Shell
#! /bin/sh # Start Vim on a copy of the tutor file. # Usage: vimtutor [-g] [xx] # Where optional argument -g starts vimtutor in gvim (GUI) instead of vim. # and xx is a language code like "es" or "nl". # When an argument is given, it tries loading that tutor. # When this fails or no argument was given, it tries using...
Shell
#! /bin/sh # installman.sh --- install or uninstall manpages for Vim # # arguments: # 1 what: "install", "uninstall" or "xxd" # 2 target directory e.g., "/usr/local/man/it/man1" # 3 language addition e.g., "" or "-it" # 4 vim location as used in manual pages e.g., "/usr/local/share/vim" # 5 runtime dir ...
Shell
#! /bin/sh # # which.sh -- find where an executable is located. It's here because the # "which" command is not supported everywhere. Used by Makefile. IFS=":" for ac_dir in $PATH; do if test -f "$ac_dir/$1"; then echo "$ac_dir/$1" break fi done
Shell
#! /bin/sh # # link.sh -- try linking Vim with different sets of libraries, finding the # minimal set for fastest startup. The problem is that configure adds a few # libraries when they exist, but this doesn't mean they are needed for Vim. # # Author: Bram Moolenaar # Last change: 2010 Nov 03 # License: Publi...
Shell
#! /bin/sh # # osdef.sh -- copy osdef.h.in to osdef.h while removing declarations # found in the system header files. Caution: weird sed magic going on here. # Warnings are printed if sed did not survive. # # (C) Michael Schroeder, Juergen Weigert # # osdef.h.in has been split into osdef1.h.in and osdef2.h.in, because ...
Shell
#! /bin/sh # mkinstalldirs --- make directory hierarchy # Author: Noah Friedman <friedman@prep.ai.mit.edu> # Created: 1993-05-16 # Public domain errstatus=0 for file do set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'` shift pathcomp= for d do pathcomp="$pathcomp$d" ...
Shell
#! /bin/sh # # pathdef.sh: adjust pathdef.c for auto/link.sed, if it exists # if test -s auto/link.sed; then cp auto/pathdef.c auto/pathdef.tmp sed -f auto/link.sed <auto/pathdef.tmp >auto/pathdef.c rm -f auto/pathdef.tmp fi # vim:set sw=2 et:
Shell
#!/bin/sh # toolcheck -- check for tools that have severe bugs. Good that all the buggy # tools identify by version numbers. This is the spirit of GNU :-) # # 24.7.95 jw. retval=0 reply="`sh -version -c exit 2>&1 < /dev/null`" case "$reply" in GNU*1.14.3*) echo "- sh is '$reply'"; echo " CAUTION: This she...
Shell
#! /bin/sh # installml.sh --- install or uninstall manpage links for Vim # # arguments: # 1 what: "install" or "uninstall" # 2 also do GUI pages: "yes" or "" # 3 target directory e.g., "/usr/local/man/it/man1" # 4 vim exe name e.g., "vim" # 5 vimdiff exe name e.g., "vimdiff" # 6 evim exe name ...
Shell
#!/bin/sh # # ref - Check spelling of the arguments # # Usage: ref word .. # # can be used for the K command of Vim # spell <<EOF $* EOF
Shell
#!/bin/sh # enable DEC locator input model on remote terminal printf "\033[1;2'z\033[1;3'{\c" vim "$@" # disable DEC locator input model on remote terminal printf "\033[2;4'{\033[0'z\c"
Shell
#!/bin/sh # Shell script to start Vim with less.vim. # Read stdin if no arguments were given and stdin was redirected. if test -t 1; then if test $# = 0; then if test -t 0; then echo "Missing filename" 1>&2 exit fi vim --cmd 'let no_plugin_maps = 1' -c 'runtime! macros/less.vim' - else ...
Shell
#! /bin/sh prefix=stock_ list= for file in "$@" do name=`echo "$file" | sed 's|-|_|g; s|^.*/||; s|\..*$||'` list="$list $prefix$name $file" done gdk-pixbuf-csource --raw --static --build-list $list
Shell
#!/bin/bash # # Copyright (C) 2007 The Android Open Source Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ap...
Shell
#!/bin/bash # # Copyright (C) 2007 The Android Open Source Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ap...
Shell
#!/bin/bash # # Copyright 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed ...
Shell
#!/bin/bash prepare_rpmbuild() { PACKAGE="${1}"; shift SOURCES_DIR="${PACKAGER_RPM_DIR}/${PACKAGE}/SOURCES" SPECFILE="${PACKAGER_RPM_DIR}/${PACKAGE}/SPECS/${PACKAGE}.spec" SPECINFILE="${SPECFILE}.in" mkdir -p "${SOURCES_DIR}" pushd "${SOURCES_DIR}" case "${PACKAGE}" in jubatus ) rm -rf jubatus git cl...
Shell
#!/bin/bash -ue ################################################################################ # Build RPMs for Jubatus & Dependencies ################################################################################ # Packages to be built, in order of dependencies PKGS_DEPENDS="msgpack pficommon zookeeper-client gl...
Shell
#!/bin/bash prepare_rpmbuild() { PACKAGE="${1}"; shift SOURCES_DIR="${PACKAGER_RPM_DIR}/${PACKAGE}/SOURCES" SPECFILE="${PACKAGER_RPM_DIR}/${PACKAGE}/SPECS/${PACKAGE}.spec" SPECINFILE="${SPECFILE}.in" mkdir -p "${SOURCES_DIR}" pushd "${SOURCES_DIR}" case "${PACKAGE}" in jubatus ) rm -rf jubatus git cl...
Shell
#!/bin/bash -ue ################################################################################ # Build RPMs for Jubatus & Dependencies ################################################################################ # Packages to be built, in order of dependencies PKGS_DEPENDS="msgpack pficommon zookeeper-client gl...
Shell
#! /bin/sh ./waf configure $*
Shell
# # PLSA Program by HONG Chuntao # 2006.127 # # This script runs the PLSA program on three datasets using 1,2,4,8,16 threads, and # dividing the co-occurrence into 4,8,16 blocks. # # The datasets are available for download from http://glaros.dtc.umn.edu/gkhome/cluto/cluto/download # # You are free to change the para...
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) to...
Shell