code stringlengths 1 1.96M | language stringclasses 1
value |
|---|---|
#!/bin/sh
# Create a backup tar gzip file of the cwd with the date appended
# located in the parent directory.
FILENAME=../`pwd|xargs basename`-`date -j "+%Y-%m-%d"`.tgz
echo Will create $FILENAME
tar cfz $FILENAME .
echo Done.
| Shell |
#!/bin/sh
#
F="configure-bb10"
if test "$*" = "--help" -o "$*" = "-h"; then
echo "$F [--simulator] [OPTIONS]"
echo ""
echo "where:"
echo " --simulator Optional parameter to specify that the compilation"
echo " target is a simulator."
echo " OPTIONS Other options that will be passed dire... | Shell |
#!/bin/sh
#
# install - install a program, script, or datafile
# This comes from X11R5 (mit/util/scripts/install.sh).
#
# Copyright 1991 by the Massachusetts Institute of Technology
#
# Permission to use, copy, modify, distribute, and sell this software and its
# documentation for any purpose is hereby granted without ... | Shell |
#!/bin/sh
svn pset svn:keywords id $*
svn pset svn:eol-style native $*
| Shell |
#!/bin/sh
svn add $*
./svn_pset $*
| Shell |
#!/bin/sh
MMP=$1
if test "$MMP" == ""; then
echo "Usage: makedef.sh FILE.MMP"
echo " or makedef.sh all"
exit 1
fi
if test "$MMP" == "all"; then
. $0 pjlib.mmp
. $0 pjlib_util.mmp
. $0 pjnath.mmp
. $0 pjmedia.mmp
. $0 pjsdp.mmp
. $0 pjsip.mmp
. $0 pjsip_simple.mmp
. $0 pjsip_ua.mmp
. $... | Shell |
#!/bin/sh
PJDIR=`pwd`
#
# Detect machine, unless the choice has been made already.
#
if [ "$MACHINE" = "" ]; then
MACHINE=`uname -m`
fi
if echo $MACHINE | grep sun4u > /dev/null; then
MACHINE_NAME=sparc
elif echo $MACHINE | grep i.86 > /dev/null; then
MACHINE_NAME=i386
elif echo $MACHINE | grep x86_64 > /d... | Shell |
#!/bin/bash
F="configure-iphone"
if test "$*" = "--help" -o "$*" = "-h"; then
echo "$F [OPTIONS]"
echo ""
echo "where:"
echo " OPTIONS Other options that will be passed directly to"
echo " ./aconfigure script. Run ./aconfigure --help"
echo " for more info."
echo ""
echo "En... | Shell |
#!/bin/sh
pwd=`pwd`
cd ${0%/*}
java -Xmx512M -cp libs/robocode.jar:libs/roborumble.jar:libs/codesize-1.1.jar roborumble.RoboRumbleAtHome ./roborumble/teamrumble.txt
cd $pwd
| Shell |
#!/bin/sh
pwd=`pwd`
cd ${0%/*}
java -Xmx512M -cp libs/robocode.jar robocode.Robocode $*
cd $pwd
| Shell |
#!/bin/sh
pwd=`pwd`
cd ${0%/*}
java -Xmx512M -cp libs/robocode.jar:libs/roborumble.jar:libs/codesize-1.1.jar roborumble.RoboRumbleAtHome ./roborumble/roborumble.txt
cd $pwd
| Shell |
#!/bin/sh
pwd=`pwd`
cd ${0%/*}
java -Xmx512M -cp libs/robocode.jar:libs/roborumble.jar:libs/codesize-1.1.jar roborumble.RoboRumbleAtHome ./roborumble/roborumble.txt
cd $pwd
| Shell |
#!/bin/sh
pwd=`pwd`
cd ${0%/*}
java -Xmx512M -cp libs/robocode.jar:libs/roborumble.jar:libs/codesize-1.1.jar roborumble.RoboRumbleAtHome ./roborumble/teamrumble.txt
cd $pwd
| Shell |
#!/bin/sh
pwd=`pwd`
cd ${0%/*}
java -Xmx1024M -cp libs/robocode.jar:libs/roborumble.jar:libs/codesize-1.1.jar roborumble.RoboRumbleAtHome ./roborumble/meleerumble.txt
cd $pwd
| Shell |
#!/bin/sh
pwd=`pwd`
cd ${0%/*}
java -Xmx512M -cp libs/robocode.jar robocode.Robocode $*
cd $pwd
| Shell |
#!/bin/sh
pwd=`pwd`
cd ${0%/*}
java -Xmx1024M -cp libs/robocode.jar:libs/roborumble.jar:libs/codesize-1.1.jar roborumble.RoboRumbleAtHome ./roborumble/meleerumble.txt
cd $pwd
| Shell |
#!/bin/sh
pwd=`pwd`
cd ${0%/*}
java -Xmx512M -cp libs/robocode.jar robocode.Robocode $*
cd $pwd
| Shell |
#!/bin/sh
pwd=`pwd`
cd ${0%/*}
java -Xmx512M -cp libs/robocode.jar:libs/roborumble.jar:libs/codesize-1.1.jar roborumble.RoboRumbleAtHome ./roborumble/teamrumble.txt
cd $pwd
| Shell |
#!/bin/sh
pwd=`pwd`
cd ${0%/*}
java -Xmx512M -cp libs/robocode.jar:libs/roborumble.jar:libs/codesize-1.1.jar roborumble.RoboRumbleAtHome ./roborumble/roborumble.txt
cd $pwd
| Shell |
#!/bin/sh
pwd=`pwd`
cd ${0%/*}
java -Xmx512M -cp libs/robocode.jar:libs/roborumble.jar:libs/codesize-1.1.jar roborumble.RoboRumbleAtHome ./roborumble/roborumble.txt
cd $pwd
| Shell |
#!/bin/sh
pwd=`pwd`
cd ${0%/*}
java -Xmx1024M -cp libs/robocode.jar:libs/roborumble.jar:libs/codesize-1.1.jar roborumble.RoboRumbleAtHome ./roborumble/meleerumble.txt
cd $pwd
| Shell |
#!/bin/sh
pwd=`pwd`
cd ${0%/*}
java -Xmx1024M -cp libs/robocode.jar:libs/roborumble.jar:libs/codesize-1.1.jar roborumble.RoboRumbleAtHome ./roborumble/meleerumble.txt
cd $pwd
| Shell |
#!/bin/sh
pwd=`pwd`
cd ${0%/*}
java -Xmx512M -cp libs/robocode.jar:libs/roborumble.jar:libs/codesize-1.1.jar roborumble.RoboRumbleAtHome ./roborumble/teamrumble.txt
cd $pwd
| Shell |
#!/bin/sh
pwd=`pwd`
cd ${0%/*}
java -Xmx512M -cp libs/robocode.jar robocode.Robocode $*
cd $pwd
| Shell |
#!/bin/bash
test $# == 0 && CNT=10 || CNT=$1
echo "cnt:;;;;"$CNT
for (( i=0 ;i < CNT ; i++ ))
do
echo "cnt:$i"
curl "http://127.0.0.1:1982/x"
done
| Shell |
#!/bin/bash
test $# == 0 && CNT=10 || CNT=$1
echo "cnt:;;;;"$CNT
for (( i=0 ;i < CNT ; i++ ))
do
echo "cnt:$i"
curl "http://127.0.0.1:1982/x"
done
| Shell |
#!/bin/bash
urls=( "http://127.0.0.1/crossdomain.xml" "http://127.0.0.1/index.xml" "http://127.0.0.1/Company/ContactUs.html" "http://127.0.0.1/Company/symbiosis.html" )
size=${#urls[@]}
for ((i=0;i<$1;i++ )) do
echo "${urls[$i%$size]}"
curl "${urls[$i%$size]}" -o ./html/idx_$i.html
done
| Shell |
#!/bin/bash
cnt=1000000
for ((i=0;i<$cnt;i++))
do
./a.out
done
| Shell |
#!/bin/bash
expire_minute=10
sleep_sec=8
media_file_home="/data34/"
manifile="/data/proxy_cache_dir/cuclive/livestream/manifest.f4m"
urlbase="http://l2.cuctv.com/cuclive/livestream"
parse_urlbase="http://192.168.233.128:8383/cuclive/livestream"
echo "starting `date +"%F %T"`"
if [ ! -e $media_file_home ] ; then
mk... | Shell |
#!/bin/bash
urls=( "http://127.0.0.1/crossdomain.xml" "http://127.0.0.1/index.xml" "http://127.0.0.1/Company/ContactUs.html" "http://127.0.0.1/Company/symbiosis.html" )
size=${#urls[@]}
for ((i=0;i<$1;i++ )) do
echo "${urls[$i%$size]}"
curl "${urls[$i%$size]}" -o ./html/idx_$i.html
done
| Shell |
#!/bin/bash
cnt=1000000
for ((i=0;i<$cnt;i++))
do
./a.out
done
| Shell |
#!/bin/bash
expire_minute=10
sleep_sec=8
media_file_home="/data34/"
manifile="/data/proxy_cache_dir/cuclive/livestream/manifest.f4m"
urlbase="http://l2.cuctv.com/cuclive/livestream"
parse_urlbase="http://192.168.233.128:8383/cuclive/livestream"
echo "starting `date +"%F %T"`"
if [ ! -e $media_file_home ] ; then
mk... | Shell |
gcc -g -Iinclude/ lib/fileutil.c lib/my_error.c -L /usr/local/lib/ lib/mem_pool.c testfile.c -ljson
| Shell |
#!/bin/bash
FILE=$1
exec_do()
{
echo "" > /data/work/workspace/suitang/log/${vid}
if [ -e /data/work/workspace/suitang/qq/${name}.mp4 ] ; then
echo "${name} has download"
return
fi
echo "/home/zy/zy-code-unp/ku6/ku6downloader/ku6downloader_g -i /home/zy/zy-code-unp/ku6/ku6downloader/js/ -r url=http://v... | Shell |
#!/bin/bash
FILE=$1
exec_do()
{
echo "" > /data/work/workspace/suitang/log/${vid}
if [ -e /data/work/workspace/suitang/qq/${name}.mp4 ] ; then
echo "${name} has download"
return
fi
echo "/home/zy/zy-code-unp/ku6/ku6downloader/ku6downloader_g -i /home/zy/zy-code-unp/ku6/ku6downloader/js/ -r url=http://v... | Shell |
#!/bin/bash
sleep_sec=4d
logs="./nohup.out /usr/local/nginx/logs/error.log /usr/local/nginx/logs/error_l2.log /usr/local/nginx/logs/error_liverobot.log /usr/local/nginx/logs/access.log"
for log in $logs
do
echo "echo \"\" >$log"
echo "" > $log
done
cmd=$0
p=${cmd:0:1}
if [ "$p" = "." ] ; then
curpath=`pwd`... | Shell |
#!/bin/bash
expire_date=2
sleep_sec=8
CURL_CMD="curl -s --connect-timeout 5 --max-time 20 "
cache_home="/data/proxy_cache_dir"
temp_home="/data/proxy_temp_dir"
vod_file_home="/data/proxy_vod_dir/vod"
f4m_file_home="/data/proxy_f4m_dir"
m3u8_file_home="/data/proxy_m3u8_dir"
hostbase="http://127.0.0.1"
parse_hostbase=... | Shell |
#!/bin/bash
sleep_sec=4d
logs="./nohup.out /usr/local/nginx/logs/error.log /usr/local/nginx/logs/error_l2.log /usr/local/nginx/logs/error_liverobot.log /usr/local/nginx/logs/access.log"
for log in $logs
do
echo "echo \"\" >$log"
echo "" > $log
done
cmd=$0
p=${cmd:0:1}
if [ "$p" = "." ] ; then
curpath=`pwd`... | Shell |
#!/bin/bash
expire_date=2
sleep_sec=8
CURL_CMD="curl -s --connect-timeout 5 --max-time 20 "
cache_home="/data/proxy_cache_dir"
temp_home="/data/proxy_temp_dir"
vod_file_home="/data/proxy_vod_dir/vod"
f4m_file_home="/data/proxy_f4m_dir"
m3u8_file_home="/data/proxy_m3u8_dir"
hostbase="http://127.0.0.1"
parse_hostbase=... | Shell |
#!/bin/bash
# 打开apache.http调试信息
adb shell setprop log.tag.org.apache.http VERBOSE
adb shell setprop log.tag.org.apache.http.wire VERBOSE
adb shell setprop log.tag.org.apache.http.headers VERBOSE
echo "Enable Debug"
| Shell |
make clean
make pch
make all | Shell |
#!/bin/sh
#***************************************************************************
#* Copyright (C) 2011 by YunQiang Su *
#* wzssyqa@gmail.com *
#* *
#*... | Shell |
#!/bin/bash
#***************************************************************************
#* Copyright (C) 2011 by YunQiang Su *
#* wzssyqa@gmail.com *
#* *
... | Shell |
#!/bin/sh
ADIUM_FRAMEWORKS_DIR="/Users/Evan/adium/build/Debug/Adium.app/Contents/Frameworks"
rm -rf *.framework
cp -r "$ADIUM_FRAMEWORKS_DIR"/AIUtilities.framework ./
cp -r "$ADIUM_FRAMEWORKS_DIR"/Adium.framework ./
cp -r "$ADIUM_FRAMEWORKS_DIR"/AdiumLibpurple.framework ./
cp -r "$ADIUM_FRAMEWORKS_DIR"/FriBidi.frame... | Shell |
#!/bin/sh
# This script use find and xgettext command to generate the translation template file for openfetion
find . -type f -iname "*.c" | xgettext --files-from=- --output=po/pidgin-ofetion.pot --from-code=utf-8 --sort-by-file --language=C --keyword=_ --keyword=gettext --keyword=i18n --keyword=N_ --add-comments --add... | Shell |
#!/bin/bash
#
# This script checks the java version and bails if it's less
# than Java6 (because we use @Override annotations on interface
# overriding methods. It then proceeds to do a maven build that
# first cleans, then builds the normal lifecycle through compilation
# unit testing (if available) up to packaging. ... | Shell |
#!/bin/bash
#
# This script is similar to minion but will do a few additional things:
# - PHP process is run in the background
# - PHP process is monitored and restarted if it exits for any reason
# - Added handlers for SUGHUP, SIGINT, and SIGTERM
#
# This is meant for long running minion tasks (like background workers... | Shell |
#!/bin/bash
#
# This script is similar to minion but will do a few additional things:
# - PHP process is run in the background
# - PHP process is monitored and restarted if it exits for any reason
# - Added handlers for SUGHUP, SIGINT, and SIGTERM
#
# This is meant for long running minion tasks (like background workers... | Shell |
#!/bin/sh
#
# This file is part of Apparat.
#
# Apparat 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 3 of the License, or
# (at your option) any later version.
#
# Apparat is distribu... | Shell |
#!/bin/sh
#
# This file is part of Apparat.
#
# Apparat 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 3 of the License, or
# (at your option) any later version.
#
# Apparat is distribu... | Shell |
#!/bin/sh
#
# This file is part of Apparat.
#
# Apparat 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 3 of the License, or
# (at your option) any later version.
#
# Apparat is distribu... | Shell |
#!/bin/sh
#
# This file is part of Apparat.
#
# Apparat 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 3 of the License, or
# (at your option) any later version.
#
# Apparat is distribu... | Shell |
#!/bin/sh
#
# This file is part of Apparat.
#
# Apparat 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 3 of the License, or
# (at your option) any later version.
#
# Apparat is distribu... | Shell |
#!/bin/sh
#
# This file is part of Apparat.
#
# Apparat 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 3 of the License, or
# (at your option) any later version.
#
# Apparat is distribu... | Shell |
#!/bin/sh
#
# This file is part of Apparat.
#
# Apparat 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 3 of the License, or
# (at your option) any later version.
#
# Apparat is distribu... | Shell |
#!/bin/sh
#
# This file is part of Apparat.
#
# Apparat 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 3 of the License, or
# (at your option) any later version.
#
# Apparat is distribu... | Shell |
#!/bin/sh
#
# This file is part of Apparat.
#
# Apparat 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 3 of the License, or
# (at your option) any later version.
#
# Apparat is distribu... | 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
#
# Copyright 2013 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/sh
adb shell pm clear com.google.android.apps.iosched | 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
# 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_BitmapCache VERBOSE
| 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 |
#!/usr/bin/env bash
##############################################################################
##
## Gradle start up script for UN*X
##
##############################################################################
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to ... | Shell |
#!/bin/sh
RC_VERSION=3.1.1-SNAPSHOT
chmod a+x restclient-ui/target/restclient-ui-${RC_VERSION}/WizTools.org\ RESTClient.app/Contents/MacOS/JavaApplicationStub
| Shell |
#!/bin/sh
VERSION=3.1-SNAPSHOT
cp restclient-cli/target/restclient-cli-${VERSION}-jar-with-dependencies.jar \
restclient-ui/target/restclient-ui-${VERSION}-jar-with-dependencies.jar \
restclient-ui/target/restclient-ui-${VERSION}-app.zip \
~/Dropbox/Public/
| Shell |
#!/bin/sh
svn log -v -r597:HEAD > rest-client-history-26.log
| Shell |
#!/bin/bash
#
# This script checks the java version and bails if it's less
# than Java6 (because we use @Override annotations on interface
# overriding methods. It then proceeds to do a maven build that
# first cleans, then builds the normal lifecycle through compilation
# unit testing (if available) up to packaging. ... | Shell |
#!/bin/bash
# Adjust these to reflect the location of NUnit in your system,
# and how you want NUnit to run
NUNIT=~/protobuf/NUnit-2.5.0.9122/bin/net-2.0/nunit-console.exe
NUNIT_OPTIONS=-noshadow
# The rest should be okay.
SRC=../src
LIB=../lib
KEYFILE=../keys/Google.ProtocolBuffers.snk
rm -rf bin
mkdir bin
# Runn... | Shell |
#!/bin/bash
echo Compiling protobufs
rm -rf tmp
mkdir tmp
PROTOS_DIR=../protos
./protoc --proto_path=$PROTOS_DIR --descriptor_set_out=tmp/compiled.pb \
$PROTOS_DIR/google/protobuf/descriptor.proto \
$PROTOS_DIR/google/protobuf/csharp_options.proto \
$PROTOS_DIR/google/protobuf/unittest.proto \
$PROTOS_DIR/goo... | Shell |
#!/bin/sh
touch framework/framework.pyx
rm -rf build
python setup.py build_ext -i | Shell |
#!/bin/sh
python -O poly2tri.py
| Shell |
#!/bin/sh
# Create a backup tar gzip file of the cwd with the date appended
# located in the parent directory.
FILENAME=../`pwd|xargs basename`-`date -j "+%Y-%m-%d"`.tgz
echo Will create $FILENAME
tar cfz $FILENAME .
echo Done.
| Shell |
#!/bin/bash
# 打开apache.http调试信息
adb shell setprop log.tag.org.apache.http VERBOSE
adb shell setprop log.tag.org.apache.http.wire VERBOSE
adb shell setprop log.tag.org.apache.http.headers VERBOSE
echo "Enable Debug"
| 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
INDIR=$1
OUTDIR=$2
ERRORS=0
for fn in $INDIR/*.cg
do
name=`basename $fn .cg`
echo "Converting $fn -> $OUTDIR/$name.glsl"
cgc -ogles -C -profile glslf -profileopts version=120,userTexCoord=v_texCoord -o "$OUTDIR/$name.glsl" -entry main_fragment "$fn"
if [ $? != 0 ]; then
echo "Fail"
ERRORS=`expr $E... | Shell |
#!/bin/bash
TMPFILE=`tempfile`
for fn in ./*.glsl
do
name=`basename $fn .cg`
sed "s/sampler2D .*;/sampler2D s_texture;/g" $fn > $TMPFILE
mv $TMPFILE $fn
sed "s/gl_TexCoord\[0\]/v_texCoord/g" $fn > $TMPFILE
mv $TMPFILE $fn
done
| Shell |
#!/bin/sh
echo "echoing bad headers: server must report status 500"
exec 1>&2
echo shit!!!
| Shell |
#!/bin/sh
echo "Content-Type: text/plain"
echo
echo $QUERY_STRING
| Shell |
#!/bin/sh
echo "Content-Type: text/plain"
echo
echo "This is shell script CGI."
| Shell |
#!/bin/sh
#
# Detects OS we're compiling on and outputs a file specified by the first
# argument, which in turn gets read while processing Makefile.
#
# The output will set the following variables:
# CC C Compiler path
# CXX C++ Compiler path
# PLATFORM_LDFLAGS ... | Shell |
#!/bin/bash
# 打开apache.http调试信息
adb shell setprop log.tag.org.apache.http VERBOSE
adb shell setprop log.tag.org.apache.http.wire VERBOSE
adb shell setprop log.tag.org.apache.http.headers VERBOSE
echo "Enable Debug"
| 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
INDIR=$1
OUTDIR=$2
ERRORS=0
for fn in $INDIR/*.cg
do
name=`basename $fn .cg`
echo "Converting $fn -> $OUTDIR/$name.glsl"
cgc -ogles -C -profile glslf -profileopts version=120,userTexCoord=v_texCoord -o "$OUTDIR/$name.glsl" -entry main_fragment "$fn"
if [ $? != 0 ]; then
echo "Fail"
ERRORS=`expr $E... | Shell |
#!/bin/bash
TMPFILE=`tempfile`
for fn in ./*.glsl
do
name=`basename $fn .cg`
sed "s/sampler2D .*;/sampler2D s_texture;/g" $fn > $TMPFILE
mv $TMPFILE $fn
sed "s/gl_TexCoord\[0\]/v_texCoord/g" $fn > $TMPFILE
mv $TMPFILE $fn
done
| Shell |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.