code stringlengths 1 1.96M | language stringclasses 1
value |
|---|---|
#!/bin/sh
export PROJECT=armemu-test
if [ ! -f blk.bin ]; then
dd if=/dev/zero of=blk.bin bs=1024k count=16
fi
make -j8 -C ../armemu &&
make -j8 &&
(cd build-$PROJECT; ../../armemu/build-generic/armemu)
| Shell |
#!/bin/sh
export DEBUG=2
export PROJECT=sam7ex256-test
make
| Shell |
#!/bin/sh
export PROJECT=osk5912-test
make &&
scp build-osk5912-test/lk.bin four:/tftproot
| Shell |
#!/bin/sh
export PROJECT=beagle-test
make &&
scp build-beagle-test/lk.bin mbp:/Volumes/FOO/lk.bin
| Shell |
#!/bin/sh
PROJECTS="armemu-test sam7ex256-test osk5912-test qemu-arm-test beagle-test surf-test"
FAILED=""
for p in $PROJECTS; do
PROJECT=$p make -j2 || FAILED="$FAILED $p"
done
if [ "$FAILED" != "" ]; then
echo
echo some projects have failed to build:
echo $FAILED
fi
| Shell |
#!/bin/sh
#
# CA - wrapper around ca to make it easier to use ... basically ca requires
# some setup stuff to be done before you can use it and this makes
# things easier between now and when Eric is convinced to fix it :-)
#
# CA -newca ... will setup the right stuff
# CA -newreq ... will generate a certific... | Shell |
#!/bin/bash
#
# Copyright (C) 2010 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 a... | Shell |
#!/bin/sh
if [ "$1" = "" ]; then
key=../apps/server.pem
else
key="$1"
fi
if [ "$2" = "" ]; then
cert=../apps/server.pem
else
cert="$2"
fi
ssltest="adb shell /system/bin/ssltest -key $key -cert $cert -c_key $key -c_cert $cert"
if adb shell /system/bin/openssl x509 -in $cert -text -noout | fgrep 'DSA Public Key... | Shell |
#!/bin/bash
#
# Copyright (C) 2010 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 a... | Shell |
#!/bin/sh
/bin/rm -f mttest
purify cc -DSOLARIS -I../../include -g mttest.c -o mttest -L../.. -lthread -lssl -lcrypto -lnsl -lsocket
| Shell |
#!/bin/sh
/bin/rm -f mttest
cc -p -DSOLARIS -I../../include -g mttest.c -o mttest -L/usr/lib/libc -ldl -L../.. -lthread -lssl -lcrypto -lnsl -lsocket
| Shell |
#!/bin/sh
#
# build using pthreads where it's already built into the system
#
/bin/rm -f mttest
gcc -DPTHREADS -I../../include -g mttest.c -o mttest -L../.. -lssl -lcrypto -lpthread
| Shell |
#!/bin/sh
#
# build using pthreads
#
# http://www.mit.edu:8001/people/proven/pthreads.html
#
/bin/rm -f mttest
pgcc -DPTHREADS -I../../include -g mttest.c -o mttest -L../.. -lssl -lcrypto
| Shell |
#!/bin/sh
/bin/rm -f mttest
cc -DSOLARIS -I../../include -g mttest.c -o mttest -L../.. -lthread -lssl -lcrypto -lnsl -lsocket
| Shell |
#!/bin/bash
#
# Copyright (C) 2009 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 a... | Shell |
#!/bin/bash
if [ $# != 1 ]
then
echo "Usage: $0 emailAddress"
exit 1
fi
read -s -p "Password: " mypassword
echo ""
curl https://www.google.com/accounts/ClientLogin -d Email=$1 -d "Passwd=$mypassword" -d accountType=GOOGLE -d source=Google-cURL-Example -d service=ac2dm
| Shell |
#!/bin/sh
# Need to run a full clean install when changing the request factory interfaces
# Doing so deletes the local debug app engine database
# This script backs that up first
SRC=shuffle-app-engine/target/shuffle-app-engine-2.0.0-SNAPSHOT/WEB-INF/appengine-generated
DEST=../db_backup
rm -r $DEST
mkdir $DEST
cp -... | 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 2012, Google Inc
#
# Generates a zip of the google api python client and dependencies.
#
# Author: afshar@google.com (Ali Afshar)
# Exit on failure.
set -e
# Where to build the zip.
ROOT_PATH=$(pwd)/build/gae
BUILD_PATH=${ROOT_PATH}/build
LIB_PATH=${ROOT_PATH}/lib
ENV_PATH=${ROOT_PATH}/ve
LO... | Shell |
#!/bin/bash
#
# Copyright 2007 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 2011 Google Inc. All Rights Reserved.
# Author: jcgregorio@google.com (Joe Gregorio)
#
# Uploads a training data set to Google Storage to be used by this sample
# application.
#
# Usage:
# setup.sh file_name bucket/object
#
# Requirements:
# gsutil - a client application for interacting with... | Shell |
#!/bin/bash
openssl req -new -newkey rsa:2048 -days 3650 -nodes -x509 \
-keyout privatekey.pem -out publickey.pem \
-subj "/CN=unit-tests"
openssl pkcs12 -export -out privatekey.p12 \
-inkey privatekey.pem -in publickey.pem \
-name "key" -passout pass:notasecret
| Shell |
export PYTHONPATH=`pwd`:${PYTHONPATH}
| Shell |
#!/bin/sh
rm *.prt
rm *.exp
rm *.lib
rm *.o
cd list
rm list_prt
rm *.exe
rm *.exe.*
rm CMakeCache.txt
rm -rf CMakeFiles
rm *.cmake
rm Makefile
cd ..
cd test
rm test_prt
rm *.exe
rm *.exe.*
rm *.prt
rm CMakeCache.txt
rm -rf CMakeFiles
rm *.cmake
rm Makefile
cd ..
| Shell |
#!/bin/sh
[ -z "$HFS" ] && echo "The HFS environment variable must be set" && exit 1
hcustom -lz -I $HFS/toolkit/include/zlib SOP_prt.cpp
cd test
cmake -G "Unix Makefiles"
make
cd ..
cd list
cmake -G "Unix Makefiles"
make
cd ..
| Shell |
#!/bin/sh
[ -z "$HFS" ] && echo "The HFS environment variable must be set" && exit 1
hcustom -I $HFS/toolkit/include/zlib SOP_prt.cpp
cd test
cmake -G "Unix Makefiles"
make
cd ..
cd list
cmake -G "Unix Makefiles"
make
cd ..
| Shell |
#!/bin/bash
python yh-most-distant-sequence.py 01_central_sequence__equal_scoring -f library.txt -i 1 -s 1
| Shell |
#!/bin/bash
python yh-most-distant-sequence.py 02_central_sequence__proportional_scoring -f library.txt -i 1 -s 2
| Shell |
#!/bin/bash
python yh-most-distant-sequence.py 02_central_sequence__proportional_scoring -f library.txt -i 1 -s 2
| Shell |
#!/bin/bash
python yh-most-distant-sequence.py 03_polyW__equal_scoring -f library.txt -i 2 -s 1
| Shell |
#!/bin/bash
python yh-most-distant-sequence.py 01_central_sequence__equal_scoring -f library.txt -i 1 -s 1
| Shell |
#!/bin/bash
python yh-most-distant-sequence.py 04_polyW__proportional_scoring -f library.txt -i 2 -s 2
| Shell |
#!/bin/bash
python yh-most-distant-sequence.py 03_polyW__equal_scoring -f library.txt -i 2 -s 1
| Shell |
#!/bin/bash
python yh-most-distant-sequence.py 04_polyW__proportional_scoring -f library.txt -i 2 -s 2
| Shell |
#!/bin/sh
gcc -c KMeans.c -lm && gcc -shared KMeans.o -o KMeans.so
| Shell |
#!/bin/sh
gcc -c KMeans.c -lm && gcc -shared KMeans.o -o KMeans.so
| Shell |
#!/bin/sh
gcc -I/usr/local/include/opencv -L/usr/local/lib -lcv -lhighgui -lcvaux -lml -lcxcore -c ccv.c hog.c && gcc -I/usr/local/include/opencv -L/usr/local/lib -lcv -lhighgui -lcvaux -lml -lcxcore -shared ccv.o -o ccv.so && gcc -I/usr/local/include/opencv -L/usr/local/lib -lcv -lhighgui -lcvaux -lml -lcx... | Shell |
#!/bin/sh
gcc -I/usr/local/include/opencv -L/usr/local/lib -lcv -lhighgui -lcvaux -lml -lcxcore -c ccv.c hog.c && gcc -I/usr/local/include/opencv -L/usr/local/lib -lcv -lhighgui -lcvaux -lml -lcxcore -shared ccv.o -o ccv.so && gcc -I/usr/local/include/opencv -L/usr/local/lib -lcv -lhighgui -lcvaux -lml -lcx... | Shell |
native2ascii -encoding UTF-8 displaytag_zh_CN.properties displaytag.properties
native2ascii -encoding UTF-8 createXmlTree_zh_CN.properties createXmlTree.properties
| 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 -Xmx512M -cp "./OsmAndMapCreator.jar... | 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 "./OsmAndM... | 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/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
# check build already run today
if [ -e "$LOG_FILE" ]; then
echo "Build already ran today"
exit
fi
touch $LOG_FILE
# 1. Update git directory
"${DIRE... | Shell |
#!/bin/sh
DIRECTORY=$(cd `dirname $0` && pwd)
FTP_SITE=download.osmand.net
FTP_FOLDER=night-builds
# FTP_USER in local.properties
# FTP_PWD= in local.properties
BUILD_DIR="$DIRECTORY"/builds
. "$DIRECTORY"/local.properties
# 3. upload to ftp server
lftp -c "set net:timeout 45;open -u $FTP_USER,$FTP_PWD $FTP_SITE;ls $... | 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
HG_DIR="$DIRECTORY"/osmand-hg
HG_URL=https://osmand.googlecode.com/hg
BUILD_DIR="$DIRECTORY"/builds
if [ ! -d "$HG_DIR" ]; then
hg clone ${GIT_URL} "${HG_DIR}"
fi
cd "... | Shell |
#!/bin/sh
DIRECTORY=$(cd `dirname $0` && pwd)
GIT_DIR="$DIRECTORY"/osmand-git
GIT_ORIGIN_NAME=origin
BUILD_DIR="$DIRECTORY"/builds
VERSION_FILE=./DataExtractionOSM/src/net/osmand/Version.java
DATE=$(date +%d-%m-%y)
# clean all files in build directory
rm -r "$BUILD_DIR"
mkdir "$BUILD_DIR"
cd "${GIT_DIR}"
git branc... | 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
# 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}"
git checkout master
git... | Shell |
#!/bin/bash
# Android Screenshot Library #
##############################
# Startup script #
echo "Android Screenshot Library -- initializing..."
#
if [ -z $ANDROID ]; then
echo "*** Android SDK not found ***"
echo "Make sure the ANDROID variable is pointing to Android SDK root directory"
else
adb="$AN... | Shell |
#!/bin/sh
php ./merge.php | Shell |
#!/bin/sh
php ./merge.php | 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 |
#!/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 |
chromium | Shell |
#!/bin/bash
echo "The script you are running has basename `basename $0`, dirname `dirname $0`"
echo "The present working directory is `pwd`"
echo "Deleting runtime contents..."
rm -Rf "`pwd`/protected/runtime"/*
echo "Deleting assets..."
rm -Rf "`pwd`/assets"/*
echo "Setting folder ownwer and group..."
chown alex:ww... | Shell |
#!/bin/bash
echo "The script you are running has basename `basename $0`, dirname `dirname $0`"
echo "The present working directory is `pwd`"
echo "Deleting runtime contents..."
rm -Rf "`pwd`/protected/runtime"/*
echo "Deleting assets..."
rm -Rf "`pwd`/assets"/*
echo "Setting folder ownwer and group..."
chown alex:ww... | 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 |
#!/usr/bin/env sh
mkdir vendors
git clone https://github.com/zxbodya/elFinder.git ./vendors/elFinder
cd ./vendors/elFinder/
git checkout 1.x
cd ./../../ | Shell |
#!/usr/bin/env sh
mkdir vendors
git clone https://github.com/zxbodya/elFinder.git ./vendors/elFinder
cd ./vendors/elFinder/
git checkout 1.x
cd ./../../ | Shell |
#!/usr/bin/env sh
cd ./vendors/elFinder/src/
make clean
make all
cp ../css/elfinder.css ../../../assets/css/elfinder.css
cp -r ../js/i18n ../../../assets/js/
cp ../js/elfinder.full.js ../../../assets/js/
cp ../js/elfinder.min.js ../../../assets/js/
cp -r ../images/* ../../../assets/images/
#cp -r ../conn... | Shell |
#!/usr/bin/env sh
cd ./vendors/elFinder/src/
make clean
make all
cp ../css/elfinder.css ../../../assets/css/elfinder.css
cp -r ../js/i18n ../../../assets/js/
cp ../js/elfinder.full.js ../../../assets/js/
cp ../js/elfinder.min.js ../../../assets/js/
cp -r ../images/* ../../../assets/images/
#cp -r ../conn... | Shell |
#!/bin/sh
rm -fr ../yii-batsg-doc
| Shell |
#!/bin/sh
phpdoc -t ../yii-batsg-doc -o HTML:default:default -d ../yii-batsg/protected/extensions/batsg
| Shell |
#!/bin/sh
rm -fr ../yii-batsg-doc
| Shell |
#!/bin/sh
phpdoc -t ../yii-batsg-doc -o HTML:default:default -d ../yii-batsg/protected/extensions/batsg
| Shell |
#!/bin/sh
rm demo.sqlite
sqlite3 demo.sqlite < schema.sqlite.sql
chmod 777 demo.sqlite
| Shell |
#!/bin/sh
rm demo.sqlite
sqlite3 demo.sqlite < schema.sqlite.sql
chmod 777 demo.sqlite
| Shell |
#!/bin/sh
../../yiic i18n generateMessageFiles --inputDir=. --category=app --outputDir=..
| Shell |
#!/bin/sh
../../yiic i18n generateMessageFiles --inputDir=. --category=app --outputDir=..
| Shell |
#!/bin/sh
phpunit unit/batsg/HFileTest
| Shell |
#!/bin/sh
phpunit unit/batsg/HFileTest
| Shell |
#!/bin/sh
# Regenerate PHPMailer documentation
# Run from within the docs folder
rm -rf phpdoc/*
phpdoc --directory .. --target ./phpdoc --ignore test/,examples/,extras/,test_script/ --sourcecode --force --title PHPMailer --template="clean"
| Shell |
#!/bin/sh
# Regenerate PHPMailer documentation
# Run from within the docs folder
rm -rf phpdoc/*
phpdoc --directory .. --target ./phpdoc --ignore test/,examples/,extras/,test_script/ --sourcecode --force --title PHPMailer --template="clean"
| Shell |
#!/usr/bin/env bash
# Copyright (c) 2003-2010, 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-2010, 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
# 打开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
# postinst script for tolua++
#
# see: dh_installdeb(1)
set -e
# summary of how this script can be called:
# * <postinst> `configure' <most-recently-configured-version>
# * <old-postinst> `abort-upgrade' <new version>
# * <conflictor's-postinst> `abort-remove' `in-favour' <package>
# ... | Shell |
#! /bin/sh
# preinst script for tolua++
#
# see: dh_installdeb(1)
set -e
# summary of how this script can be called:
# * <new-preinst> `install'
# * <new-preinst> `install' <old-version>
# * <new-preinst> `upgrade' <old-version>
# * <old-preinst> `abort-upgrade' <new-version>
#
# for detai... | Shell |
#!/bin/sh -e
# /usr/lib/emacsen-common/packages/remove/tolua++
FLAVOR=$1
PACKAGE=tolua++
if [ ${FLAVOR} != emacs ]; then
if test -x /usr/sbin/install-info-altdir; then
echo remove/${PACKAGE}: removing Info links for ${FLAVOR}
install-info-altdir --quiet --remove --dirname=${FLAVOR} /usr/info/tolua... | Shell |
#! /bin/sh
# prerm script for tolua++
#
# see: dh_installdeb(1)
set -e
# summary of how this script can be called:
# * <prerm> `remove'
# * <old-prerm> `upgrade' <new-version>
# * <new-prerm> `failed-upgrade' <old-version>
# * <conflictor's-prerm> `remove' `in-favour' <package> <new-versio... | Shell |
#! /bin/sh -e
# /usr/lib/emacsen-common/packages/install/tolua++
# Written by Jim Van Zandt <jrv@vanzandt.mv.com>, borrowing heavily
# from the install scripts for gettext by Santiago Vila
# <sanvila@ctv.es> and octave by Dirk Eddelbuettel <edd@debian.org>.
FLAVOR=$1
PACKAGE=tolua++
if [ ${FLAVOR} = emacs ]; then ex... | Shell |
#! /bin/sh
# postrm script for tolua++
#
# see: dh_installdeb(1)
set -e
# summary of how this script can be called:
# * <postrm> `remove'
# * <postrm> `purge'
# * <old-postrm> `upgrade' <new-version>
# * <new-postrm> `failed-upgrade' <old-version>
# * <new-postrm> `abort-install'
# ... | Shell |
#! /bin/sh
#
# skeleton example file to build /etc/init.d/ scripts.
# This file should be used to construct scripts for /etc/init.d.
#
# Written by Miquel van Smoorenburg <miquels@cistron.nl>.
# Modified for Debian
# by Ian Murdock <imurdock@gnu.ai.mit.edu>.
#
# Version: @(#)skeleton 1.9 26-Feb-2001 miquels@cis... | Shell |
#! /bin/sh
# postinst script for tolua++
#
# see: dh_installdeb(1)
set -e
# summary of how this script can be called:
# * <postinst> `configure' <most-recently-configured-version>
# * <old-postinst> `abort-upgrade' <new version>
# * <conflictor's-postinst> `abort-remove' `in-favour' <package>
# ... | Shell |
#! /bin/sh
# preinst script for tolua++
#
# see: dh_installdeb(1)
set -e
# summary of how this script can be called:
# * <new-preinst> `install'
# * <new-preinst> `install' <old-version>
# * <new-preinst> `upgrade' <old-version>
# * <old-preinst> `abort-upgrade' <new-version>
#
# for detai... | Shell |
#! /bin/sh
# postrm script for tolua++
#
# see: dh_installdeb(1)
set -e
# summary of how this script can be called:
# * <postrm> `remove'
# * <postrm> `purge'
# * <old-postrm> `upgrade' <new-version>
# * <new-postrm> `failed-upgrade' <old-version>
# * <new-postrm> `abort-install'
# ... | Shell |
#! /bin/sh
#
# skeleton example file to build /etc/init.d/ scripts.
# This file should be used to construct scripts for /etc/init.d.
#
# Written by Miquel van Smoorenburg <miquels@cistron.nl>.
# Modified for Debian
# by Ian Murdock <imurdock@gnu.ai.mit.edu>.
#
# Version: @(#)skeleton 1.9 26-Feb-2001 miquels@cis... | Shell |
#! /bin/sh -e
# /usr/lib/emacsen-common/packages/install/tolua++
# Written by Jim Van Zandt <jrv@vanzandt.mv.com>, borrowing heavily
# from the install scripts for gettext by Santiago Vila
# <sanvila@ctv.es> and octave by Dirk Eddelbuettel <edd@debian.org>.
FLAVOR=$1
PACKAGE=tolua++
if [ ${FLAVOR} = emacs ]; then ex... | Shell |
#!/bin/sh -e
# /usr/lib/emacsen-common/packages/remove/tolua++
FLAVOR=$1
PACKAGE=tolua++
if [ ${FLAVOR} != emacs ]; then
if test -x /usr/sbin/install-info-altdir; then
echo remove/${PACKAGE}: removing Info links for ${FLAVOR}
install-info-altdir --quiet --remove --dirname=${FLAVOR} /usr/info/tolua... | Shell |
#! /bin/sh
# prerm script for tolua++
#
# see: dh_installdeb(1)
set -e
# summary of how this script can be called:
# * <prerm> `remove'
# * <old-prerm> `upgrade' <new-version>
# * <new-prerm> `failed-upgrade' <old-version>
# * <conflictor's-prerm> `remove' `in-favour' <package> <new-versio... | 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
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.