code stringlengths 1 1.96M | language stringclasses 1
value |
|---|---|
#!/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
GPF_FILENAME=reservewords.gpf
KEYWORDS_FILENAME=keywords
HEADER_FILENAME=reservewords.h
echo -e "struct Keyword { const char *name; int value; };\n%%" >$GPF_FILENAME
# 根据小写的关键写列表,生成对应的宏,GPF项
SEQ=300
for WORD in `cat $KEYWORDS_FILENAME`
do
UPPER=`echo -n $WORD | tr '[:lower:]' '[:upper:]'`
echo "$... | Shell |
#!/bin/bash
GPF_FILENAME=reservewords.gpf
KEYWORDS_FILENAME=keywords
HEADER_FILENAME=reservewords.h
echo -e "struct Keyword { const char *name; int value; };\n%%" >$GPF_FILENAME
# 根据小写的关键写列表,生成对应的宏,GPF项
SEQ=300
for WORD in `cat $KEYWORDS_FILENAME`
do
UPPER=`echo -n $WORD | tr '[:lower:]' '[:upper:]'`
echo "$... | Shell |
#!/bin/bash
g++-mod -S -fplugin=./plugin.so test.cpp
| Shell |
#!/bin/bash
g++-mod -I`g++-mod -print-file-name=plugin`/include -fPIC -shared plugin-3.cxx -o plugin.so
| Shell |
#!/bin/sh
EMACS=${EMACS:-emacs};
STYLE=$1;
if [ -z $1 ]; then
STYLE=Make
fi
rm -r /tmp/CEDET_INTEG*
if $EMACS -q -l ../common/cedet.el -l cit-load.el -f toggle-debug-on-error -f toggle-debug-on-quit -f cedet-integ-test-${STYLE}; then
# Reverse the meaning of a 0 exit status, as the user had to quit Emacs
... | Shell |
#!/bin/sh
EMACS=${EMACS:-emacs};
STYLE=$1;
if [ -z $1 ]; then
STYLE=Make
fi
rm -r /tmp/CEDET_INTEG*
if $EMACS -q -l ../common/cedet.el -l cit-load.el -f toggle-debug-on-error -f toggle-debug-on-quit -f cedet-integ-test-${STYLE}; then
# Reverse the meaning of a 0 exit status, as the user had to quit Emacs
... | Shell |
#!/bin/sh
# semanticdb.sh --- Build a semantic cache for input arguments
#
# Copyright (C) 2002, 2004 Eric M. Ludlam
#
# Author: Eric M. Ludlam <zappo@gnu.org>
# Keywords: tags
# X-RCS: $Id: semanticdb.sh,v 1.3 2005/09/30 20:19:32 zappo Exp $
#
# This file is not part of GNU Emacs.
#
# Semanticdb is free software; you ... | Shell |
#!/bin/sh
# semanticdb.sh --- Build a semantic cache for input arguments
#
# Copyright (C) 2002, 2004 Eric M. Ludlam
#
# Author: Eric M. Ludlam <zappo@gnu.org>
# Keywords: tags
# X-RCS: $Id: semanticdb.sh,v 1.3 2005/09/30 20:19:32 zappo Exp $
#
# This file is not part of GNU Emacs.
#
# Semanticdb is free software; you ... | Shell |
#!/bin/bash
g++-mod -S -fplugin=./plugin.so test.cpp
| Shell |
#!/bin/bash
gcc-mod --syntax-only -fplugin=./cgccexp.so test.c
| Shell |
#!/bin/bash
g++-mod --syntax-only -fplugin=./cxxgccexp.so test.cpp
| Shell |
#!/bin/bash
gcc-mod --syntax-only -fplugin=./cgccexp.so test.c
| Shell |
#!/bin/bash
g++-mod --syntax-only -fplugin=./cxxgccexp.so test.cpp
| Shell |
#!/bin/sh
mkdir -p vm
cd vm
CC="q3lcc -DQ3_VM -DCGAME -S -Wf-target=bytecode -Wf-g -I../../cgame -I../../game -I../../q3_ui"
$CC ../cg_syscalls.c
$CC ../../game/bg_misc.c
$CC ../../game/bg_pmove.c
$CC ../../game/bg_slidemove.c
$CC ../../game/bg_lib.c
$CC ../../game/q_math.c
$CC ../../game/q_shared.c
$CC ../cg_consol... | Shell |
#!/bin/sh
mkdir -p vm
cd vm
CC="q3lcc -DQ3_VM -DCGAME -DMISSIONPACK -S -Wf-target=bytecode -Wf-g -I../../cgame -I../../game -I../../ui"
$CC ../cg_syscalls.c
$CC ../../game/bg_misc.c
$CC ../../game/bg_pmove.c
$CC ../../game/bg_slidemove.c
$CC ../../game/bg_lib.c
$CC ../../game/q_math.c
$CC ../../game/q_shared.c
$CC... | Shell |
#!/bin/sh
mkdir -p vm
cd vm
CC="q3lcc -DQ3_VM -DCGAME -DMISSIONPACK -S -Wf-target=bytecode -Wf-g -I../../cgame -I../../game -I../../ui"
$CC ../cg_syscalls.c
$CC ../../game/bg_misc.c
$CC ../../game/bg_pmove.c
$CC ../../game/bg_slidemove.c
$CC ../../game/bg_lib.c
$CC ../../game/q_math.c
$CC ../../game/q_shared.c
$CC... | Shell |
#!/bin/sh
mkdir -p vm
cd vm
CC="q3lcc -DQ3_VM -DCGAME -S -Wf-target=bytecode -Wf-g -I../../cgame -I../../game -I../../q3_ui"
$CC ../cg_syscalls.c
$CC ../../game/bg_misc.c
$CC ../../game/bg_pmove.c
$CC ../../game/bg_slidemove.c
$CC ../../game/bg_lib.c
$CC ../../game/q_math.c
$CC ../../game/q_shared.c
$CC ../cg_consol... | Shell |
#!/bin/sh
mkdir -p vm
cd vm
CC="q3lcc -DQ3_VM -S -Wf-target=bytecode -Wf-g -I../../cgame -I../../game -I../../q3_ui "
$CC ../ui_main.c
$CC ../ui_cdkey.c
$CC ../ui_ingame.c
$CC ../ui_confirm.c
$CC ../ui_setup.c
$CC ../../game/bg_misc.c
$CC ../../game/bg_lib.c
$CC ../../game/q_math.c
$CC ../../game/q_shared.c
$CC ../u... | Shell |
#!/bin/sh
mkdir -p vm
cd vm
CC="q3lcc -DQ3_VM -S -Wf-target=bytecode -Wf-g -I../../cgame -I../../game -I../../q3_ui "
$CC ../ui_main.c
$CC ../ui_cdkey.c
$CC ../ui_ingame.c
$CC ../ui_confirm.c
$CC ../ui_setup.c
$CC ../../game/bg_misc.c
$CC ../../game/bg_lib.c
$CC ../../game/q_math.c
$CC ../../game/q_shared.c
$CC ../u... | Shell |
#!/bin/sh
mkdir -p vm
cd vm
CC="q3lcc -DQ3_VM -DMISSIONPACK -S -Wf-target=bytecode -Wf-g -I../../cgame -I../../game -I../../ui"
$CC ../g_main.c
$CC ../g_syscalls.c
$CC ../bg_misc.c
$CC ../bg_lib.c
$CC ../bg_pmove.c
$CC ../bg_slidemove.c
$CC ../q_math.c
$CC ../q_shared.c
$CC ../ai_vcmd.c
$CC ../ai_dmnet.c... | Shell |
#!/bin/sh
mkdir -p vm
cd vm
CC="q3lcc -DQ3_VM -S -Wf-target=bytecode -Wf-g -I../../cgame -I../../game -I../../q3_ui"
$CC ../g_main.c
$CC ../bg_misc.c
$CC ../bg_lib.c
$CC ../bg_pmove.c
$CC ../bg_slidemove.c
$CC ../q_math.c
$CC ../q_shared.c
$CC ../ai_vcmd.c
$CC ../ai_dmnet.c
$CC ../ai_dmq3.c
$CC ../ai_ma... | Shell |
#!/bin/sh
mkdir -p vm
cd vm
CC="q3lcc -DQ3_VM -S -Wf-target=bytecode -Wf-g -I../../cgame -I../../game -I../../q3_ui"
$CC ../g_main.c
$CC ../bg_misc.c
$CC ../bg_lib.c
$CC ../bg_pmove.c
$CC ../bg_slidemove.c
$CC ../q_math.c
$CC ../q_shared.c
$CC ../ai_vcmd.c
$CC ../ai_dmnet.c
$CC ../ai_dmq3.c
$CC ../ai_ma... | Shell |
#!/bin/sh
mkdir -p vm
cd vm
CC="q3lcc -DQ3_VM -DMISSIONPACK -S -Wf-target=bytecode -Wf-g -I../../cgame -I../../game -I../../ui"
$CC ../g_main.c
$CC ../g_syscalls.c
$CC ../bg_misc.c
$CC ../bg_lib.c
$CC ../bg_pmove.c
$CC ../bg_slidemove.c
$CC ../q_math.c
$CC ../q_shared.c
$CC ../ai_vcmd.c
$CC ../ai_dmnet.c... | Shell |
#!/bin/bash
g++-mod -I`g++-mod -print-file-name=plugin`/include -fPIC -shared plugin-3.cxx -o plugin.so
| Shell |
#!/bin/bash
flex --yylineno -o cpp_lex.cpp cpp.l
| Shell |
#!/bin/bash
flex --yylineno -o cpp_lex.cpp cpp.l
| Shell |
#!/bin/bash
mkdir -p ~/images
if [ $? -ne 0 ]; then exit 1; fi
cd ~/images
FN="shot-"`date '+%Y-%m-%d-%H-%M-%S'`".png"
scrot -s $FN
| Shell |
#!/bin/bash
mkdir -p ~/images
if [ $? -ne 0 ]; then exit 1; fi
cd ~/images
FN="shot-"`date '+%Y-%m-%d-%H-%M-%S'`".png"
scrot -s $FN
| Shell |
(ant build &&
./run_compiler.sh $1) | Shell |
java -cp classes/:classes/IC/:lib/java-cup-11a.jar IC.Compiler $1 -Ltest/libic.sig -dump-symtab -print-ast
| Shell |
(ant parser &&
ant libparser &&
ant build &&
./run_compiler.sh $1) | Shell |
java -cp classes/:classes/IC/:lib/java-cup-11a.jar IC.Compiler $1 -Ltest/libic.sig -print-ast
| Shell |
java -cp classes/:classes/IC/:lib/java-cup-11a.jar IC.Compiler $1 | Shell |
(ant build &&
./run_compiler.sh $1 &&
java -cp ~/Downloads/microLir/build:lib/java-cup-11a.jar microLIR.Main "${1:0:`expr "$1" : '.*\.'`}"lir -verbose:0)
echo "" | Shell |
java -cp classes/:classes/IC/:lib/java-cup-11a.jar IC.Compiler $1 -Ltest/libic.sig -dump-symtab -print-ast -print-lir
| Shell |
#!/system/bin/sh
DIR=/data/data/org.sshtunnel
PATH=$DIR:$PATH
case $1 in
start)
echo "
base {
log_debug = off;
log_info = off;
log = stderr;
daemon = on;
redirector = iptables;
}
" >$DIR/redsocks.conf
echo "
redsocks {
local_ip = 127.0.0.1;
local_port = 8123;
ip = 127.0.0.1;
port = $2;
type = http-re... | Shell |
#!/system/bin/sh
DIR=/data/data/org.sshtunnel
PATH=$DIR:$PATH
case $1 in
start)
echo "
base {
log_debug = off;
log_info = off;
log = stderr;
daemon = on;
redirector = iptables;
}
" >$DIR/redsocks.conf
echo "
redsocks {
local_ip = 127.0.0.1;
local_port = 8123;
ip = 127.0.0.1;
port = $2;
type = socks5;... | Shell |
#!/bin/bash
set -e # fail early
VERS="$1"
[ -n "$VERS" ] && VERS="${VERS}_"
function die() {
echo "Error: " $*
echo
echo "USage: $0 <version>"
echo "Automatically sign [A-Z].apk"
exit 1
}
[ -z "$1" ] && die
shopt -s extglob # extended glob pattern
function process() {
SRC="$1"
BASE="${SRC/.apk/}"
... | Shell |
#!/bin/sh
echo
echo "Libraries required to build this project:"
echo " * Boost (www.boost.org)"
echo " * ImageMagick + Magick++ (http://www.imagemagick.org/)"
echo
cd cell
make && echo "Start ./trace_spu to execute rendering performance test"
| Shell |
#!/bin/sh
echo
echo "Libraries required to build this project:"
echo " * Boost (www.boost.org)"
echo " * ImageMagick + Magick++ (http://www.imagemagick.org/)"
echo
cd cell
make && echo "Start ./trace_spu to execute rendering performance test"
| Shell |
#!/bin/sh
while [ 1 ]
do
svn update && python fetcher.py && python voter.py
echo Next update in 5 minutes
sleep 300
done
| Shell |
#!/bin/sh
#
# Usage example: ./generate.sh int Int Integer"
# Args are: primitive type, capitalized primitive type, wrapper type
#
# To make changes to the .java files in this package,
# 1. run this script to generate the templates, move the .gen files
# somewhere else
# 2. modify the template with your intended cha... | 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 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
rm ./CMakeCache.txt
cmake -DCMAKE_TOOLCHAIN_FILE=toolchain.cmake -DCMAKE_BUILD_TYPE=Release .
make
| Shell |
#!/bin/bash
rm ./CMakeCache.txt
cmake -DCMAKE_TOOLCHAIN_FILE=toolchain.cmake -DCMAKE_BUILD_TYPE=debugfull .
make VERBOSE=1
| Shell |
#!/bin/bash
rm ./CMakeCache.txt
cmake -DCMAKE_TOOLCHAIN_FILE=toolchain.cmake -DCMAKE_BUILD_TYPE=Release .
make
| Shell |
#!/bin/bash
rm ./CMakeCache.txt
cmake -DCMAKE_TOOLCHAIN_FILE=toolchain.cmake -DCMAKE_BUILD_TYPE=debugfull .
make VERBOSE=1
| Shell |
#!/bin/sh
#
# libtool assumes that the compiler can handle the -fPIC flag
# This isn't always true (for example, nasm can't handle it)
command=""
while [ $# -gt 0 ]; do
case "$1" in
-?PIC)
# Ignore -fPIC and -DPIC options
;;
*)
command="$command $1"
;;... | Shell |
# ltmain.sh - Provide generalized library-building support services.
# NOTE: Changing this file will not affect anything until you rerun ltconfig.
#
# Copyright (C) 1996-1999 Free Software Foundation, Inc.
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
#
# This program is free software; you can redistrib... | 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
# mkinstalldirs --- make directory hierarchy
# Author: Noah Friedman <friedman@prep.ai.mit.edu>
# Created: 1993-05-16
# Public domain
# $Id: mkinstalldirs,v 1.2 2001/04/26 16:50:17 hercules Exp $
errstatus=0
for file
do
set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'`
shift... | Shell |
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
# Generated automatically using autoconf version 2.13
# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
#
# This configure script is free software; the Free Software Foundation
# gives unlimited permission to copy, distri... | Shell |
#!/bin/sh
prefix=@prefix@
exec_prefix=@exec_prefix@
exec_prefix_set=no
usage="\
Usage: sdl-config [--prefix[=DIR]] [--exec-prefix[=DIR]] [--version] [--cflags] [--libs] [--static-libs]"
if test $# -eq 0; then
echo "${usage}" 1>&2
exit 1
fi
while test $# -gt 0; do
case "$1" in
-*=*) optarg=`echo "$1"... | Shell |
#! /bin/sh
# ltconfig - Create a system-specific libtool.
# Copyright (C) 1996-1999 Free Software Foundation, Inc.
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
#
# This file is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
#... | Shell |
#!/bin/sh
#
# libtool assumes that the compiler can handle the -fPIC flag
# This isn't always true (for example, nasm can't handle it)
command=""
while [ $# -gt 0 ]; do
case "$1" in
-?PIC)
# Ignore -fPIC and -DPIC options
;;
*)
command="$command $1"
;;... | Shell |
#! /bin/sh
# Common stub for a few missing GNU programs while installing.
# Copyright (C) 1996, 1997, 1999, 2000, 2002 Free Software Foundation, Inc.
# Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU ... | Shell |
#! /bin/sh
# Configuration validation subroutine script.
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
# Free Software Foundation, Inc.
timestamp='2001-03-19'
# This file is (in principle) common to ALL GNU software.
# The presence of a machine in this file suggests that SOME GNU soft... | Shell |
#! /bin/sh
# Attempt to guess a canonical system name.
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
# Free Software Foundation, Inc.
timestamp='2001-03-16'
# This file is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as pu... | 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
#
echo "Generating build information using aclocal, automake and autoconf"
echo "This may take a while ..."
# Touch the timestamps on all the files since CVS messes them up
directory=`dirname $0`
touch $directory/configure.in
# Regenerate configuration files
aclocal
automake --foreign --include-deps --add-m... | Shell |
#! /bin/sh
# Common stub for a few missing GNU programs while installing.
# Copyright (C) 1996, 1997, 1999, 2000, 2002 Free Software Foundation, Inc.
# Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU ... | Shell |
#! /bin/sh
# mkinstalldirs --- make directory hierarchy
# Author: Noah Friedman <friedman@prep.ai.mit.edu>
# Created: 1993-05-16
# Public domain
# $Id: mkinstalldirs,v 1.2 2001/04/26 16:50:17 hercules Exp $
errstatus=0
for file
do
set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'`
shift... | Shell |
#! /bin/sh
# ltconfig - Create a system-specific libtool.
# Copyright (C) 1996-1999 Free Software Foundation, Inc.
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
#
# This file is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
#... | Shell |
#!/bin/sh
prefix=@prefix@
exec_prefix=@exec_prefix@
exec_prefix_set=no
usage="\
Usage: sdl-config [--prefix[=DIR]] [--exec-prefix[=DIR]] [--version] [--cflags] [--libs] [--static-libs]"
if test $# -eq 0; then
echo "${usage}" 1>&2
exit 1
fi
while test $# -gt 0; do
case "$1" in
-*=*) optarg=`echo "$1"... | Shell |
#!/bin/sh
#
echo "Generating build information using aclocal, automake and autoconf"
echo "This may take a while ..."
# Touch the timestamps on all the files since CVS messes them up
directory=`dirname $0`
touch $directory/configure.in
# Regenerate configuration files
aclocal
automake --foreign --include-deps --add-m... | 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
# mkinstalldirs --- make directory hierarchy
# Author: Noah Friedman <friedman@prep.ai.mit.edu>
# Created: 1993-05-16
# Public domain
# $Id: mkinstalldirs,v 1.2 2001/04/26 16:50:19 hercules Exp $
errstatus=0
for file
do
set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'`
shift... | Shell |
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
# Generated automatically using autoconf version 2.13
# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
#
# This configure script is free software; the Free Software Foundation
# gives unlimited permission to copy, distri... | Shell |
#! /bin/sh
# Common stub for a few missing GNU programs while installing.
# Copyright (C) 1996, 1997 Free Software Foundation, Inc.
# Franc,ois Pinard <pinard@iro.umontreal.ca>, 1996.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as publis... | Shell |
#! /bin/sh
# Configuration validation subroutine script.
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
# Free Software Foundation, Inc.
timestamp='2001-03-19'
# This file is (in principle) common to ALL GNU software.
# The presence of a machine in this file suggests that SOME GNU soft... | Shell |
#! /bin/sh
# Attempt to guess a canonical system name.
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
# Free Software Foundation, Inc.
timestamp='2001-03-16'
# This file is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as pu... | 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
#
aclocal
automake --foreign
autoconf
# Run configure for this platform
#./configure $*
echo "Now you are ready to run ./configure"
| Shell |
#! /bin/sh
# Common stub for a few missing GNU programs while installing.
# Copyright (C) 1996, 1997 Free Software Foundation, Inc.
# Franc,ois Pinard <pinard@iro.umontreal.ca>, 1996.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as publis... | Shell |
#! /bin/sh
# mkinstalldirs --- make directory hierarchy
# Author: Noah Friedman <friedman@prep.ai.mit.edu>
# Created: 1993-05-16
# Public domain
# $Id: mkinstalldirs,v 1.2 2001/04/26 16:50:19 hercules Exp $
errstatus=0
for file
do
set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'`
shift... | Shell |
#!/bin/sh
#
aclocal
automake --foreign
autoconf
# Run configure for this platform
#./configure $*
echo "Now you are ready to run ./configure"
| 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
#
# Based on a deps file, generate C++ code exporting an array of entries in the
# file.
#
# The input deps file should look like this:
#
# gjstest/foo/bar.js
# gjstest/baz.js
#
if [[ $# -ne 2 ]]; then
echo "Usage: $0 <deps file> <output .h file>"
exit 1
fi
DEPS_FILE=$1
H_FILE=$2
rm -f $H_FIL... | Shell |
#!/bin/bash
#
# Make sure that the closure compiler is happy with a target.
#
# Usage:
#
# ./js_library_check_compile.sh foo/target
#
# The file foo/target.deps must already exist.
if [[ $# -ne 1 ]]; then
echo "Usage: $0 TARGET"
exit 1
fi
TARGET=$1
shift
DEPS_FILE="$TARGET.deps"
OUTPUT_FILE="$TARGET.compile"... | Shell |
#!/bin/bash
#
# Build a C++ binary.
#
# Usage:
#
# ./cc_binary_build.sh foo/target <extra g++ flags>
#
# The file foo/object_deps must already exist.
if [[ $# -lt 1 ]]; then
echo "Usage: $0 TARGET <extra g++ flags>"
exit 1
fi
TARGET=$1
shift
OBJECT_DEPS_FILE="$TARGET.object_deps"
OUTPUT_FILE="$TARGET.bin"
#... | Shell |
#!/bin/bash
#
# Run a C++ test.
#
# Usage:
#
# ./cc_test_run.sh foo/target <test args>
#
# The file foo/target.bin must already exist.
if [[ $# -lt 1 ]]; then
echo "Usage: $0 TARGET"
exit 1
fi
TARGET=$1
OUTPUT_FILE="$TARGET.out"
shift
rm -f $OUTPUT_FILE
set -x
./$TARGET.bin $@ || exit 1
set +x
echo "ok" > ... | Shell |
#!/bin/bash
#
# Create a .header_deps file for a C++ target, for use with dependency analysis
# magic in the makefile.
#
# Usage:
#
# ./cc_library_make_header_deps_file.sh \
# foo/target \
# bar.header_deps \
# baz/qux.header_deps \
# <Ignored junk>
#
# <Ignored junk> is there to all... | Shell |
#!/bin/bash
#
# Create a .deps file for a JS target, for use with dependency analysis magic in
# the makefile.
#
# Usage:
#
# ./js_library_make_deps_file.sh \
# foo/target \
# bar.deps \
# baz/qux.deps \
# <Ignored junk>
#
# <Ignored junk> is there to allow the makefile to declare de... | Shell |
#!/bin/bash
#
# Create a .object_deps file for a C++ target, for use with dependency analysis
# magic in the makefile.
#
# Usage:
#
# ./cc_library_make_object_deps_file.sh \
# foo/target \
# bar.object_deps \
# baz/qux.object_deps \
# <Ignored junk>
#
# <Ignored junk> is there to all... | Shell |
#!/bin/bash
#
# Run gjstest for a test target.
#
# Usage:
#
# ./js_test_run.sh foo/target
#
# The file foo/target.deps must already exist.
if [[ $# -ne 1 ]]; then
echo "Usage: $0 TARGET"
exit 1
fi
TARGET=$1
shift
DEPS_FILE="$TARGET.deps"
OUTPUT_FILE="$TARGET.out"
# Build an appropriate invocation.
JS_FILES=... | Shell |
#!/bin/sh
find . ! -name *ui.t* -depth 2 -type f -delete
find . -name *ui.tabs* -depth 2 -type f -delete
| Shell |
#!/bin/sh
find . ! -name *ui.t* -depth 2 -type f -delete
find . -name *ui.tabs* -depth 2 -type f -delete
| 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
#
# Copyright (c) 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 t... | Shell |
#!/bin/bash
# Copyright (C) 2009 all rights reserved
# GNU GENERAL PUBLIC LICENSE VERSION 3.0
# Author bjarneh@ifi.uio.no
#
# Bash command completion file for godag
#
# Add this file somewhere where it gets sourced.
# If you have sudo power it can be dropped into
# /etc/bash_completion.d/. If not it can be sourced
# b... | Shell |
#!/bin/bash
# Copyright (C) 2009 all rights reserved
# GNU GENERAL PUBLIC LICENSE VERSION 3.0
# Author bjarneh@ifi.uio.no
COMPILER=""
LINKY=""
D=`dirname "$0"`
B=`basename "$0"`
FULL="`cd \"$D\" 2>/dev/null && pwd || echo \"$D\"`/$B"
HERE=$(dirname "$FULL")
IDIR=$HERE/src
CPROOT=`date +"tmp-pkgroot-%s"`
SRCROOT="$GOR... | Shell |
#!/bin/sh
# ./test_run.sh orig_main ../orig
# ./test_run.sh new_main ../new
# ./test_run.sh orig_main ../new
cd $1
java -cp $2: Test
exit 0
| Shell |
#!/bin/sh
# ./test_run.sh orig_main ../orig
# ./test_run.sh new_main ../new
# ./test_run.sh orig_main ../new
cd $1
java -cp $2: Demo1Main
exit 0
| Shell |
#!/bin/sh
javac Util.java
javac Registry.java
javac Properties.java
exit 0
| Shell |
#!/bin/sh
javac -cp ../orig: Demo1Main.java
exit 0
| Shell |
#!/bin/sh
# ./test_run.sh orig_main ../orig
# ./test_run.sh new_main ../new
# ./test_run.sh orig_main ../new
cd $1
java -cp $2: TCMain
exit 0
| Shell |
#!/bin/sh
# ./test_run.sh orig_main ../orig
# ./test_run.sh new_main ../new
# ./test_run.sh orig_main ../new
cd $1
java -cp $2:../libs/GMC.jar:./ -Djava.library.path=../libs/ TCMain
exit 0
| Shell |
#!/bin/sh
DT_VERSION=`cat inc/defines.h | awk 'BEGIN {i = 1} /#define DT_VERSION/ {ver[i++] = $3} END {printf("%d.%d.%d\n", ver[1], ver[2], ver[3])}'`
dch --distribution UNRELEASED --newversion $DT_VERSION "Package for $DT_VERSION. See CHANGELOG.txt"
SRC_DIR=../dwarftherapist-$DT_VERSION
TAR_FILE=../dwarftherapist-$D... | Shell |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.