code stringlengths 1 1.96M | language stringclasses 1
value |
|---|---|
#!/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/bash
NUM_VMs=10
if [ $# -ne 1 ]
then
echo "Usage: start_app <application file name>"
exit 0
fi
echo "Start Application on VMs: "
for ((i=1; $i <= $NUM_VMs; i=i+1));
do echo "vm$i "
ssh -f root@vm$i /home/$USER/$1
sleep 1
done
| Shell |
#!/bin/bash
NUM_VMs=10
if [ $# -lt 1 ]
then
echo "Usage: deploy_app <List of files>"
exit 0
fi
echo "Deploying Files on VMs: "
for ((i=5; $i <= $NUM_VMs; i=i+1));
do echo "vm$i "
scp -p $@ root@vm$i:/home/$USER
sleep 1
done
| Shell |
#!/bin/bash
NUM_VMs=10
echo -n $"Removing Directories on VMs: "
for ((i=1; $i <= $NUM_VMs; i=i+1));
do echo -n "vm$i " ;
ssh root@vm$i rm -rf /home/$USER
sleep 1
done
echo
| Shell |
#!/bin/bash
NUM_VMs=10
if [ $# -lt 1 ]
then
echo "Usage: deploy_app <List of files>"
exit 0
fi
echo "Deploying Files on VMs: "
for ((i=5; $i <= $NUM_VMs; i=i+1));
do echo "vm$i "
scp -p $@ root@vm$i:/home/$USER
sleep 1
done
| Shell |
#!/bin/bash
NUM_VMs=10
if [ $# -ne 1 ]
then
echo "Usage: start_app <application file name>"
exit 0
fi
echo "Start Application on VMs: "
for ((i=1; $i <= $NUM_VMs; i=i+1));
do echo "vm$i "
ssh -f root@vm$i /home/$USER/$1
sleep 1
done
| Shell |
#!/bin/bash
NUM_VMs=10
echo -n $"Creating Directories on VMs: "
for ((i=1; $i <= $NUM_VMs; i=i+1));
do echo -n "vm$i " ;
ssh root@vm$i mkdir /home/$USER
sleep 1
done
echo
| Shell |
#!/bin/bash
NUM_VMs=10
echo -n $"Removing Directories on VMs: "
for ((i=1; $i <= $NUM_VMs; i=i+1));
do echo -n "vm$i " ;
ssh root@vm$i rm -rf /home/$USER
sleep 1
done
echo
| Shell |
#!/bin/bash
NUM_VMs=10
echo -n $"Creating Directories on VMs: "
for ((i=1; $i <= $NUM_VMs; i=i+1));
do echo -n "vm$i " ;
ssh root@vm$i mkdir /home/$USER
sleep 1
done
echo
| Shell |
#!/bin/sh
#############################################################################
# Installation
#
# Small installation script
#
#############################################################################
# Server data
echo "Permissions for ./data/"
chmod a+w ./data/cache/ && echo " ./cache/"
chmod a+w ./... | Shell |
# Copyright 2013 Google Inc. All Rights Reserved.
#
#
# This script sets up all build/test dependencies including Google App Engine,
# WebTest, Selenium, Chromedriver, etc. All other scripts will include this
# script to setup these dependencies.
#
# Force shell to fail on any errors.
set -e
shopt -s nullglob
# Se... | Shell |
#!/bin/bash
# Copyright 2014 Google Inc. All Rights Reserved.
#
# Wrapper script for modules.py that sets up paths correctly. Usage from your
# coursebuilder/ folder:
#
# sh scripts/modules.sh [args]
set -e
. "$(dirname "$0")/common.sh"
python "$COURSEBUILDER_HOME/scripts/modules.py" "$@"
| Shell |
#!/bin/bash
# Copyright 2012 Google Inc. All Rights Reserved.
#
# author: sll@google.com (Sean Lip)
# Run this script from the Course Builder folder as follows:
# sh ./scripts/test.sh --test_class <dotted test name>
# E.g.,
# Run all tests in a module:
# sh ./scripts/test.sh tests.unit.common_safe_dom
#
# ... | Shell |
#! /bin/sh
# Copyright 2012 Google Inc. All Rights Reserved.
#
# author: psimakov@google.com (Pavel Simakov)
#
# This script starts local developer Google AppEngine server for integration
# tests and initializes it with a default data set.
#
# Run this script from the coursebuilder/ folder:
# sh ./scripts/start_i... | Shell |
#!/bin/bash
# Copyright 2014 Google Inc. All Rights Reserved.
#
# Usage:
#
# Run this script from the Course Builder folder. It can be run with the
# following arguments:
#
# Deploy Course Builder to the App Engine app named in app.yaml:
# sh ./scripts/deploy.sh
#
# Deploy Course Builder to the given App Engine ap... | Shell |
# Copyright 2012 Google Inc. All Rights Reserved.
#
# author: psimakov@google.com (Pavel Simakov)
#
# This script starts local developer Google AppEngine server and initializes it
# with the default data set.
#
# Run this script from the coursebuilder/ folder:
# sh ./scripts/start.sh
#
usage () { echo "Options: -... | Shell |
#! /bin/bash
# Copyright 2014 Google Inc. All Rights Reserved.
#
# Wrapper script to launch PyLint ( http://www.pylint.org/ ) against
# CourseBuilder sources. This script is automatically run as part of
# run_all_tests.py, and can be used on individual files; run with -h
# option to get the "help" text on options and... | Shell |
# Copyright 2014 Google Inc. All Rights Reserved.
#
# Set common config variables for developer runtime environment scripts.
# NOTE: This file is also evaluated by Python scripts to get configurations
# from environment variables. Do not add any non-idempotent side-effects
# to this script.
export SOURCE_DIR="$( cd "... | Shell |
#!/bin/bash
# Copyright 2015 Google Inc. All Rights Reserved.
#
# 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 appli... | Shell |
#!/bin/bash
# Copyright 2014 Google Inc. All Rights Reserved.
#
# Wrapper script for tools/etl/etl.py that sets up the environment correctly.
#
# Run this script as follows:
# sh ./scripts/etl.sh <arguments>
#
# ETL's arguments are involved; pass --help for details. You will need to
# provide credentials when usin... | 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
rm -rf org/ietf/
rm -rf org/apache/harmony/auth
rm -rf org/apache/harmony/javax/security/auth/kerberos/
rm -rf org/apache/harmony/javax/security/auth/x500/
rm org/apache/harmony/javax/security/auth/Policy.java
| Shell |
#!/bin/bash
find -name '*.java' -exec sed -i 's:import org.apache.harmony.javax.security.sasl.Sasl;:import de.measite.smack.Sasl;:g' '{}' ';'
| Shell |
#!/bin/bash
rm org/jivesoftware/smack/debugger/LiteDebugger.java
rm org/jivesoftware/smackx/debugger/EnhancedDebugger.java
rm org/jivesoftware/smackx/debugger/EnhancedDebuggerWindow.java
| Shell |
#!/bin/bash
find org/jivesoftware -name '*.java' -exec sed -i 's:import org.xmlpull.mxp1.MXParser:import org.xmlpull.v1.XmlPullParserFactory:' '{}' ';'
find org/jivesoftware -name '*.java' -exec sed -i 's:new MXParser():XmlPullParserFactory.newInstance().newPullParser():g' '{}' ';'
| Shell |
#!/bin/bash
mkdir -p org/apache/harmony/
mv javax org/apache/harmony/
find org/apache/harmony/ -name '*.java' -exec sed -i 's:package javax:package org.apache.harmony.javax:g' '{}' ';'
find -name '*.java' -exec sed -i 's:import javax.security.sasl:import org.apache.harmony.javax.security.sasl:g' '{}' ';'
find -name '*... | Shell |
#!/bin/bash
rm org/xbill/DNS/spi/DNSJavaNameServiceDescriptor.java
| Shell |
#!/bin/bash
find org/apache/harmony -name '*.java' -exec sed -i 's:import org.apache.harmony.auth.internal.nls.Messages;::' '{}' ';'
find org/apache/harmony -name '*.java' -exec sed -i 's:Messages.getString(\("[^"]*"\)):\1:g' '{}' ';'
| Shell |
#!/bin/bash
echo "## Step 00: initialize"
(
if ! [ -d build ]; then
mkdir build
mkdir build/src
mkdir build/src/trunk
fi
)
fetch() {
(
cd src
if ! [ -f "${2}/.svn/entries" ]; then
mkdir "${2}"
cd "${2}"
svn co --non-interactive --trust-server-cert "${1}" "."
else
cd "${2}"
sv... | 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
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)
to... | Shell |
#!/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)
to... | Shell |
#! /bin/sh
: 'This file is in the public domain, so clarified as of'
: '2006-07-17 by Arthur David Olson.'
case $#-$1 in
2-|2-0*|2-*[!0-9]*)
echo "$0: wild year - $1" >&2
exit 1 ;;
esac
case $#-$2 in
2-even)
case $1 in
*[24680]) exit 0 ;;
*) exit 1 ;;
esac ;;
2-nonpres|2-nonuspres)
case $1 in... | Shell |
#! /bin/sh
: 'This file is in the public domain, so clarified as of'
: '2006-07-17 by Arthur David Olson.'
case $#-$1 in
2-|2-0*|2-*[!0-9]*)
echo "$0: wild year - $1" >&2
exit 1 ;;
esac
case $#-$2 in
2-even)
case $1 in
*[24680]) exit 0 ;;
*) exit 1 ;;
esac ;;
2-nonpres|2-nonuspres)
case $1 in... | Shell |
#!/bin/bash
echo executing './test_client_args localhost'
./test_client_args localhost
echo executing './test_client_args 127.0.0.1'
./test_client_args 127.0.0.1
echo executing './test_client_args blah'
./test_client_args blah
./server > server.log &
echo executing './test_echo_client'
./test_echo_client
echo done
| Shell |
#!/bin/sh
./udpcli01 140.252.13.35 < /usr/share/misc/termcap > /home/rstevens/temp.1 &
./udpcli01 140.252.13.35 < /usr/share/misc/termcap > /home/rstevens/temp.2 &
./udpcli01 140.252.13.35 < /usr/share/misc/termcap > /home/rstevens/temp.3 &
./udpcli01 140.252.13.35 < /usr/share/misc/termcap > /home/rstevens/temp.4 &
.... | Shell |
#!/bin/sh
./udpcli01 140.252.13.37 < /usr/share/lib/termcap > /home/rstevens/temp.1 &
./udpcli01 140.252.13.37 < /usr/share/lib/termcap > /home/rstevens/temp.2 &
./udpcli01 140.252.13.37 < /usr/share/lib/termcap > /home/rstevens/temp.3 &
./udpcli01 140.252.13.37 < /usr/share/lib/termcap > /home/rstevens/temp.4 &
./udp... | Shell |
#!/bin/sh
./udpcli01 140.252.13.35 < /usr/share/misc/termcap > /home/rstevens/temp.1 &
./udpcli01 140.252.13.35 < /usr/share/misc/termcap > /home/rstevens/temp.2 &
./udpcli01 140.252.13.35 < /usr/share/misc/termcap > /home/rstevens/temp.3 &
./udpcli01 140.252.13.35 < /usr/share/misc/termcap > /home/rstevens/temp.4 &
.... | Shell |
#!/bin/sh
./udpcli01 140.252.13.37 < /usr/share/lib/termcap > /home/rstevens/temp.1 &
./udpcli01 140.252.13.37 < /usr/share/lib/termcap > /home/rstevens/temp.2 &
./udpcli01 140.252.13.37 < /usr/share/lib/termcap > /home/rstevens/temp.3 &
./udpcli01 140.252.13.37 < /usr/share/lib/termcap > /home/rstevens/temp.4 &
./udp... | Shell |
#!/bin/sh
case $# in
1) break ;;
*) echo "one argument (#simultaneous connections) required" 1>&2
exit 1 ;;
esac
time ./web $1 192.207.117.2 / \
/img/logo/awl_logo_blue_50x40.gif \
/img/a_world_of_learning.gif \
/img/toolbar_soptions.gif \
/img/toolbar_purchase.gif \
/img/toolbar_feedback.gif \
/img/toolbar_to... | Shell |
10:18:34.491482: read 4096 bytes from stdin
10:18:34.519016: wrote 4096 bytes to socket
10:18:34.544636: read 4096 bytes from stdin
10:18:34.568505: read 3508 bytes from socket
10:18:34.593354: wrote 3508 bytes to stdout
10:18:34.618062: wrote 4096 bytes to socket
10:18:34.643524: read 4096 bytes from stdin
10:18:34.66... | Shell |
#!/bin/sh
case $# in
1) break ;;
*) echo "one argument (#simultaneous connections) required" 1>&2
exit 1 ;;
esac
time ./web $1 192.207.117.2 / \
/img/logo/awl_logo_blue_50x40.gif \
/img/a_world_of_learning.gif \
/img/toolbar_soptions.gif \
/img/toolbar_purchase.gif \
/img/toolbar_feedback.gif \
/img/toolbar_to... | Shell |
#! /bin/sh
# Configuration validation subroutine script.
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
# 2000, 2001, 2002 Free Software Foundation, Inc.
timestamp='2002-03-07'
# This file is (in principle) common to ALL GNU software.
# The presence of a machine in this file suggests that SOME GN... | Shell |
#! /bin/sh
# Attempt to guess a canonical system name.
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
# 2000, 2001, 2002 Free Software Foundation, Inc.
timestamp='2002-03-20'
# This file is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License... | 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
case $# in
1) break ;;
*) echo "one argument (#simultaneous connections) required" 1>&2
exit 1 ;;
esac
time ./web03 $1 192.207.117.2 / \
/img/logo/awl_logo_blue_50x40.gif \
/img/a_world_of_learning.gif \
/img/toolbar_soptions.gif \
/img/toolbar_purchase.gif \
/img/toolbar_feedback.gif \
/img/toolbar_... | Shell |
#!/bin/sh
case $# in
1) break ;;
*) echo "one argument (#simultaneous connections) required" 1>&2
exit 1 ;;
esac
time ./web03 $1 192.207.117.2 / \
/img/logo/awl_logo_blue_50x40.gif \
/img/a_world_of_learning.gif \
/img/toolbar_soptions.gif \
/img/toolbar_purchase.gif \
/img/toolbar_feedback.gif \
/img/toolbar_... | Shell |
#!/bin/sh
ClientP=/nfs/kohala/home/rstevens/doc/unp/src/tcpcliserv/tcpcli01 # client prog
ServerH="206.62.226.33" # server host
Infile=/usr/share/misc/zipcodes # big BSD/OS text file
$ClientP $ServerH < $Infile > temp.1 &
$ClientP $ServerH < $Infile > temp.2 &
$ClientP $ServerH < $Infile > temp.3 &
# $ClientP $Ser... | Shell |
#!/bin/sh
ClientP=/nfs/kohala/home/rstevens/doc/unp/src/tcpcliserv/tcpcli01 # client prog
ServerH="206.62.226.33" # server host
Infile=/usr/share/misc/zipcodes # big BSD/OS text file
$ClientP $ServerH < $Infile > temp.1 &
$ClientP $ServerH < $Infile > temp.2 &
$ClientP $ServerH < $Infile > temp.3 &
# $ClientP $Ser... | 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
tar -cvf addrinfo.tar README.getaddrinfo addrinfo.h getaddrinfo.c \
getnameinfo.c test_addrinfo.c inet_ntop.c inet_pton.c
compress addrinfo.tar
| Shell |
#!/bin/bash
echo executing './test_client_args localhost'
./test_client_args localhost
echo executing './test_client_args 127.0.0.1'
./test_client_args 127.0.0.1
echo executing './test_client_args blah'
./test_client_args blah
./server > server.log &
echo executing './test_echo_client'
./test_echo_client
echo done
| Shell |
#!/bin/bash
if [ $# -ne 2 ] || [ $1 = '-h' ]
then
echo -e "\tFirst arg : random text\n\tsecond arg : dictionary "
fi
bool=false
[ -e $1 ] || echo -e "Le fichier $1 est invalide" && bool=true
[ -e $2 ] || echo -e "Le fichier $2 est invalide" && bool=true
[ $bool ] # && exit
for WORD in `cat $1`
do
if ! grep -q $W... | Shell |
#!/bin/bash
function showBar {
percDone=$(echo 'scale=2;'$1/$2*100 | bc)
let "perc=$1*100/$2"
let "barTmp=$(tput cols)-10"
barLen=$(echo 'scale=2;'$1/$2*$barTmp | bc)
barLen=${barLen/\.*}
bar=''
fills=''
if [[ $barLen != [0-9]* ]]; then
barLen=0
fi
for (( b=0; b<$barLen; b++ ))
do
bar=$bar"="
done
b... | Shell |
##!/bin/bash
function usage(){
echo -e "\tFirst arg : Target's IP"
echo -e "\tSecond arg : Starting port"
echo -e "\tThird arg : ending port"
}
if [ $# -ne 3 ] || [ $1 = '-h' ]
then
usage
exit
fi
regex='[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}'
if [[ "$1" =~ $regex ]]
then
echo "$1"
echo $regex
#if gre... | Shell |
#!/bin/bash
#selecting the month from the provided date
m=`echo $1 | cut -d/ -f2`
#modifying the date in the form mm/dd/yyyy and then the date is transformed in seconds
t_date=$(date --date=$m/`echo $1 | cut -d/ -f1,3` +%s)
#getting the current date in seconds
c_date=`date +%s`
#verifying if the current date is greater... | Shell |
#!/bin/bash
#$1 - the file containing the passwords
#$2 - the number of characters used to generate the password
charset=`echo 1 2 3 4 8 9 0 b d f h n s A H M`
#for each row from the passwords file
for i in `cat $1`
do
#extracting the user name, the encrypted password and the salt information
user=`echo $i | cut -d... | Shell |
#!/bin/bash
#-----------------------------------------------------------------------#
# NSS Script #
# Vallée Cédric #
# 17/10/2011
#-----------------------------------------------------------------------#
#-----------------------------------------------------------------------#
# Glo... | 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/sh
if test $# = 1 ; then
ORIGINAL=$1
else
echo "Usage: make-patch.sh /path/to/libcharset" 1>&2
exit 1
fi
if test -f $ORIGINAL/lib/localcharset.c ; then : ; else
echo "Usage: make-patch.sh /path/to/libcharset" 1>&2
exit 1
fi
VERSION=`grep VERSION= $ORIGINAL/configure.ac | sed s/VERSION=//`
echo "# ... | Shell |
#!/bin/sh
if test $# = 1 ; then
ORIGINAL=$1
else
echo "Usage: update.sh /path/to/libcharset" 1>&2
exit 1
fi
if test -f $ORIGINAL/lib/localcharset.c ; then : ; else
echo "Usage: update.sh /path/to/libcharset" 1>&2
exit 1
fi
VERSION=`grep VERSION= $ORIGINAL/configure.ac | sed s/VERSION=//`
for i in localch... | Shell |
#! /bin/sh
# Output a system dependent table of character encoding aliases.
#
# Copyright (C) 2000-2004, 2006 Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU Library General Public License as published
# by the Free Software... | Shell |
#! /bin/sh
egrep '^#([^i]|if).*[^\]$' "${builddir:-.}/glibconfig.h" > glibconfig.cpp
INCLUDES="-include ${top_builddir:-..}/config.h"
INCLUDES="$INCLUDES -include glibconfig.cpp $GLIB_DEBUG_FLAGS"
cpp -P -DG_STDIO_NO_WRAP_ON_UNIX $INCLUDES "${srcdir:-.}/glib.symbols" | sed -e '/^$/d' -e 's/ PRIVATE$//' | sort > exp... | Shell |
#! /bin/sh
IN="../update-pcre"
PCRE=$1
if [ "x$PCRE" = x -o "x$PCRE" = x--help -o "x$PCRE" = x-h ]; then
cat >&2 << EOF
$0 PCRE-DIR
Updates the local PCRE copy with a different version of the library,
contained in the directory PCRE-DIR.
This will delete the content of the local pcre directory, copy the
... | Shell |
#!/bin/sh
# Build zipfiles for GLib on Win32: Separate runtime and developer ones.
# After running make install, run this.
ZIP=/tmp/glib-2.30.0.zip
DEVZIP=/tmp/glib-dev-2.30.0.zip
cd /usr/local
mkdir -p share/doc/glib-2.30.0
cp -p /home/aaithal/524-gobject/glib-2.30.0/COPYING share/doc/glib-2.30.0
mkdir -p share/d... | Shell |
#! /bin/sh
# depcomp - compile a program generating dependencies as side-effects
scriptversion=2009-04-28.21; # UTC
# Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007, 2009 Free
# Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU Ge... | Shell |
#! /bin/sh
#
# Copyright (C) 1995-1998, 2000, 2001 Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
#
#... | Shell |
#! /bin/bash
# libtool - Provide generalized library-building support services.
# Generated automatically by config.status (glib) 2.30.0
# Libtool was configured on host ubuntu:
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
#
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
... | Shell |
#! /bin/sh
egrep '^#([^i]|if).*[^\]$' "${top_builddir:-..}/glib/glibconfig.h" > glibconfig.cpp
INCLUDES="-include ${top_builddir:-..}/config.h"
INCLUDES="$INCLUDES -include glibconfig.cpp"
cpp -DINCLUDE_VARIABLES -P $INCLUDES ${srcdir:-.}/gobject.symbols | sed -e '/^$/d' -e 's/ PRIVATE$//' | sort > expected-abi
rm g... | Shell |
# libtool (GNU libtool) 2.4
# Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006,
# 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
# This is free software; see the source for copying conditions. There is NO
# warranty; not even f... | Shell |
#! /bin/sh
fail ()
{
echo "Test failed: $*"
exit 1
}
echo_v ()
{
if [ "$verbose" = "1" ]; then
echo "$*"
fi
}
error_out=/dev/null
if [ "$1" = "-v" ]; then
verbose=1
error_out=/dev/stderr
fi
echo_v "Running assert-msg-test"
OUT=$(./assert-msg-test 2>&1) && fail "assert-msg-test should abort"
echo "... | Shell |
#! /bin/sh
fail ()
{
echo "Test failed: $*"
exit 1
}
echo_v ()
{
if [ "$verbose" = "1" ]; then
echo "$*"
fi
}
error_out=/dev/null
if [ "$1" = "-v" ]; then
verbose=1
error_out=/dev/stderr
fi
for I in ${srcdir:-.}/collate/*.in; do
echo_v "Sorting $I"
name=`basename $I .in`
./unicode-collate $I ... | Shell |
#!/bin/sh
VERSION=$1
if [ ! -f glib-$VERSION.tar.gz ]; then
echo "ERROR: glib-$VERSION.tar.gz does not exist..."
exit 1
fi
echo ""
echo "Checking glib-$VERSION.tar.gz..."
tar xfz glib-$VERSION.tar.gz
for file in INSTALL NEWS README
do
echo -n "$file... "
if [ "x`grep $VERSION glib-$VERSION/$file | wc -l | aw... | Shell |
#!/bin/sh
# install - install a program, script, or datafile
scriptversion=2009-04-28.21; # UTC
# This originates from X11R5 (mit/util/scripts/install.sh), which was
# later released in X11R6 (xc/config/util/install.sh) with the
# following copyright and license.
#
# Copyright (C) 1994 X Consortium
#
# Permission is ... | Shell |
#! /bin/sh
egrep '^#([^i]|if).*[^\]$' "${top_builddir:-..}/glib/glibconfig.h" > glibconfig.cpp
INCLUDES="-include ${top_builddir:-..}/config.h"
INCLUDES="$INCLUDES -include glibconfig.cpp"
cpp -P $INCLUDES ${srcdir:-.}/gio.symbols | sed -e '/^$/d' -e 's/ PRIVATE$//' | sort > expected-abi
rm glibconfig.cpp
nm -D -g ... | Shell |
#!/bin/sh
if test $# = 1 ; then
ORIGINAL=$1
else
echo "Usage: update.sh /path/to/libasyncns" 1>&2
exit 1
fi
if test -f $ORIGINAL/libasyncns/asyncns.c ; then : ; else
echo "Usage: update.sh /path/to/libasyncns" 1>&2
exit 1
fi
for i in asyncns.c asyncns.h ; do
sed -e 's/\([^a-z]\)asyncns_/\1_g_asyncns_/g'... | Shell |
# Check for bash
[ -z "$BASH_VERSION" ] && return
####################################################################################################
__gdbus() {
local IFS=$'\n'
local cur=`_get_cword :`
local suggestions=$(gdbus complete "${COMP_LINE}" ${COMP_POINT})
COMPREPLY=($(compgen -W "$sugg... | Shell |
# Check for bash
[ -z "$BASH_VERSION" ] && return
####################################################################################################
__gsettings() {
local choices
case "${COMP_CWORD}" in
1)
choices=$'help \nlist-schemas\nlist-relocatable-schemas\nlist-keys \nlist-children \nlist-recu... | Shell |
#! /bin/sh
# Common stub for a few missing GNU programs while installing.
scriptversion=2009-04-28.21; # UTC
# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006,
# 2008, 2009 Free Software Foundation, Inc.
# Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
# This program is free softw... | Shell |
#! /bin/sh
# mkinstalldirs --- make directory hierarchy
scriptversion=2009-04-28.21; # UTC
# Original author: Noah Friedman <friedman@prep.ai.mit.edu>
# Created: 1993-05-16
# Public domain.
#
# This file is maintained in Automake, please report
# bugs to <bug-automake@gnu.org> or send patches to
# <automake-patches@g... | Shell |
#!/bin/sh
# Build zipfiles for GLib on Win32: Separate runtime and developer ones.
# After running make install, run this.
ZIP=/tmp/glib-@GLIB_VERSION@.zip
DEVZIP=/tmp/glib-dev-@GLIB_VERSION@.zip
cd @prefix@
mkdir -p share/doc/glib-@GLIB_VERSION@
cp -p @abs_srcdir@/COPYING share/doc/glib-@GLIB_VERSION@
mkdir -p sh... | Shell |
#! /bin/sh
# Wrapper for compilers which do not understand `-c -o'.
scriptversion=2009-10-06.20; # UTC
# Copyright (C) 1999, 2000, 2003, 2004, 2005, 2009 Free Software
# Foundation, Inc.
# Written by Tom Tromey <tromey@cygnus.com>.
#
# This program is free software; you can redistribute it and/or modify
# it under t... | Shell |
#!/bin/sh
# py-compile - Compile a Python program
scriptversion=2009-04-28.21; # UTC
# Copyright (C) 2000, 2001, 2003, 2004, 2005, 2008, 2009 Free Software
# Foundation, Inc.
# This program 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
#
# Copyright (C) 1995-1998, 2000, 2001 Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
#
#... | Shell |
#!/bin/sh
# Run this to generate all the initial makefiles, etc.
test -n "$srcdir" || srcdir=`dirname "$0"`
test -n "$srcdir" || srcdir=.
olddir=`pwd`
cd "$srcdir"
GTKDOCIZE=`which gtkdocize`
if test -z $GTKDOCIZE; then
echo "*** No GTK-Doc found, please install it ***"
exit 1
fi
AUTORECONF=`which a... | Shell |
export RUBYLIB=../ext/metasm:../src/metasm/
export LD_LIBRARY_PATH=/usr/local/lib
| Shell |
#!/bin/sh
WITH_USB=1
LIBUSB_WIN32_BIN_VERSION="1.2.6.0"
LIBUSB_WIN32_BIN_ARCHIVE="libusb-win32-bin-$LIBUSB_WIN32_BIN_VERSION.zip"
LIBUSB_WIN32_BIN_URL="http://freefr.dl.sourceforge.net/project/libusb-win32/libusb-win32-releases/$LIBUSB_WIN32_BIN_VERSION/$LIBUSB_WIN32_BIN_ARCHIVE"
LIBUSB_WIN32_BIN_DIR="libusb-win32-bi... | Shell |
#!/bin/bash
cat << EOF | \
pn53x-tamashell |\
awk '\
/^> #.*:/{
sub(/^> #/,"")
n=$0
for (i=0;i<8-length();i++) {
n= n " "
}
getline
getline
getline
sub(/Rx: 00/,"")
gsub(/ +/," ")... | Shell |
#!/bin/bash
ID=$(cat << EOF | \
pn53x-tamashell |\
grep -A1 "^Tx: 42 01 0b 3f 80" |\
grep -o -P "(?<=Rx: 00 .. .. ).. .. .. .."|sed 's/ //g'
# Timeouts
3205000002
# ListTarget ModeB
4a010300
# TypeB' APGEN
42010b3f80
EOF
)
cat << EOF | \
pn53x-tamashell |\
awk '\
/^> #.*:/{
... | Shell |
#! /bin/sh
# Stop script on first error.
set -e
# Retrieve libnfc version from configure.ac
LIBNFC_VERSION=$(grep AC_INIT configure.ac | sed 's/^.*(\(.*\))/\1/g' | awk -F', ' '{ print $2 }')
# Easiest part: GNU/linux, BSD and other POSIX systems.
LIBNFC_AUTOTOOLS_ARCHIVE=libnfc-$LIBNFC_VERSION.tar.gz
echo ">>> Clea... | Shell |
#!/bin/sh
export BASE_DIR="`dirname $0`"
if test -z "$NO_MAKE"; then
make -C "$BASE_DIR/../" > /dev/null || exit 1
fi
if test -z "$CUTTER"; then
CUTTER="`make -s -C "$BASE_DIR" echo-cutter`"
fi
"$CUTTER" --keep-opening-modules -s "$BASE_DIR" "$@" "$BASE_DIR"
# ^^^^^^^^^^^^^^^^^^^^^^
# FIXME: Remove ... | Shell |
# Copyright (C) 2008 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 applicable law ... | Shell |
#!/bin/sh
# 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 appl... | Shell |
#!/bin/sh
# 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 appl... | Shell |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.