code
stringlengths
1
1.96M
language
stringclasses
1 value
#!/bin/sh cmake -DCMAKE_BUILD_TYPE=Debug -DTARGET_TYPE=Linux make
Shell
#!/bin/sh cmake -DCMAKE_BUILD_TYPE=Release -DTARGET_TYPE=ARM make
Shell
# # lightpack/Software/build-deb.sh # # Author: brunql # Created on: 25.12.11 # if [ -z $2 ]; then echo "usage: $0 <version> <arch>" exit 1 fi perl prepare_deb.pl $1 $2 || exit 1; chmod a+x deb/DEBIAN/control || exit 1; if [ -e "deb/usr/lib/prismatik/Prismatik" ]; then echo "Renaming 'deb/usr/lib/pris...
Shell
#!/bin/bash set -e # fail on any error set -u # treat unset variables as errors # ======[ Trap Errors ]======# set -E # let shell functions inherit ERR trap # Trap non-normal exit signals: # 1/HUP, 2/INT, 3/QUIT, 15/TERM, ERR trap err_handler 1 2 3 15 ERR function err_handler { local exit_status=${1:-$?} lo...
Shell
#!/system/bin/sh # Adapted from tether script from andTether application # Original Header: # ---------------- # @Version=6 # Copyright 2008 parrothd # Copyright 2009 zodiac (Markus Gutschke) adhoclog="$2"/var/adhoc.log mac_whitelist="$2"/conf/whitelist_mac.conf dnsmasq_pidfile="$2"/var/dnsmasq.pid dnsmasq_leasefile="...
Shell
#!/bin/bash pushd $(dirname $0) > /dev/null; script_dir=$PWD; popd > /dev/null pactester=$script_dir/../src/pactester pacfile=$script_dir/proxy.pac testdata=$script_dir/testdata library_path=$script_dir/../src export DYLD_LIBRARY_PATH=$library_path export LD_LIBRARY_PATH=$library_path lib=$library_path/libpacparser....
Shell
#!/bin/bash -ex # # $Id$ # Copyright 2009 Google Inc. All Rights Reserved. # Author: manugarg@google.com (Manu Garg) ARCH=$(uname) if [ "$ARCH" == "Linux" ]; then DL_EXT="so" fi if [ "$ARCH" == "Darwin" ]; then DL_EXT="dylib" fi function install_stuff { if [ $(id -u) == 0 ]; then set -e find . -name "li...
Shell
#!/bin/sh -e # # This script creates a Mac package, that can be directly installed by # Installer on Mac. ver=$1 [ -z $ver ] && echo "Please specify package version." && exit # $stage_dir is where we'll install our package files. stage_dir=/tmp/pacparser_$RANDOM sudo rm -rf /tmp/pacparser* mkdir -p $stage_dir if [ !...
Shell
#!/bin/bash -e USAGE=" Usage: $0 [-n] [-v version]\n -n : Create a new release. Tag the current repository revision as version\n -v version: Specify the version. If not specified, the latest hg tag is used. \n This option is required for a new release.\n " while getopts "nv:" flag do if [ "$flag"...
Shell
#!/bin/bash -x tools_dir=$(dirname $0) if [ "$tools_dir" == "." ]; then tools_dir=$PWD fi cd ${tools_dir}/../docs for file in *.{1,3} do rman -f html -r '%s.%s.html' $file > html/$file.html done cd -
Shell
# Be sure to specify files instead of * when running the script. perl -p -i -e "s/ +$//g" *
Shell
# Be sure to specify files instead of * when running the script. perl -p -i -e "s/\t/ /g" *
Shell
#!/bin/sh # Bzgrep wrapped for bzip2, # adapted from zgrep by Philippe Troin <phil@fifi.org> for Debian GNU/Linux. ## zgrep notice: ## zgrep -- a wrapper around a grep program that decompresses files as needed ## Adapted from a version sent by Charles Levert <charles@comm.polymtl.ca> PATH="/usr/bin:$PATH"; export PA...
Shell
#!/bin/sh # Bzmore wrapped for bzip2, # adapted from zmore by Philippe Troin <phil@fifi.org> for Debian GNU/Linux. PATH="/usr/bin:$PATH"; export PATH prog=`echo $0 | sed 's|.*/||'` case "$prog" in *less) more=less ;; *) more=more ;; esac if test "`echo -n a`" = "-n a"; then # looks like a SysV system: ...
Shell
#!/bin/sh # sh is buggy on RS/6000 AIX 3.2. Replace above line with #!/bin/ksh # Bzcmp/diff wrapped for bzip2, # adapted from zdiff by Philippe Troin <phil@fifi.org> for Debian GNU/Linux. # Bzcmp and bzdiff are used to invoke the cmp or the diff pro- # gram on compressed files. All options specified are passed #...
Shell
#!/bin/bash # see the README in this directory for usage etc. usage() { echo ''; echo 'Usage: xmlproc.sh -[option] <filename.xml>'; echo 'Specify a target from:'; echo '-v verify xml file conforms to dtd'; echo '-html output in html format (single file)'; echo '-ps output in postscript format'; ...
Shell
#!/bin/sh # Bzgrep wrapped for bzip2, # adapted from zgrep by Philippe Troin <phil@fifi.org> for Debian GNU/Linux. ## zgrep notice: ## zgrep -- a wrapper around a grep program that decompresses files as needed ## Adapted from a version sent by Charles Levert <charles@comm.polymtl.ca> PATH="/usr/bin:$PATH"; export PA...
Shell
#!/bin/sh # sh is buggy on RS/6000 AIX 3.2. Replace above line with #!/bin/ksh # Bzcmp/diff wrapped for bzip2, # adapted from zdiff by Philippe Troin <phil@fifi.org> for Debian GNU/Linux. # Bzcmp and bzdiff are used to invoke the cmp or the diff pro- # gram on compressed files. All options specified are passed #...
Shell
#!/bin/bash # see the README in this directory for usage etc. usage() { echo ''; echo 'Usage: xmlproc.sh -[option] <filename.xml>'; echo 'Specify a target from:'; echo '-v verify xml file conforms to dtd'; echo '-html output in html format (single file)'; echo '-ps output in postscript format'; ...
Shell
#!/bin/sh # Bzmore wrapped for bzip2, # adapted from zmore by Philippe Troin <phil@fifi.org> for Debian GNU/Linux. PATH="/usr/bin:$PATH"; export PATH prog=`echo $0 | sed 's|.*/||'` case "$prog" in *less) more=less ;; *) more=more ;; esac if test "`echo -n a`" = "-n a"; then # looks like a SysV system: ...
Shell
#! /bin/sh # Output a system dependent set of variables, describing how to set the # run time search path of shared libraries in an executable. # # Copyright 1996-2003 Free Software Foundation, Inc. # Taken from GNU libtool, 2001 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 # # This program is ...
Shell
#!/bin/bash # dictd2dic conversion script # # Usage: dictd2dic.sh mueller7 # cd /usr/share/dictd if test -e $1.dict.dz; then dictunzip $1.dict.dz; fi if test -e $1.dict; then echo "Please wait..." touch $1.idxhead echo "StarDict's dict ifo file" >dictd_www.mova.org_$1.ifo echo version=2.4.2 >>dictd_www.mova.org_$1.ifo...
Shell
#!/bin/bash gcc `pkg-config --cflags --libs glib-2.0` myspell2dic.c -o myspell2dic echo "Please wait..." recode latin1..utf-8 </usr/share/myspell/dicts/es_ES.dic >es_ES.dic.utf recode latin1..utf-8 </usr/share/myspell/dicts/es_ES.aff >es_ES.aff.utf echo |./myspell2dic es_ES.dic.utf es_ES.aff.utf 2>/dev/null recode ko...
Shell
#!/bin/bash gcc exc2i2e.c -o exc2i2e rename /usr/share/stardict/dic/i2e /usr/share/stardict/dic/temp /usr/share/stardict/dic/i2e.* 2>/dev/null rename /usr/share/stardict/dic/e2i /usr/share/stardict/dic/temp2 /usr/share/stardict/dic/e2i.* 2>/dev/null ./exc2i2e >t /usr/lib/stardict/i2e2dict t rm t rename /usr/share/sta...
Shell
#!/bin/sh # Create images for StarDict, like application icon, tray icons, Acrobat plugin icons # StarDict icons may be created from a single multilayer image. # Most layers are used only for specific icon types, but images of two books are present # on all icons. This script deletes layers, resize image and change co...
Shell
#!/bin/bash gcc `pkg-config --cflags --libs glib-2.0` ooo2dict.c -o ooo2dict echo |./ooo2dict 2>/dev/null recode latin1..utf-8 </usr/share/myspell/dicts/th_de_DE_v2.dat >th_de_DE_v2.dat.utf echo "OpenThesaurus.de_German" |./ooo2dict th_de_DE_v2.dat.utf 2>/dev/null recode latin1..utf-8 </usr/share/myspell/dicts/th_it_...
Shell
#!/bin/bash recode latin1..utf-8 </usr/share/i2e/i2e.dict >i2e.dict.utf gcc -g `pkg-config --cflags --libs glib-2.0` i2e2dict.c -o i2e2dict ./i2e2dict rm i2e.dict.utf echo "Restart StarDict now!"
Shell
#!/bin/sh echo "Boostrapping StarDict tools..." (libtoolize --version) < /dev/null > /dev/null 2>&1 || { echo; echo "You must have libtool installed to compile Stardict"; echo; exit; } (automake --version) < /dev/null > /dev/null 2>&1 || { echo; echo "You must have automake installed to compile Stardict"; ech...
Shell
#!/bin/sh echo "Bootstrapping StarDict root..." # (libtoolize --version) < /dev/null > /dev/null 2>&1 || { # echo; # echo "You must have libtool installed to compile StarDict"; # echo; # exit; # } (automake --version) < /dev/null > /dev/null 2>&1 || { echo; echo "You must have automake installed to compile Sta...
Shell
#! /bin/sh # Output a system dependent set of variables, describing how to set the # run time search path of shared libraries in an executable. # # Copyright 1996-2003 Free Software Foundation, Inc. # Taken from GNU libtool, 2001 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 # # This program is ...
Shell
#!/bin/sh # postinst script for stardict set -e case "$1" in configure) # if [ -e /etc/gconf/schemas/stardict.schemas ]; then # HOME=/root \ # GCONF_CONFIG_SOURCE=`/usr/bin/gconftool-2 --get-default-source` \ # /usr/bin/gconftool-2 \ # --makefile-install-rule /etc/gconf/schemas/stardict.schemas ...
Shell
#!/bin/sh # postrm script for stardict set -e case "$1" in remove) # if [ -x /usr/bin/scrollkeeper-update ]; then # /usr/bin/scrollkeeper-update -q # fi ;; purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) ;; *) echo "postrm called with unknown argument \`$1'"...
Shell
#!/bin/sh # Run this to generate all the initial makefiles, etc. echo "Boostrapping StarDict dictionary..." srcdir=`dirname $0` test -z "$srcdir" && srcdir=. PKG_NAME="stardict" REQUIRED_AUTOMAKE_VERSION=1.9 (test -f $srcdir/configure.ac \ && test -f $srcdir/ChangeLog \ && test -d $srcdir/src) || { echo -n ...
Shell
#!/bin/sh echo "Boostrapping common lib..." (libtoolize --version) < /dev/null > /dev/null 2>&1 || { echo; echo "You must have libtool installed to compile common lib"; echo; exit; } (automake --version) < /dev/null > /dev/null 2>&1 || { echo; echo "You must have automake installed to compile common lib"; ech...
Shell
# this script will set the proper svn properties on all the files in the tree # It pretty much requires a gnu compatible xargs (for the -r flag). Running # on Linux is probably the best option # Note: use the following line if you want to remove svn:keywords #for ext in java php xml xsl xsd wsdl properties txt htm* c...
Shell
#!/bin/bash # # This script creates the ucosii_net_zipfs Board Support Package (BSP). BSP_TYPE=hal BSP_DIR=. SOPC_DIR=../../ SOPC_FILE=C:/altera/12.1/NIOSIIScope.sopcinfo NIOS2_BSP_ARGS="" CPU_NAME= # Don't run make if create-this-app script is called with --no-make arg SKIP_MAKE= while [ $# -gt 0 ] d...
Shell
#!/bin/bash # # This script creates the ucosii_net_zipfs Board Support Package (BSP). BSP_TYPE=hal BSP_DIR=. SOPC_DIR=../../ SOPC_FILE=C:/altera/12.1/NIOSIIScope.sopcinfo NIOS2_BSP_ARGS="" CPU_NAME= # Don't run make if create-this-app script is called with --no-make arg SKIP_MAKE= while [ $# -gt 0 ] d...
Shell
#!/bin/bash # # This script creates the hello_world application in this directory. BSP_DIR=../test_bsp QUARTUS_PROJECT_DIR=../../ NIOS2_APP_GEN_ARGS="--elf-name test.elf --set OBJDUMP_INCLUDE_SOURCE 1 --src-files hello_world.c" # First, check to see if $SOPC_KIT_NIOS2 environmental variable is set. # Thi...
Shell
#!/bin/bash # # This script creates the hello_world application in this directory. BSP_DIR=../test_bsp QUARTUS_PROJECT_DIR=../../ NIOS2_APP_GEN_ARGS="--elf-name test.elf --set OBJDUMP_INCLUDE_SOURCE 1 --src-files hello_world.c" # First, check to see if $SOPC_KIT_NIOS2 environmental variable is set. # Thi...
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
#!/bin/bash # Uses wget to fetch the given url and writes a file in the format expected by # parse_tool. url="$1" file="$2" body=`wget --save-headers -O - $url` echo "${url}" > $file echo "${body}" >> $file
Shell
#!/bin/bash # Runs all parsers on each http file and writes the resulting out file. Reads # from and writes to the current directory. Use with caution. for f in `ls ./*.http`; do g=`echo $f | sed 's/http/out/'`; ./parse_tool \ --parser_defs_glob=./*.xpd \ --input_file_path=$f 1>$g 2>/dev/null; echo ...
Shell
#!/bin/sh set -ex rm -rf autom4te.cache mkdir -p m4 # Use glibtoolize if available (e.g. on Mac), libtoolize otherwise. if which glibtoolize; then LIBTOOLIZE=glibtoolize else LIBTOOLIZE=libtoolize fi aclocal --force -I m4 grep -q '^[^#]*AC_PROG_LIBTOOL' configure.ac && $LIBTOOLIZE -c -f autoconf -f -W all,no-ob...
Shell
#!/bin/bash set -e # fail early function die() { echo "Error: " $* echo echo "USage: $0 [dest]" exit 1 } shopt -s extglob # extended glob pattern function process() { SRC="$1" BASE="${SRC/.apk/}" DATE=`date +%Y%m%d` N=1 while /bin/true; do EXT=`python -c "print chr(96+$N)"` DEST="${BASE}_${DATE...
Shell
#!/bin/bash # set -uex curl 'http://localhost:8081/list-games'
Shell
#!/bin/bash # set -ue set -x curl -H "Content-Type: application/json" "http://localhost:12345/ping"
Shell
#!/bin/bash # set -ue backend="" # match dev_appserver oauth2 default user_id userID="0" while [ $# -ge 1 ] do arg="$1" shift if [ "$arg" == "-b" ] then backend=1 else userID="$arg" fi done if [ "$backend" ] then # matcher backend set -x curl --data-binary "{}" -H "Content-Type: applicatio...
Shell
#!/bin/bash # set -uex dev_appserver.py \ --host 0.0.0.0 \ --skip_sdk_update_check yes \ . $*
Shell
#!/bin/bash # set -uex curl 'http://localhost:8081/debug'
Shell
#!/bin/bash # set -uex curl 'http://localhost:8081/start-game'
Shell
#!/bin/bash # set -ue set -x curl -H "Content-Type: application/json" "http://localhost:12345/log"
Shell
#!/bin/bash # set -ue # make sure stuff is installed [ ! -d 'node_modules' ] && npm install socket.io express set -x # run the game node games-server/main.js $*
Shell
#!/bin/bash # set -ue pairing_key=$( cat shared/pairing-key.json | sed -e 's/{"key": "//' -e 's/".*//' ) set -x data='{ "userID": 823478923748932, "displayName": "fredsa", "game_name": "syXv", "player_game_key": "283473289478329" }' curl --data-binary "$data" -H "Content-Type: application/json" "http://localhost:1234...
Shell
#!/bin/sh if [ ! -e icons ]; then echo "You must run this script in the scripts directory." exit 1 fi name=$1 echo "Using iconset $name.png" if [ ! -e "icons/${name}_150.png" ]; then echo "Icon set does not exist." echo "usage: set_icons.sh quill" exit 1 fi cp "icons/${name}_150.png" ../res/drawable/icon...
Shell
#!/bin/sh cat toolbox.xml | \ sed 's/Left/XXXXX/g' | \ sed 's/Right/Left/g' | \ sed 's/XXXXX/Right/g' | \ sed 's/toolbox_undo/XXXXX/g' | \ sed 's/toolbox_redo/toolbox_undo/g' | \ sed 's/XXXXX/toolbox_redo/g' | \ sed 's/toolbox_next/XXXXX/g' | \ sed 's/toolbox_prev/toolbox_next/g' | \ ...
Shell
#! /bin/sh # depcomp - compile a program generating dependencies as side-effects scriptversion=2007-03-29.01 # Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007 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 ...
Shell
# Generated from ltmain.m4sh. # ltmain.sh (GNU libtool) 2.2.6b # Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, 2007 2008 Free Software Foundation, Inc. # This is free software; see the source for copying conditions. There is NO # ...
Shell
#!/bin/sh eval `grep '^HPDF_EXTRA_VERSION=' configure.in` case "$HPDF_EXTRA_VERSION" in *-dev) rebuildok=1 ;; *) rebuildok=0 ;; esac cvsclean=0 while test $# -gt 0; do if test "$1" = "--force"; then rebuildok=1 echo "Forcing buildconf" fi if test "$1" = "--clean"; then cvsclean=...
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 ./configure --system-name=GCC mv Makefile script/Makefile.gcc ./configure --system-name=GCC --shared mv Makefile script/Makefile.gcc_so ./configure --system-name=CYGWIN mv Makefile script/Makefile.cygwin ./configure --system-name=CYGWIN --shared mv Makefile script/Makefile.cygwin_dll ./configure --system-name...
Shell
#!/bin/sh # # make resource files for each platforms # _VERSION2=$(grep VERSION include/hpdf_consts.h | awk '{print $3}' | sed 's/"//g')".0" _VERSION1=$(grep VERSION include/hpdf_consts.h | awk '{print $3}' | sed 's/"//g;s/\./,/g')",0" _COMPILER="" which windres if [ $? -ne 0 ]; then echo "windres does not exist." ...
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 pushd /home/vbraun/Eclipse/workspace/Quill javah -jni -d jni -classpath bin/classes org.libharu.Document javah -jni -d jni -classpath bin/classes org.libharu.Page javah -jni -d jni -classpath bin/classes org.libharu.Font javah -jni -d jni -classpath bin/classes org.libharu.Image /home/vbraun/opt/android-n...
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 # 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/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/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 # # 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
#!/bin/bash # # Bourne Shell Script # # Description: # Convert Tritonus 1.81 java source code # so that it work with Java Development Kit 1.1.7 and # the Collections API for JDK 1.1 # # Author: # Peter Pilgrim # Wed Jan 05 21:15:56 GMT 2000 # # *******************************************************...
Shell
#!/bin/sh for i in /usr/share/java/tritonus_*.jar do ln -sf $i done
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...
Shell
#!/bin/sh for i in /usr/share/java/*.jar do ln -sf $i done
Shell
#! /bin/sh # This script removes all Tritonus components from rt.jar. # The removal includes the javax.sound.* classes and the # service provider configuration files. # Note that it does not remove Sun implementation components. # The location of the rt.jar file to remove from. # The value below is for newer ...
Shell
#!/bin/sh for i in /usr/lib/libtritonus*.so do ln -sf $i done
Shell
python setup.py install --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES # 'brp-compress' gzips the man pages without distutils knowing... fix this sed -i -e 's@man/man\([[:digit:]]\)/\(.\+\.[[:digit:]]\)$@man/man\1/\2.gz@g' INSTALLED_FILES
Shell
#!/bin/sh if [ -e "`which tox`" ]; then tox $@ else echo "**** install tox globally to test all Pythons at once http://codespeak.net/tox/" python setup.py egg_info python selftest.py $@ fi
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/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
#!/bin/bash # compiles app.js ../node_modules/traceur/traceur app --out=../out/app.js --source-maps --experimental
Shell
#!/bin/bash checkout=0 while [ "$1" != "" ]; do if [ $1 == "-c" ] || [ $1 == "--checkout" ]; then checkout=1 break fi shift done if [ $checkout == "1" ]; then git submodule foreach --recursive git checkout -- ./ fi git submodule foreach --recursive git pull origin -p
Shell
#!/bin/bash # Mata un proceso java que se identificado por -Dedu.upf.gd.calculator OPERATING_SYSTEM=`uname -a | awk '{print $1}'` if [ "$OPERATING_SYSTEM" == "SunOS" ]; then COMMAND="/usr/ucb/ps auxwwww" else COMMAND="ps -ef" fi RUNNING=`$COMMAND | grep -i "\-Dedu.upf.gd.calculator.${env}" | grep -v grep ...
Shell
#!/bin/bash set +u `dirname $0`/../bin/bootstrap.sh $* start
Shell
#!/bin/bash set +u TMP_JAVA_HOME=`which java` if [ -n "$TMP_JAVA_HOME" ]; then JAVA_BIN=`dirname $TMP_JAVA_HOME` fi if [ -z "$JAVA_HOME" ]; then if [ -z "$JAVA_BIN" ]; then echo "Introduce el path de la distribution de JAVA" echo -e "(i.e. /usr/local/j2sdk): \c" read PATH_TO_JAVA ...
Shell
#!/bin/bash #El único requisito para instalar la aplicación es tener instalado el JRE TMP_JAVA_HOME=`which java` if [ -n "$TMP_JAVA_HOME" ]; then JAVA_BIN=`dirname $TMP_JAVA_HOME` fi if [ -z "$JAVA_HOME" ]; then if [ -z "$JAVA_BIN" ]; then echo "Introduce el path de la distribution de JAVA" ...
Shell
#!/bin/bash is_live_the_process () { NUM_PROC=`ps -ef|grep "$1"|grep -v "grep" |wc -l` if [ $NUM_PROC == "1" ]; then echo "OK | $2 |" else echo "ERROR | $2 | $3" fi } echo "------------------------------------" echo "ESTADO | PROCESO | MENSAJE" echo "--------------------------------...
Shell
#!/bin/bash # Mata un proceso java que se identificado por -Dedu.upf.gd.calculator OPERATING_SYSTEM=`uname -a | awk '{print $1}'` if [ "$OPERATING_SYSTEM" == "SunOS" ]; then COMMAND="/usr/ucb/ps auxwwww" else COMMAND="ps -ef" fi RUNNING=`$COMMAND | grep -i "\-Dedu.upf.gd.calculator.${env}" | grep -v grep ...
Shell
#!/bin/bash #El único requisito para instalar la aplicación es tener instalado el JRE TMP_JAVA_HOME=`which java` if [ -n "$TMP_JAVA_HOME" ]; then JAVA_BIN=`dirname $TMP_JAVA_HOME` fi if [ -z "$JAVA_HOME" ]; then if [ -z "$JAVA_BIN" ]; then echo "Introduce el path de la distribution de JAVA" ...
Shell
#!/bin/bash set +u TMP_JAVA_HOME=`which java` if [ -n "$TMP_JAVA_HOME" ]; then JAVA_BIN=`dirname $TMP_JAVA_HOME` fi if [ -z "$JAVA_HOME" ]; then if [ -z "$JAVA_BIN" ]; then echo "Introduce el path de la distribution de JAVA" echo -e "(i.e. /usr/local/j2sdk): \c" read PATH_TO_JAVA ...
Shell
#!/bin/bash set +u `dirname $0`/../bin/bootstrap.sh $* start
Shell
#Desinstalar componente
Shell
#!/bin/bash is_live_the_process () { NUM_PROC=`ps -ef|grep "$1"|grep -v "grep" |wc -l` if [ $NUM_PROC == "1" ]; then echo "OK | $2 |" else echo "ERROR | $2 | $3" fi } echo "------------------------------------" echo "ESTADO | PROCESO | MENSAJE" echo "--------------------------------...
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
export PYTHONPATH=`pwd`:${PYTHONPATH}
Shell
#/bin/bash # # Run all the tests. # # The python interpreter to use is passed in on the command line. $1 runtests.py tests/test_discovery.py $1 runtests.py tests/test_errors.py $1 runtests.py tests/test_http.py $1 runtests.py tests/test_json_model.py $1 runtests.py tests/test_mocks.py $1 runtests.py tests/test_model.p...
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
#!/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
g++ -I/usr/include/boost141 -L/usr/lib/boost141 -lssl -lboost_thread-mt -lboost_system-mt -o starttls_spam starttls_spam.cpp
Shell
#!/bin/bash #El único requisito para instalar la aplicación es tener instalado el JRE TMP_JAVA_HOME=`which java` if [ -n "$TMP_JAVA_HOME" ]; then JAVA_BIN=`dirname $TMP_JAVA_HOME` fi if [ -z "$JAVA_HOME" ]; then if [ -z "$JAVA_BIN" ]; then echo "Introduce el path de la distribution de JAVA" echo -e "(i....
Shell
#!/bin/bash set +u `dirname $0`/../bin/bootstrap.sh $* start
Shell