code stringlengths 1 1.96M | language stringclasses 1
value |
|---|---|
#! /bin/sh
# Generate X11 icon
# Usage: xfixicon iconfile
if test -z "$1"; then
echo "Usage:"
echo " xfixicon iconfile [-o outputfile]"
echo "this will generate a C file that can be linked with your application"
echo "to set the X11 icon automatically."
echo ""
echo "Options:"
echo " -o Set t... | Shell |
#! /bin/sh
# Generate X11 icon
# Usage: xfixicon iconfile
if test -z "$1"; then
echo "Usage:"
echo " xfixicon iconfile [-o outputfile]"
echo "this will generate a C file that can be linked with your application"
echo "to set the X11 icon automatically."
echo ""
echo "Options:"
echo " -o Set t... | 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 |
#!/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 |
ant clean; ant release; adb install -r bin/MetaTracker-release.apk
| Shell |
#! /bin/bash
# Binary of the Texturepacker:
TEXTUREPACKER_BINARY=/usr/local/bin/TexturePacker
# Shared Spritesheet-Output-Definitions:
SPRITESHEET_OUTPUT_DIRECTORY="../assets/gfx/spritesheets/"
SPRITESHEET_OUTPUT_JAVAIDS_PACKAGE="org.anddev.andengine.examples.spritesheets"
SPRITESHEET_OUTPUT_JAVAIDS_DIRECTORY="../src... | Shell |
#
# File: env.sh
# Description: BASH commands to set up the environment for GAE Python
#
# Copyright 2011 Adam Meadows
#
# 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
#
# ht... | Shell |
#!/bin/sh
# This script preloads the lib3dfxgl.so library which overrides the functions
# present in libMesaGL.so. This allows glquake to run using 3DFX's miniport
# and without Mesa 3-D. Glide and X11 libraries have to be installed tho,
# even tho GLQuake doesn't use X11, it's linked against it because Mesa 3-D
# ... | Shell |
#!/bin/sh
# Generate qwcl.spec
# $1 is version
# $2 is release
# $3 is install dir (assumed to be in /var/tmp)
cat <<EOF
%define name glqwcl
%define version ${1}
%define release ${2}
%define builddir \$RPM_BUILD_DIR/%{name}-%{version}
Name: %{name}
Version: %{version}
Release: %{release}
Vendor: id Software
Packager:... | Shell |
#!/bin/sh
# Generate qwcl.x11.spec
# $1 is version
# $2 is release
# $3 is install dir (assumed to be in /var/tmp)
cat <<EOF
%define name qwcl.x11
%define version ${1}
%define release ${2}
%define builddir \$RPM_BUILD_DIR/%{name}-%{version}
Name: %{name}
Version: %{version}
Release: %{release}
Vendor: id Software
Pac... | Shell |
#!/bin/sh
# Generate qwcl.spec
# $1 is version
# $2 is release
# $3 is install dir (assumed to be in /var/tmp)
cat <<EOF
%define name qwcl
%define version ${1}
%define release ${2}
%define builddir \$RPM_BUILD_DIR/%{name}-%{version}
Name: %{name}
Version: %{version}
Release: %{release}
Vendor: id Software
Packager: D... | Shell |
#!/bin/sh
for x in *; do
y=`echo $x | tr '[A-Z]' '[a-z]'`
if [ $x != $y ]; then
mv $x $y
fi
done
| Shell |
#!/bin/sh
# Generate qwsv.spec
# $1 is version
# $2 is release
# $3 is install dir (assumed to be in /var/tmp)
cat <<EOF
%define name qwsv
%define version ${1}
%define release ${2}
%define builddir \$RPM_BUILD_DIR/%{name}-%{version}
Name: %{name}
Version: %{version}
Release: %{release}
Vendor: id Software
Packager: D... | Shell |
#!/bin/sh
# Generate quake-rogue.spec
# $1 is version
# $2 is release
# $3 is install dir (assumed to be in /var/tmp)
cat <<EOF
%define name quake-rogue
%define version ${1}
%define release ${2}
%define builddir \$RPM_BUILD_DIR/%{name}-%{version}
Name: %{name}
Version: %{version}
Release: %{release}
Vendor: id Softwa... | Shell |
#!/bin/sh
# Generate quake-shareware.spec
# $1 is version
# $2 is release
# $3 is install dir (assumed to be in /var/tmp)
cat <<EOF
%define name quake
%define version ${1}-shareware
%define release ${2}
%define builddir \$RPM_BUILD_DIR/%{name}-%{version}
Name: %{name}
Version: %{version}
Release: %{release}
Vendor: i... | Shell |
#!/bin/sh
# Generate quake-data.spec
# $1 is version
# $2 is release
# $3 is install dir (assumed to be in /var/tmp)
cat <<EOF
%define name quake-data
%define version ${1}
%define release ${2}
%define builddir \$RPM_BUILD_DIR/%{name}-%{version}
Name: %{name}
Version: %{version}
Release: %{release}
Vendor: id Software... | Shell |
#!/bin/sh
# Generate quake.spec
# $1 is version
# $2 is release
# $3 is install dir (assumed to be in /var/tmp)
cat <<EOF
%define name quake
%define version ${1}
%define release ${2}
%define builddir \$RPM_BUILD_DIR/%{name}-%{version}
Name: %{name}
Version: %{version}
Release: %{release}
Vendor: id Software
Packager:... | 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
# Binary of the Texturepacker:
TEXTUREPACKER_BINARY=/usr/local/bin/TexturePacker
# Shared Spritesheet-Output-Definitions:
SPRITESHEET_OUTPUT_DIRECTORY="../assets/gfx/spritesheets/"
SPRITESHEET_OUTPUT_JAVAIDS_PACKAGE="org.anddev.andengine.examples.spritesheets"
SPRITESHEET_OUTPUT_JAVAIDS_DIRECTORY="../src... | 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
QuestsDir="/usr/local/emu/bin/quests"
if test $# -ne 0
then
echo "usage: $0" 1>&2
echo " Parses all quests in $QuestsDir" 1>&2
exit 1
fi
( for QuestFile in `find $QuestsDir -name "*.pl"`
do
ZoneDir=`dirname $QuestFile`
echo "`basename $ZoneDir` `basename $QuestFile`"
... | Shell |
#!/bin/bash
QuestsDir="/usr/local/emu/bin/quests"
if test $# -ne 1
then
echo "usage: $0" 1>&2
echo " Parses all quests in $QuestsDir" 1>&2
exit 1
fi
( for QuestFile in `find $QuestsDir/$1 -name "*.pl"`
do
ZoneDir=`dirname $QuestFile`
echo "`basename $ZoneDir` `basename $QuestFile`"... | Shell |
#!/bin/bash
QuestsDir="/usr/local/emu/bin/quests"
if test $# -ne 1
then
echo "usage: $0" 1>&2
echo " Parses all quests in $QuestsDir" 1>&2
exit 1
fi
( for QuestFile in `find $QuestsDir/$1 -name "*.pl"`
do
ZoneDir=`dirname $QuestFile`
echo "`basename $ZoneDir` `basename $QuestFile`"... | Shell |
#!/bin/bash
QuestsDir="/usr/local/emu/bin/quests"
if test $# -ne 0
then
echo "usage: $0" 1>&2
echo " Parses all quests in $QuestsDir" 1>&2
exit 1
fi
( for QuestFile in `find $QuestsDir -name "*.pl"`
do
ZoneDir=`dirname $QuestFile`
echo "`basename $ZoneDir` `basename $QuestFile`"
... | 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
adb shell cat /data/data/com.google.android.apps.iosched/shared_prefs/com.google.android.apps.iosched_preferences.xml | xmllint --format - | 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 |
#!/bin/sh
adb shell pm clear 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
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_ImageCache VERBOSE
adb shell setprop log.tag.iosched_ImageWorker VERBOSE
adb shell setprop log.tag.iosched_I... | 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/bash
#
# Shell script that adds a new function file using a template. Should not be called directly
# but instead by template_Generator.sh and template_generator_mimetype.sh
#
#
# $1: Template
# $2: Filename
# $3: (optional) Description
if [ $# == 0 ]
then
echo "Please call template_generator.sh or template_g... | Shell |
#!/bin/bash
#
# Shell script that adds a new mimetype without transform function.
#
# The filename should contain either 'mimetype_subtype' or 'mimetype'.
# The suffix '.inc.php' is appended automatically!
#
# Example: template_generator_mimetype.sh 'filename'
#
if [ $# == 0 ]
then
echo "Usage: template_generator_m... | Shell |
#!/bin/bash
#
# Shell script that adds a new mimetype with transform function.
#
# The filename should contain either 'mimetype_subtype' or 'mimetype'.
# The suffix '.inc.php' is appended automatically!
#
# The 'description' parameter will add a new entry in the language file. Watch out for
# special escaping.
#
# Exam... | Shell |
#!/bin/bash
#
# Shell script that adds a new function file using a template. Should not be called directly
# but instead by template_Generator.sh and template_generator_mimetype.sh
#
#
# $1: Template
# $2: Filename
# $3: (optional) Description
if [ $# == 0 ]
then
echo "Please call template_generator.sh or template_g... | Shell |
#!/bin/bash
#
# Shell script that adds a new mimetype without transform function.
#
# The filename should contain either 'mimetype_subtype' or 'mimetype'.
# The suffix '.inc.php' is appended automatically!
#
# Example: template_generator_mimetype.sh 'filename'
#
if [ $# == 0 ]
then
echo "Usage: template_generator_m... | Shell |
#!/bin/bash
#
# Shell script that adds a new mimetype with transform function.
#
# The filename should contain either 'mimetype_subtype' or 'mimetype'.
# The suffix '.inc.php' is appended automatically!
#
# The 'description' parameter will add a new entry in the language file. Watch out for
# special escaping.
#
# Exam... | Shell |
#!/bin/bash
################################################################################
#
# Bake is a shell script for running CakePHP bake script
# PHP 5
#
# CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
# Copyright 2005-2011, Cake Software Foundation, Inc.
#
# Licensed under The MIT License
# R... | Shell |
#!/bin/bash
################################################################################
#
# Bake is a shell script for running CakePHP bake script
# PHP 5
#
# CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
# Copyright 2005-2011, Cake Software Foundation, Inc.
#
# Licensed under The MIT License
# R... | Shell |
#!/bin/bash
################################################################################
#
# Bake is a shell script for running CakePHP bake script
# PHP 5
#
# CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
# Copyright 2005-2011, Cake Software Foundation, Inc.
#
# Licensed under The MIT License
# R... | Shell |
#!/bin/bash
################################################################################
#
# Bake is a shell script for running CakePHP bake script
# PHP 5
#
# CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
# Copyright 2005-2011, Cake Software Foundation, Inc.
#
# Licensed under The MIT License
# R... | Shell |
#!/bin/bash
################################################################################
#
# Bake is a shell script for running CakePHP bake script
# PHP 5
#
# CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
# Copyright 2005-2011, Cake Software Foundation, Inc.
#
# Licensed under The MIT License
# R... | Shell |
#!/bin/bash
################################################################################
#
# Bake is a shell script for running CakePHP bake script
# PHP 5
#
# CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
# Copyright 2005-2011, Cake Software Foundation, Inc.
#
# Licensed under The MIT License
# R... | Shell |
#!/bin/bash
################################################################################
#
# Bake is a shell script for running CakePHP bake script
# PHP 5
#
# CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
# Copyright 2005-2011, Cake Software Foundation, Inc.
#
# Licensed under The MIT License
# R... | Shell |
#!/bin/bash
################################################################################
#
# Bake is a shell script for running CakePHP bake script
# PHP 5
#
# CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
# Copyright 2005-2011, Cake Software Foundation, Inc.
#
# Licensed under The MIT License
# R... | Shell |
#!/bin/bash
################################################################################
#
# Bake is a shell script for running CakePHP bake script
# PHP 5
#
# CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
# Copyright 2005-2011, Cake Software Foundation, Inc.
#
# Licensed under The MIT License
# R... | Shell |
#!/bin/bash
################################################################################
#
# Bake is a shell script for running CakePHP bake script
# PHP 5
#
# CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
# Copyright 2005-2011, Cake Software Foundation, Inc.
#
# Licensed under The MIT License
# R... | Shell |
#!/bin/bash
################################################################################
#
# Bake is a shell script for running CakePHP bake script
# PHP 5
#
# CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
# Copyright 2005-2011, Cake Software Foundation, Inc.
#
# Licensed under The MIT License
# R... | Shell |
#!/bin/bash
################################################################################
#
# Bake is a shell script for running CakePHP bake script
# PHP 5
#
# CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
# Copyright 2005-2011, Cake Software Foundation, Inc.
#
# Licensed under The MIT License
# R... | Shell |
#!/bin/sh
#
# Copyright (c) 2012-2014 Andrea Selva
#
echo " "
echo " ___ ___ _ _ ___ ________ _____ _____ "
echo " | \/ | | | | | | \/ | _ |_ _|_ _| "
echo " | . . | ___ ... | Shell |
#!/bin/sh
# $Id: code-clean.sh,v 1.8 2005/08/11 13:02:08 dries Exp $
find . -name "*~" -type f | xargs rm -f
find . -name ".#*" -type f | xargs rm -f
find . -name "*.rej" -type f | xargs rm -f
find . -name "*.orig" -type f | xargs rm -f
find . -name "DEADJOE" -type f | xargs rm -f
find . -type f | grep -v ".psp" | gre... | Shell |
#!/bin/sh
# $Id: code-clean.sh,v 1.8 2005/08/11 13:02:08 dries Exp $
find . -name "*~" -type f | xargs rm -f
find . -name ".#*" -type f | xargs rm -f
find . -name "*.rej" -type f | xargs rm -f
find . -name "*.orig" -type f | xargs rm -f
find . -name "DEADJOE" -type f | xargs rm -f
find . -type f | grep -v ".psp" | gre... | Shell |
#!/bin/sh
# $Id: cron-lynx.sh,v 1.3 2006/08/22 07:38:24 dries Exp $
/usr/bin/lynx -source http://example.com/cron.php > /dev/null 2>&1
| Shell |
#!/bin/sh
# $Id: cron-curl.sh,v 1.3 2006/08/22 07:38:24 dries Exp $
curl --silent --compressed http://example.com/cron.php
| Shell |
#!/bin/sh
# $Id: cron-curl.sh,v 1.3 2006/08/22 07:38:24 dries Exp $
curl --silent --compressed http://example.com/cron.php
| Shell |
#!/bin/sh
# $Id: cron-lynx.sh,v 1.3 2006/08/22 07:38:24 dries Exp $
/usr/bin/lynx -source http://example.com/cron.php > /dev/null 2>&1
| Shell |
#! /bin/bash
mtasc -version 8 -swf Storage.swf -main -header 215:138:10 Storage.as
| Shell |
#! /bin/bash
mtasc -version 8 -swf Storage.swf -main -header 215:138:10 Storage.as
| Shell |
#!/bin/sh
# Detects OS we're compiling on and generates build_config.mk,
# which in turn gets read while processing Makefile.
# build_config.mk will set the following variables:
# - PORT_CFLAGS will either set:
# -DLEVELDB_PLATFORM_POSIX if cstatomic is present
# -DLEVELDB_PLATFORM_NOATOMI... | Shell |
#!/bin/sh
#http://developer.apple.com/library/mac/#documentation/Java/Conceptual/Java14Development/03-JavaDeployment/JavaDeployment.html
#http://stackoverflow.com/questions/96882/how-do-i-create-a-nice-looking-dmg-for-mac-os-x-using-command-line-tools
set -o verbose #echo onset +o verbose #echo off
# Note: this must ... | Shell |
#!/bin/sh
#http://developer.apple.com/library/mac/#documentation/Java/Conceptual/Java14Development/03-JavaDeployment/JavaDeployment.html
set -o verbose #echo onset +o verbose #echo off
# Note: this must run on a Mac
myDir="`dirname "$0"`"
cd $myDir
APP_NAME="Android Design Preview"
OUT_PATH=../out/mac
OUT_ZIP="${AP... | Shell |
#!/bin/sh
# 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/sh
# 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/sh
# 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/zsh
tmpfile=$(mktemp -u).png
scrot -s $tmpfile
#import $tmpfile
targetfile=$(zenity --file-selection --save --confirm-overwrite 2> /dev/null)
mv $tmpfile $targetfile.png
box.rb $targetfile.png
| Shell |
#!/bin/zsh
tmpfile=$(mktemp -u).png
scrot -s $tmpfile
#import $tmpfile
targetfile=$(zenity --file-selection --save --confirm-overwrite 2> /dev/null)
mv $tmpfile $targetfile.png
box.rb $targetfile.png
| Shell |
#! /bin/sh
# $Id: updateminiupnpcstrings.sh,v 1.2 2009/06/04 09:13:53 nanard Exp $
FILE=miniupnpcstrings.h
# detecting the OS name and version
OS_NAME=`uname -s`
OS_VERSION=`uname -r`
if [ -f /etc/debian_version ]; then
OS_NAME=Debian
OS_VERSION=`cat /etc/debian_version`
fi
# use lsb_release (Linux Standard Base) w... | Shell |
zipBasePath="{TARGET_BUILD_DIR}/${ZipName}"
echo "Removing zip file ${zipBasePath}.zip"
rm -f "${zipBasePath}.zip"
if [ x${ACTION} = xclean ]; then
exit 0
fi
echo "Removing .svn directories..."
find "${BUILT_PRODUCTS_DIR}/${ZipProduct}" -name ".svn" -exec rm -rvf "{}" \;
echo "...done"
echo "Setting ownership..."
c... | 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 |
#!/bin/sh
#
# Convert LF line endings to CR/LF line endings, preserving timestamps and
# permissions on the file.
#
with_unix_tools() {
for file in "$@"
do
echo "$file"
tmpfile=`dirname "$file"`/__dtou_tmp.$RANDOM || exit 1
trap 'rm -f "$tmpfile"' 1 2 3 13 15
# We go through a slightly ... | Shell |
#!/bin/sh
#
# Create `languages.dat' and `keyboard.dat' from `resource' directory.
#
case "$DAT" in
"")
# DAT not supplied. Assume dat is installed on the PATH.
DAT=dat
;;
./*|../*)
# DAT supplied and looks like relative path.
# Assume it is and make it absolute.
DAT="`pwd`/$DAT"
;;
*)
# DAT suppl... | Shell |
#!/bin/sh
#
# Convert CR/LF line endings to LF line endings, preserving timestamps and
# permissions on the file.
#
with_unix_tools() {
for file in "$@"
do
echo "$file"
tmpfile=`dirname "$file"`/__dtou_tmp.$RANDOM || exit 1
trap 'rm -f "$tmpfile"' 1 2 3 13 15
# We go through a slightly ... | Shell |
#!/bin/sh
# This script, by Neil Townsend, is for cross-compilers to parse the `asmdef.s'
# file and generate `asmdef.inc'.
# Updated by Peter Wang.
# Parse command-line arguments
if [ $# != 2 ]; then
echo "usage: $0 asmdef.s asmdef.inc"
exit 1
fi
s_file=$1
inc_file=$2
# 1. Get the comments
grep "/\*" $s_file | ... | Shell |
#!/bin/sh
#
# Note: allegro-config is generated from allegro-config.in, by autoconf.
#
# This script returns suitable commandline options for compiling programs
# using the Allegro library, for example:
#
# gcc myprog.c -o myprog `allegro-config --libs`
#
# Undocumented feature for internal use:
# If... | Shell |
#! /bin/sh
#
# Shell script to scan the source and find any text strings that need
# to be translated. It creates an entext.cfg file containing the
# English version, and if given a commandline argument, will then
# check the named file (which should be a translation into some other
# language) to see if it is mis... | Shell |
#!/bin/sh
#
# Shell script to create a MacOS X package of the library.
# The package will hold an end-user version of Allegro,
# installing just the system wide library framework.
# The created package is compatible with MacOS X 10.2 and newer.
#
# Thanks to macosxhints.com for the hint!
#
# Usage: mkpkg <allegro_dir>
... | Shell |
#!/bin/sh
# This script, by Neil Townsend, is for cross-compilers to parse the `asmdef.s'
# file and generate `asmdef.inc'.
# Updated by Peter Wang.
# Parse command-line arguments
if [ $# != 2 ]; then
echo "usage: $0 asmdef.s asmdef.inc"
exit 1
fi
s_file=$1
inc_file=$2
# 1. Get the comments
grep "/\*" $s_file | ... | Shell |
#!/bin/sh
#
# Convert CR/LF line endings to LF line endings, preserving timestamps and
# permissions on the file.
#
with_unix_tools() {
for file in "$@"
do
echo "$file"
tmpfile=`dirname "$file"`/__dtou_tmp.$RANDOM || exit 1
trap 'rm -f "$tmpfile"' 1 2 3 13 15
# We go through a slightly ... | Shell |
#!/bin/sh
#
# Shell script to create a MacOS X package of the library.
# The package will hold an end-user version of Allegro,
# installing just the system wide library framework.
# The created package is compatible with MacOS X 10.2 and newer.
#
# Thanks to macosxhints.com for the hint!
#
# Usage: mkpkg <allegro_dir>
... | Shell |
#!/bin/sh
#
# Convert LF line endings to CR/LF line endings, preserving timestamps and
# permissions on the file.
#
with_unix_tools() {
for file in "$@"
do
echo "$file"
tmpfile=`dirname "$file"`/__dtou_tmp.$RANDOM || exit 1
trap 'rm -f "$tmpfile"' 1 2 3 13 15
# We go through a slightly ... | Shell |
#!/bin/sh
#
# Note: allegro-config is generated from allegro-config.in, by autoconf.
#
# This script returns suitable commandline options for compiling programs
# using the Allegro library, for example:
#
# gcc myprog.c -o myprog `allegro-config --libs`
#
# Undocumented feature for internal use:
# If... | Shell |
#! /bin/sh
#
# Shell script to create a Windows binary distribution. This will
# compile the DLL files using MSVC or Cygwin, generate the batch file and
# associated helpers needed for end users to build the example programs,
# and finally zip up the results.
#
# Note! If you use Cygwin to generate the DLLs make s... | Shell |
#! /bin/sh -e
#
# Shell script to create a distribution zip, generating the manifest
# file and optionally building diffs against a previous version. This
# should be run from the allegro directory, but will leave the zip
# files in the parent directory.
#
# This script tries to generate dependencies for all the ... | Shell |
#! /bin/sh
#
# Shell script to scan the source and find any text strings that need
# to be translated. It creates an entext.cfg file containing the
# English version, and if given a commandline argument, will then
# check the named file (which should be a translation into some other
# language) to see if it is mis... | Shell |
#!/bin/sh
# gcc-uni.sh
# ----------
# By Matthew Leverton
#
# Builds a universal binary by a multi-step process to allow for individual
# options for both architectures. Its primary use is to be used as a wrapper
# for makefile based projects.
#
# Although untested, it should be able to build OS X 10.2 compatible bui... | Shell |
#!/bin/sh
#
# Create `languages.dat' and `keyboard.dat' from `resource' directory.
#
case "$DAT" in
"")
# DAT not supplied. Assume dat is installed on the PATH.
DAT=dat
;;
./*|../*)
# DAT supplied and looks like relative path.
# Assume it is and make it absolute.
DAT="`pwd`/$DAT"
;;
*)
# DAT suppl... | Shell |
#! /bin/sh -e
#
# Shell script to create a distribution zip, generating the manifest
# file and optionally building diffs against a previous version. This
# should be run from the allegro directory, but will leave the zip
# files in the parent directory.
#
# This script tries to generate dependencies for all the ... | Shell |
#! /bin/sh
#
# Shell script to create a Windows binary distribution. This will
# compile the DLL files using MSVC or Cygwin, generate the batch file and
# associated helpers needed for end users to build the example programs,
# and finally zip up the results.
#
# Note! If you use Cygwin to generate the DLLs make s... | Shell |
#!/bin/sh
# gcc-uni.sh
# ----------
# By Matthew Leverton
#
# Builds a universal binary by a multi-step process to allow for individual
# options for both architectures. Its primary use is to be used as a wrapper
# for makefile based projects.
#
# Although untested, it should be able to build OS X 10.2 compatible bui... | Shell |
#!/bin/sh
#
# Shell script to adjust the version numbers and dates wherever they appear
# on the JPGalleg sources and text files.
if [ $# -ne 2 ]; then
echo "Usage: fixver major minor" 1>&2
exit 1
fi
ver_str="$1.$2"
year_str="$(date +%Y)"
echo "s/Version [0-9]\.[0-9], by Angelo Mottola, .*/Version $ver_str, ... | Shell |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.