code stringlengths 1 1.96M | language stringclasses 1
value |
|---|---|
#!/bin/sh
if [ "$1" == "" ]
then
echo "Usage: package.sh <tag>"
else
mkdir package_tmp
rm webgrind-$1.zip
cd package_tmp
svn export https://webgrind.googlecode.com/svn/tags/$1 webgrind
svn export https://webgrind.googlecode.com/svn/wiki webgrind/docs
for i in webgrind/docs/*.wiki; do mv "$i" "${i%.wiki}.txt"; d... | Shell |
#!/bin/bash
while [ $1 ]
do
JS_NAME="$(basename $1 .obj).js"
rm -f "$2/$JS_NAME"
python convert_obj_three.py -i "$1" -o "output2/emozioni/$JS_NAME"
shift
done
| Shell |
#!/bin/bash
getLangsForFiles () {
echo "en" # default language
for F in "$@"
do
find res/ -name "$F"
done \
| sed -n '
s/.*res.[a-z]*-\(..\)-r\(..\).*/\1_\2/p; # yy-rXX => yy_XX
s/.*res.[a-z]*-\(..\)\/.*/\1/p; # yy => yy
'
}
getLangsForDicts () {
ls ../Dicts \
| sed 's/.*-//;... | Shell |
#!/bin/bash
Res=res/
Alt=donottranslate-altchars.xml
Map=donottranslate-keymap.xml
Out=assets/kbd/
mkdir -p "$Out"
for Dir in res/values res/values-*
do
[ -f $Dir/$Map ] || continue # -o -f $Dir/$Alt ] || continue
Args="$Res/values/$Alt"
[ -f $Dir/$Alt ] && Args="$Args $Dir/$Alt"
Args="$Args $Res/values/$Map... | Shell |
# compiler example for Linux
g++ thread.cpp -pthread -o threads
| Shell |
cat ../pwd |~/google_appengine/appcfg.py -e moishel@gmail.com --passin update .
| Shell |
#!/bin/sh
# Used to update http://openlayers.org/dev/
svn up /osgeo/openlayers/docs/dev;
# Get current 'Last Changed Rev'
REV=`svn info /osgeo/openlayers/docs/dev/ | grep 'Revision' | awk '{print $2}'`
# Get the last svn rev
touch /tmp/ol_svn_rev
OLD_REV="o`cat /tmp/ol_svn_rev`"
# If they're not equal, do some w... | Shell |
#!/bin/sh
# Used to update http://openlayers.org/dev/
svn up /osgeo/openlayers/docs/dev;
# Get current 'Last Changed Rev'
REV=`svn info /osgeo/openlayers/docs/dev/ | grep 'Revision' | awk '{print $2}'`
# Get the last svn rev
touch /tmp/ol_svn_rev
OLD_REV="o`cat /tmp/ol_svn_rev`"
# If they're not equal, do some w... | Shell |
#!/bin/sh
VERSION=$1
svn export http://svn.openlayers.org/tags/openlayers/release-$VERSION OpenLayers-$VERSION
cd OpenLayers-$VERSION/build
./build.py full
cp OpenLayers.js ..
cd ..
mkdir doc/devdocs
mkdir doc/apidocs
rm tools/*.pyc
mkdir /www/openlayers/htdocs/api/$VERSION
cp OpenLayers.js /www/openlayers/htdocs/... | Shell |
#!/bin/sh
VERSION=$1
svn export http://svn.openlayers.org/tags/openlayers/release-$VERSION OpenLayers-$VERSION
cd OpenLayers-$VERSION/build
./build.py full
cp OpenLayers.js ..
cd ..
mkdir doc/devdocs
mkdir doc/apidocs
rm tools/*.pyc
mkdir /www/openlayers/htdocs/api/$VERSION
cp OpenLayers.js /www/openlayers/htdocs/... | Shell |
#!/usr/bin/env bash
################################################################################
#
# Bake is a shell script for running CakePHP bake script
#
# CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
# Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
#
# Licensed unde... | Shell |
#!/usr/bin/env bash
################################################################################
#
# Bake is a shell script for running CakePHP bake script
#
# CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
# Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
#
# Licensed unde... | Shell |
#!/usr/bin/env bash
################################################################################
#
# Bake is a shell script for running CakePHP bake script
#
# CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
# Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
#
# Licensed unde... | Shell |
#!/usr/bin/env bash
################################################################################
#
# Bake is a shell script for running CakePHP bake script
#
# CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
# Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
#
# Licensed unde... | Shell |
#!/usr/bin/env bash
################################################################################
#
# Bake is a shell script for running CakePHP bake script
#
# CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
# Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
#
# Licensed unde... | Shell |
#!/usr/bin/env bash
################################################################################
#
# Bake is a shell script for running CakePHP bake script
#
# CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
# Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
#
# Licensed unde... | Shell |
#ifdef GL_ES
precision highp float;
#endif
varying vec2 vTexCoord;
varying vec3 vLightWeight;
uniform sampler2D uTex0;
uniform sampler2D uTex1;
uniform sampler2D uTex2;
void main()
{
vec4 tex0 = texture2D(uTex0, vTexCoord);
vec2 ntc = vTexCoord * 20.0 * 40.0;
vec4 tex1 = texture2D(uTex1, n... | Shell |
#ifdef GL_ES
precision highp float;
#endif
varying vec2 vTexCoord;
varying vec3 vLightWeight;
uniform sampler2D uSampler;
uniform bool uUseTextures;
void main()
{
if (uUseTextures) {
vec4 texColor = texture2D(uSampler, vTexCoord);
gl_FragColor = vec4(texColor.rgb * vLightWeight, tex... | Shell |
attribute vec3 aVerPosition;
attribute vec3 aVerNormal;
attribute vec2 aTexCoord;
uniform mat4 uMVMatrix;
uniform mat4 uPMatrix;
uniform mat3 uNMatrix;
uniform vec3 uAmbColor;
uniform vec3 uDirColor;
uniform vec3 uLightDir;
uniform bool uUseLight;
varying vec2 vTexCoord;
varying vec3 vLightWeight;
... | Shell |
attribute vec3 aVerPosition;
attribute vec3 aVerNormal;
attribute vec2 aTexCoord;
uniform mat4 uMVMatrix;
uniform mat4 uPMatrix;
uniform mat3 uNMatrix;
uniform vec3 uAmbColor;
uniform vec3 uDirColor;
uniform vec3 uLightDir;
varying vec2 vTexCoord;
varying vec3 vLightWeight;
void main()
{
gl_P... | Shell |
#!/bin/sh
# first find which PHP binary to use
if test "x$PHP_PEAR_PHP_BIN" != "x"; then
PHP="$PHP_PEAR_PHP_BIN"
else
if test "@php_bin@" = '@'php_bin'@'; then
PHP=php
else
PHP="@php_bin@"
fi
fi
# then look for the right pear include dir
if test "x$PHP_PEAR_INSTALL_DIR" != "x"; then
INCDIR=$PHP_PEAR... | Shell |
#!/bin/sh
# first find which PHP binary to use
if test "x$PHP_PEAR_PHP_BIN" != "x"; then
PHP="$PHP_PEAR_PHP_BIN"
else
if test "@php_bin@" = '@'php_bin'@'; then
PHP=php
else
PHP="@php_bin@"
fi
fi
# then look for the right pear include dir
if test "x$PHP_PEAR_INSTALL_DIR" != "x"; then
INCDIR=$PHP_PEAR... | Shell |
#!/bin/sh
# first find which PHP binary to use
if test "x$PHP_PEAR_PHP_BIN" != "x"; then
PHP="$PHP_PEAR_PHP_BIN"
else
if test "@php_bin@" = '@'php_bin'@'; then
PHP=php
else
PHP="@php_bin@"
fi
fi
# then look for the right pear include dir
if test "x$PHP_PEAR_INSTALL_DIR" != "x"; then
INCDIR=$PHP_PEAR... | Shell |
#!/bin/sh
# first find which PHP binary to use
if test "x$PHP_PEAR_PHP_BIN" != "x"; then
PHP="$PHP_PEAR_PHP_BIN"
else
if test "@php_bin@" = '@'php_bin'@'; then
PHP=php
else
PHP="@php_bin@"
fi
fi
# then look for the right pear include dir
if test "x$PHP_PEAR_INSTALL_DIR" != "x"; then
INCDIR=$PHP_PEAR... | Shell |
#!/bin/sh
# first find which PHP binary to use
if test "x$PHP_PEAR_PHP_BIN" != "x"; then
PHP="$PHP_PEAR_PHP_BIN"
else
if test "@php_bin@" = '@'php_bin'@'; then
PHP=php
else
PHP="@php_bin@"
fi
fi
# then look for the right pear include dir
if test "x$PHP_PEAR_INSTALL_DIR" != "x"; then
INCDIR=$PHP_PEAR... | Shell |
#!/bin/sh
# first find which PHP binary to use
if test "x$PHP_PEAR_PHP_BIN" != "x"; then
PHP="$PHP_PEAR_PHP_BIN"
else
if test "@php_bin@" = '@'php_bin'@'; then
PHP=php
else
PHP="@php_bin@"
fi
fi
# then look for the right pear include dir
if test "x$PHP_PEAR_INSTALL_DIR" != "x"; then
INCDIR=$PHP_PEAR... | Shell |
#!/usr/bin/env bash
case $1 in
'start')
(
cd server
python -m SimpleHTTPServer 8080 &
echo $! > server.pid
)
(
cd examples
python -m SimpleHTTPServer &
echo $! > examples.pid
)
(
cd experiments
python -m SimpleHTTPServer 9000 &
echo $! > experiments.pid
)
;;
'stop')
... | Shell |
#!/bin/sh
echo
echo "JDOM Build System"
echo "-------------------"
echo
if [ "$JAVA_HOME" = "" ] ; then
echo "ERROR: JAVA_HOME not found in your environment."
echo
echo "Please, set the JAVA_HOME variable in your environment to match the"
echo "location of the Java Virtual Machine you want to use."
exit 1
f... | Shell |
#!/bin/sh
echo
echo "JDOM Build System"
echo "-------------------"
echo
if [ "$JAVA_HOME" = "" ] ; then
echo "ERROR: JAVA_HOME not found in your environment."
echo
echo "Please, set the JAVA_HOME variable in your environment to match the"
echo "location of the Java Virtual Machine you want to use."
exit 1
f... | 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/bash
#
# Starts a basic web server on the port specified.
#
# ./serve.sh 3000 -> http://localhost:3000
#
# Copyright 2012 Eric Bidelman <ebidel@gmail.com>
port=$1
if [ $# -ne 1 ]
then
port=8000
fi
open http://localhost:$port/template.html && python -m SimpleHTTPServer $port;
| Shell |
# Common bash functions
# Assert that the last command terminated with OK status
function check_last_cmd() {
status=$?
if [ "$status" -ne "0" ]; then
echo "$1 failed (status: $status)"
echo "ABORTED"
exit 1
fi
echo "$1 was ok"
}
| Shell |
#!/bin/bash
#
# A script to fetch the updated translations from crowdin.net.
# Tested on Max osx.
#
# TODO: convert file formats from DOS to unix
# TODO: allow to override language list from command line
# TODO: force sourcein package creation before downloading.
source ./bash_lib.sh
# List of two letter codes of la... | Shell |
#!/bin/bash
#
# A script to fetch the crowdin translation memory.
# Tested on Max osx.
source ./bash_lib.sh
local_tmx_file="../archive/translations.tmx"
function main() {
echo "Downloading tmx file -> ${local_tmx_file}"
curl -o ${local_tmx_file} http://api.crowdin.net/api/project/maniana/download-tm?key=$CIKEY
... | Shell |
#!/usr/bin/env bash
# Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
# For licensing, see LICENSE.html or http://ckeditor.com/license
# Use this file to quickly run the sample under Linux.
adl application.xml ../../
| Shell |
#!/usr/bin/env bash
# Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
# For licensing, see LICENSE.html or http://ckeditor.com/license
# Use this file to quickly run the sample under Linux.
adl application.xml ../../
| Shell |
#!/bin/bash
# @(#) –Builds Firefox extensions
BASELOC=$PWD
EXTENSION=$1
mkdir -p ./build/chrome
cd ./chrome
rm -f .DS_Store
zip -r $EXTENSION.jar ./
mv $EXTENSION.jar .././build/chrome
cd $BASELOC
cp ./install.* ./build
find . -name ‘update.*’ | xargs -I % cp % ./build
cp ./*.manifest ./build
if [ -d "./defaults/p... | Shell |
#!/bin/bash
# @(#) –Builds Firefox extensions
BASELOC=$PWD
EXTENSION=$1
mkdir -p ./build/chrome
cd ./chrome
rm -f .DS_Store
zip -r $EXTENSION.jar ./
mv $EXTENSION.jar .././build/chrome
cd $BASELOC
cp ./install.* ./build
find . -name ‘update.*’ | xargs -I % cp % ./build
cp ./*.manifest ./build
if [ -d "./defaults/p... | Shell |
#!/bin/bash
NAME=Arity
SRCS=src/calculator/Calculator.java
LIBS=`find libs -name "*.jar"`
KEYSTORE=/home/preda/cheie/and
KEYALIAS=and
SDK=/home/preda/sdk
PLATFORM=$SDK/platforms/android-8/
AAPT=$PLATFORM/tools/aapt
DX=$PLATFORM/tools/dx
AJAR=$PLATFORM/android.jar
PKRES=bin/resource.ap_
OUT=bin/$NAME-unalign.apk
ALIGN... | Shell |
#!/bin/sh
SVN_EXECUTABLE=svn
TEMP_DIR=`mktemp -q -d -t whp`
if [ $? -ne 0 ]; then
echo "Cannot create temporary directory $TEMP_DIR"
exit
fi
PACKAGE_ROOT=$TEMP_DIR/package
RESOURCE_ROOT=$TEMP_DIR/resources
# Creating package structure
mkdir -p $PACKAGE_ROOT/Library/WebServer/whp
mkdir -p $RESOURCE_ROOT
# Export... | Shell |
#!/bin/sh
SVN_EXECUTABLE=svn
TEMP_DIR=`mktemp -q -d -t whp`
if [ $? -ne 0 ]; then
echo "Cannot create temporary directory $TEMP_DIR"
exit
fi
PACKAGE_ROOT=$TEMP_DIR/package
RESOURCE_ROOT=$TEMP_DIR/resources
# Creating package structure
mkdir -p $PACKAGE_ROOT/Library/WebServer/whp
mkdir -p $RESOURCE_ROOT
# Export... | Shell |
#!/bin/sh
# START-COMMIT HOOK
#
# The start-commit hook is invoked before a Subversion txn is created
# in the process of doing a commit. Subversion runs this hook
# by invoking a program (script, executable, binary, etc.) named
# 'start-commit' (for which this file is a template)
# with the following ordered... | Shell |
#!/bin/sh
# PRE-COMMIT HOOK
#
# The pre-commit hook is invoked before a Subversion txn is
# committed. Subversion runs this hook by invoking a program
# (script, executable, binary, etc.) named 'pre-commit' (for which
# this file is a template), with the following ordered arguments:
#
# [1] REPOS-PATH (t... | Shell |
#!/bin/sh
# PRE-LOCK HOOK
#
# The pre-lock hook is invoked before an exclusive lock is
# created. Subversion runs this hook by invoking a program
# (script, executable, binary, etc.) named 'pre-lock' (for which
# this file is a template), with the following ordered arguments:
#
# [1] REPOS-PATH (the pat... | Shell |
#!/bin/sh
# POST-COMMIT HOOK
#
# The post-commit hook is invoked after a commit. Subversion runs
# this hook by invoking a program (script, executable, binary, etc.)
# named 'post-commit' (for which this file is a template) with the
# following ordered arguments:
#
# [1] REPOS-PATH (the path to this rep... | Shell |
#!/bin/sh
# PRE-COMMIT HOOK
#
# The pre-commit hook is invoked before a Subversion txn is
# committed. Subversion runs this hook by invoking a program
# (script, executable, binary, etc.) named 'pre-commit' (for which
# this file is a template), with the following ordered arguments:
#
# [1] REPOS-PATH (t... | Shell |
#!/bin/sh
# PRE-REVPROP-CHANGE HOOK
#
# The pre-revprop-change hook is invoked before a revision property
# is added, modified or deleted. Subversion runs this hook by invoking
# a program (script, executable, binary, etc.) named 'pre-revprop-change'
# (for which this file is a template), with the following or... | Shell |
#!/bin/sh
# PRE-LOCK HOOK
#
# The pre-lock hook is invoked before an exclusive lock is
# created. Subversion runs this hook by invoking a program
# (script, executable, binary, etc.) named 'pre-lock' (for which
# this file is a template), with the following ordered arguments:
#
# [1] REPOS-PATH (the pat... | Shell |
#!/bin/sh
# POST-REVPROP-CHANGE HOOK
#
# The post-revprop-change hook is invoked after a revision property
# has been added, modified or deleted. Subversion runs this hook by
# invoking a program (script, executable, binary, etc.) named
# 'post-revprop-change' (for which this file is a template), with the
# f... | Shell |
#!/bin/sh
# POST-LOCK HOOK
#
# The post-lock hook is run after a path is locked. Subversion runs
# this hook by invoking a program (script, executable, binary, etc.)
# named 'post-lock' (for which this file is a template) with the
# following ordered arguments:
#
# [1] REPOS-PATH (the path to this repos... | Shell |
#!/bin/sh
# PRE-UNLOCK HOOK
#
# The pre-unlock hook is invoked before an exclusive lock is
# destroyed. Subversion runs this hook by invoking a program
# (script, executable, binary, etc.) named 'pre-unlock' (for which
# this file is a template), with the following ordered arguments:
#
# [1] REPOS-PATH ... | Shell |
#!/bin/sh
# START-COMMIT HOOK
#
# The start-commit hook is invoked before a Subversion txn is created
# in the process of doing a commit. Subversion runs this hook
# by invoking a program (script, executable, binary, etc.) named
# 'start-commit' (for which this file is a template)
# with the following ordered... | Shell |
#!/bin/sh
# POST-COMMIT HOOK
#
# The post-commit hook is invoked after a commit. Subversion runs
# this hook by invoking a program (script, executable, binary, etc.)
# named 'post-commit' (for which this file is a template) with the
# following ordered arguments:
#
# [1] REPOS-PATH (the path to this rep... | Shell |
#!/bin/sh
# POST-UNLOCK HOOK
#
# The post-unlock hook runs after a path is unlocked. Subversion runs
# this hook by invoking a program (script, executable, binary, etc.)
# named 'post-unlock' (for which this file is a template) with the
# following ordered arguments:
#
# [1] REPOS-PATH (the path to this... | Shell |
#!/bin/sh
# POST-UNLOCK HOOK
#
# The post-unlock hook runs after a path is unlocked. Subversion runs
# this hook by invoking a program (script, executable, binary, etc.)
# named 'post-unlock' (for which this file is a template) with the
# following ordered arguments:
#
# [1] REPOS-PATH (the path to this... | Shell |
#!/bin/sh
# PRE-REVPROP-CHANGE HOOK
#
# The pre-revprop-change hook is invoked before a revision property
# is added, modified or deleted. Subversion runs this hook by invoking
# a program (script, executable, binary, etc.) named 'pre-revprop-change'
# (for which this file is a template), with the following or... | Shell |
#!/bin/sh
# POST-LOCK HOOK
#
# The post-lock hook is run after a path is locked. Subversion runs
# this hook by invoking a program (script, executable, binary, etc.)
# named 'post-lock' (for which this file is a template) with the
# following ordered arguments:
#
# [1] REPOS-PATH (the path to this repos... | Shell |
#!/bin/sh
# POST-REVPROP-CHANGE HOOK
#
# The post-revprop-change hook is invoked after a revision property
# has been added, modified or deleted. Subversion runs this hook by
# invoking a program (script, executable, binary, etc.) named
# 'post-revprop-change' (for which this file is a template), with the
# f... | Shell |
#!/bin/sh
# PRE-UNLOCK HOOK
#
# The pre-unlock hook is invoked before an exclusive lock is
# destroyed. Subversion runs this hook by invoking a program
# (script, executable, binary, etc.) named 'pre-unlock' (for which
# this file is a template), with the following ordered arguments:
#
# [1] REPOS-PATH ... | Shell |
#!/bin/bash
WEB_DIR=$(pwd)
echo Applying security rules in: ${WEB_DIR}
find . -xdev -type d -path ./site-data/galleries -prune -o -type d -exec chown root:http {} \;
find . -xdev -type d -path ./site-data/galleries -prune -o -type d -exec chmod u=rwx,g=rwx,o=rx {} \;
find . -xdev -type f -exec chown root:http {} \;
... | Shell |
#!/bin/sh
cp mockdom.js node.js ../../lib
cp node-tests.cfg ../../build
cd ../../build
python build.py -c none node-tests
cd ../tests/node.js/
node run-test.js
rm ../../lib/mockdom.js
rm ../../lib/node.js
| Shell |
#!/bin/sh
cp mockdom.js node.js ../../lib
cp node-tests.cfg ../../build
cd ../../build
python build.py -c none node-tests
cd ../tests/node.js/
node run-test.js
rm ../../lib/mockdom.js
rm ../../lib/node.js
| Shell |
#!/bin/sh
VERSION=$1
wget -c http://closure-compiler.googlecode.com/files/compiler-latest.zip
unzip compiler-latest.zip
svn export http://svn.openlayers.org/tags/openlayers/release-$VERSION OpenLayers-$VERSION
cd OpenLayers-$VERSION/build
mv ../../compiler.jar ../tools/closure-compiler.jar
./build.py -c closure ful... | Shell |
#!/bin/sh
# Used to update http://openlayers.org/dev/
# Get current 'Last Changed Rev'
GITREV=`svn info https://github.com/openlayers/openlayers/ | grep 'Revision' | awk '{print $2}'`
SVNREV=`svn info http://svn.openlayers.org/ | grep 'Revision' | awk '{print $2}'`
# Get the last svn rev
touch /tmp/ol_git_rev
touc... | Shell |
#!/bin/sh
# Used to update http://openlayers.org/dev/
# Get current 'Last Changed Rev'
GITREV=`svn info https://github.com/openlayers/openlayers/ | grep 'Revision' | awk '{print $2}'`
SVNREV=`svn info http://svn.openlayers.org/ | grep 'Revision' | awk '{print $2}'`
# Get the last svn rev
touch /tmp/ol_git_rev
touc... | Shell |
#!/bin/sh
VERSION=$1
wget -c http://closure-compiler.googlecode.com/files/compiler-latest.zip
unzip compiler-latest.zip
svn export http://svn.openlayers.org/tags/openlayers/release-$VERSION OpenLayers-$VERSION
cd OpenLayers-$VERSION/build
mv ../../compiler.jar ../tools/closure-compiler.jar
./build.py -c closure ful... | 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 t... | Shell |
#!/bin/sh
cd `dirname "$0"` && java -jar protoc-gen-as3.jar
| Shell |
#!/bin/sh
cd `dirname "$0"` && java -jar protoc-gen-as3.jar
| Shell |
#! /bin/sh
test_dir="/home/gecko/test/nsep/"
patch_file="nsep.pat"
cd $test_dir
if [ -f "${patch_file}.gz" ]
then
echo 'gzip start'
gzip -d "${patch_file}.gz"
fi
if [ -f "${patch_file}" ]
then
echo 'patch start'
patch -p0 < "${patch_file}"
rm "${patch_file}"
fi
touch wsgi_handler.py
echo 'finished'
| Shell |
#! /bin/sh
test_dir="/home/gecko/test/nsep/"
patch_file="nsep.pat"
cd $test_dir
if [ -f "${patch_file}.gz" ]
then
echo 'gzip start'
gzip -d "${patch_file}.gz"
fi
if [ -f "${patch_file}" ]
then
echo 'patch start'
patch -p0 < "${patch_file}"
rm "${patch_file}"
fi
touch wsgi_handler.py
echo 'finished'
| Shell |
#giftrans -t '#0099ff' <bubble.gif >bubble-tr.gif
#pngtopnm <bubble16.png | ppmquant 8 -fs | ppmtogif | giftrans -t '#0099ff' >bubble16-tr.gif
#giftopnm -image=all Fire-bar.gif | pnmsplit
#pnmcat -leftright image? | xv -
#giftopnm plasmabullet-37x20.gif | pnmresample -x 64 -y 9 | ppmquant 256 -fs | ppm... | Shell |
#giftrans -t '#0099ff' <bubble.gif >bubble-tr.gif
#pngtopnm <bubble16.png | ppmquant 8 -fs | ppmtogif | giftrans -t '#0099ff' >bubble16-tr.gif
#giftopnm -image=all Fire-bar.gif | pnmsplit
#pnmcat -leftright image? | xv -
#giftopnm plasmabullet-37x20.gif | pnmresample -x 64 -y 9 | ppmquant 256 -fs | ppm... | Shell |
#!/bin/bash
#
# The @PKG_NAME@ configuration file.
# $Id: tomcat-env.sh 127 2009-06-08 07:54:12Z jasonb $
# Where this config file may be found when it's installed.
APP_ENV="@PKG_ROOT@/conf/@PKG_NAME@-env.sh"
# Where your Java installation lives. Unfortunately, this must be
# hard-coded here because JAVA_HOME on th... | Shell |
#!/bin/bash
#
# The @PKG_NAME@ configuration file.
# $Id: tomcat-env.sh 127 2009-06-08 07:54:12Z jasonb $
# Where this config file may be found when it's installed.
APP_ENV="@PKG_ROOT@/conf/@PKG_NAME@-env.sh"
# Where your Java installation lives. Unfortunately, this must be
# hard-coded here because JAVA_HOME on th... | Shell |
#!/usr/bin/env bash
#
# Linux init script for the Apache Tomcat servlet container.
#
# chkconfig: 2345 96 14
# description: The Apache Tomcat servlet container.
# processname: @PKG_NAME@
# config: @PKG_ROOT@/conf/@PKG_NAME@-env.sh
#
# Copyright (c) 2007-2011 Jason Brittain <jason.brittain@gmail.com>
#
# Permission is ... | Shell |
#!/usr/bin/env bash
#
# Linux init script for the Apache Tomcat servlet container.
#
# chkconfig: 2345 96 14
# description: The Apache Tomcat servlet container.
# processname: @PKG_NAME@
# config: @PKG_ROOT@/conf/@PKG_NAME@-env.sh
#
# Copyright (c) 2007-2011 Jason Brittain <jason.brittain@gmail.com>
#
# Permission is ... | Shell |
#!/bin/bash
#
# The @PKG_NAME@ configuration file.
# $Id: tomcat-env.sh 127 2009-06-08 07:54:12Z jasonb $
# Where this config file may be found when it's installed.
APP_ENV="@PKG_ROOT@/conf/@PKG_NAME@-env.sh"
# Where your Java installation lives. Unfortunately, this must be
# hard-coded here because JAVA_HOME on th... | Shell |
#!/bin/bash
#
# The @PKG_NAME@ configuration file.
# $Id: tomcat-env.sh 127 2009-06-08 07:54:12Z jasonb $
# Where this config file may be found when it's installed.
APP_ENV="@PKG_ROOT@/conf/@PKG_NAME@-env.sh"
# Where your Java installation lives. Unfortunately, this must be
# hard-coded here because JAVA_HOME on th... | Shell |
#!/usr/bin/env bash
#
# Linux init script for the Apache Tomcat servlet container.
#
# chkconfig: 2345 96 14
# description: The Apache Tomcat servlet container.
# processname: @PKG_NAME@
# config: @PKG_ROOT@/conf/@PKG_NAME@-env.sh
#
# Copyright (c) 2007-2011 Jason Brittain <jason.brittain@gmail.com>
#
# Permission is ... | Shell |
#!/usr/bin/env bash
#
# Linux init script for the Apache Tomcat servlet container.
#
# chkconfig: 2345 96 14
# description: The Apache Tomcat servlet container.
# processname: @PKG_NAME@
# config: @PKG_ROOT@/conf/@PKG_NAME@-env.sh
#
# Copyright (c) 2007-2011 Jason Brittain <jason.brittain@gmail.com>
#
# Permission is ... | Shell |
#!/bin/bash
#
# The @PKG_NAME@ configuration file.
# $Id: tomcat-env.sh 127 2009-06-08 07:54:12Z jasonb $
# Where this config file may be found when it's installed.
APP_ENV="@PKG_ROOT@/conf/@PKG_NAME@-env.sh"
# Where your Java installation lives. Unfortunately, this must be
# hard-coded here because JAVA_HOME on th... | Shell |
#!/bin/bash
#
# The @PKG_NAME@ configuration file.
# $Id: tomcat-env.sh 127 2009-06-08 07:54:12Z jasonb $
# Where this config file may be found when it's installed.
APP_ENV="@PKG_ROOT@/conf/@PKG_NAME@-env.sh"
# Where your Java installation lives. Unfortunately, this must be
# hard-coded here because JAVA_HOME on th... | Shell |
#!/usr/bin/env bash
#
# Linux init script for the Apache Tomcat servlet container.
#
# chkconfig: 2345 96 14
# description: The Apache Tomcat servlet container.
# processname: @PKG_NAME@
# config: @PKG_ROOT@/conf/@PKG_NAME@-env.sh
#
# Copyright (c) 2007-2011 Jason Brittain <jason.brittain@gmail.com>
#
# Permission is ... | Shell |
#!/usr/bin/env bash
#
# Linux init script for the Apache Tomcat servlet container.
#
# chkconfig: 2345 96 14
# description: The Apache Tomcat servlet container.
# processname: @PKG_NAME@
# config: @PKG_ROOT@/conf/@PKG_NAME@-env.sh
#
# Copyright (c) 2007-2011 Jason Brittain <jason.brittain@gmail.com>
#
# Permission is ... | Shell |
#!/bin/bash
#
# The @PKG_NAME@ configuration file.
# $Id: tomcat-env.sh 127 2009-06-08 07:54:12Z jasonb $
# Where this config file may be found when it's installed.
APP_ENV="@PKG_ROOT@/conf/@PKG_NAME@-env.sh"
# Where your Java installation lives. Unfortunately, this must be
# hard-coded here because JAVA_HOME on th... | Shell |
#!/bin/bash
#
# The @PKG_NAME@ configuration file.
# $Id: tomcat-env.sh 127 2009-06-08 07:54:12Z jasonb $
# Where this config file may be found when it's installed.
APP_ENV="@PKG_ROOT@/conf/@PKG_NAME@-env.sh"
# Where your Java installation lives. Unfortunately, this must be
# hard-coded here because JAVA_HOME on th... | Shell |
#!/usr/bin/env bash
#
# Linux init script for the Apache Tomcat servlet container.
#
# chkconfig: 2345 96 14
# description: The Apache Tomcat servlet container.
# processname: @PKG_NAME@
# config: @PKG_ROOT@/conf/@PKG_NAME@-env.sh
#
# Copyright (c) 2007-2011 Jason Brittain <jason.brittain@gmail.com>
#
# Permission is ... | Shell |
#!/usr/bin/env bash
#
# Linux init script for the Apache Tomcat servlet container.
#
# chkconfig: 2345 96 14
# description: The Apache Tomcat servlet container.
# processname: @PKG_NAME@
# config: @PKG_ROOT@/conf/@PKG_NAME@-env.sh
#
# Copyright (c) 2007-2011 Jason Brittain <jason.brittain@gmail.com>
#
# Permission is ... | Shell |
#!/bin/bash
#
# The @PKG_NAME@ configuration file.
# $Id: tomcat-env.sh 127 2009-06-08 07:54:12Z jasonb $
# Where this config file may be found when it's installed.
APP_ENV="@PKG_ROOT@/conf/@PKG_NAME@-env.sh"
# Where your Java installation lives. Unfortunately, this must be
# hard-coded here because JAVA_HOME on th... | Shell |
#!/bin/bash
#
# The @PKG_NAME@ configuration file.
# $Id: tomcat-env.sh 127 2009-06-08 07:54:12Z jasonb $
# Where this config file may be found when it's installed.
APP_ENV="@PKG_ROOT@/conf/@PKG_NAME@-env.sh"
# Where your Java installation lives. Unfortunately, this must be
# hard-coded here because JAVA_HOME on th... | Shell |
#!/usr/bin/env bash
#
# Linux init script for the Apache Tomcat servlet container.
#
# chkconfig: 2345 96 14
# description: The Apache Tomcat servlet container.
# processname: @PKG_NAME@
# config: @PKG_ROOT@/conf/@PKG_NAME@-env.sh
#
# Copyright (c) 2007-2011 Jason Brittain <jason.brittain@gmail.com>
#
# Permission is ... | Shell |
#!/usr/bin/env bash
#
# Linux init script for the Apache Tomcat servlet container.
#
# chkconfig: 2345 96 14
# description: The Apache Tomcat servlet container.
# processname: @PKG_NAME@
# config: @PKG_ROOT@/conf/@PKG_NAME@-env.sh
#
# Copyright (c) 2007-2011 Jason Brittain <jason.brittain@gmail.com>
#
# Permission is ... | Shell |
#!/bin/bash
#
# The @PKG_NAME@ configuration file.
# $Id: tomcat-env.sh 127 2009-06-08 07:54:12Z jasonb $
# Where this config file may be found when it's installed.
APP_ENV="@PKG_ROOT@/conf/@PKG_NAME@-env.sh"
# Where your Java installation lives. Unfortunately, this must be
# hard-coded here because JAVA_HOME on th... | Shell |
#!/bin/bash
#
# The @PKG_NAME@ configuration file.
# $Id: tomcat-env.sh 127 2009-06-08 07:54:12Z jasonb $
# Where this config file may be found when it's installed.
APP_ENV="@PKG_ROOT@/conf/@PKG_NAME@-env.sh"
# Where your Java installation lives. Unfortunately, this must be
# hard-coded here because JAVA_HOME on th... | Shell |
#!/usr/bin/env bash
#
# Linux init script for the Apache Tomcat servlet container.
#
# chkconfig: 2345 96 14
# description: The Apache Tomcat servlet container.
# processname: @PKG_NAME@
# config: @PKG_ROOT@/conf/@PKG_NAME@-env.sh
#
# Copyright (c) 2007-2012 Jason Brittain <jason.brittain@gmail.com>
#
# Permission is ... | Shell |
#!/usr/bin/env bash
#
# Linux init script for the Apache Tomcat servlet container.
#
# chkconfig: 2345 96 14
# description: The Apache Tomcat servlet container.
# processname: @PKG_NAME@
# config: @PKG_ROOT@/conf/@PKG_NAME@-env.sh
#
# Copyright (c) 2007-2012 Jason Brittain <jason.brittain@gmail.com>
#
# Permission is ... | Shell |
# Common bash functions
# Assert that the last command terminated with OK status
function check_last_cmd() {
status=$?
if [ "$status" -ne "0" ]; then
echo "$1 failed (status: $status)"
echo "ABORTED"
exit 1
fi
echo "$1 was ok"
}
| Shell |
#!/bin/bash
#
# A script to fetch the updated translations from crowdin.net.
# Tested on Max osx.
#
# TODO: convert file formats from DOS to unix
# TODO: allow to override language list from command line
# TODO: force sourcein package creation before downloading.
source ./bash_lib.sh
# List of two letter codes of la... | Shell |
#!/bin/bash
#
# A script to fetch the crowdin translation memory.
# Tested on Max osx.
source ./bash_lib.sh
local_tmx_file="../archive/translations.tmx"
function main() {
echo "Downloading tmx file -> ${local_tmx_file}"
curl -o ${local_tmx_file} http://api.crowdin.net/api/project/maniana/download-tm?key=$CIKEY
... | Shell |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.