code
stringlengths
1
1.96M
language
stringclasses
1 value
#!/bin/sh # # Copyright (c) 2005 Junio C Hamano # OPTIONS_KEEPDASHDASH= OPTIONS_SPEC="\ git merge [options] <remote>... git merge [options] <msg> HEAD <remote> -- stat show a diffstat at the end of the merge n don't show a diffstat at the end of the merge summary (synony...
Shell
#!/bin/sh # Copyright (c) 2008, Nanako Shiraishi # Prime rerere database from existing merge commits me=rerere-train USAGE="$me rev-list-args" SUBDIRECTORY_OK=Yes OPTIONS_SPEC= . git-sh-setup require_work_tree cd_to_toplevel # Remember original branch branch=$(git symbolic-ref -q HEAD) || original_HEAD=$(git rev-par...
Shell
#!/bin/sh # # Performs an initial import of a directory. This is the equivalent # of doing 'git init; git add .; git commit'. It's a lot slower, # but is meant to be a simple fast-import example. if [ -z "$1" -o -z "$2" ]; then echo "Usage: git-import branch import-message" exit 1 fi USERNAME="$(git config user.nam...
Shell
#!bash # # bash/zsh completion support for core Git. # # Copyright (C) 2006,2007 Shawn O. Pearce <spearce@spearce.org> # Conceptually based on gitcompletion (http://gitweb.hawaga.org.uk/). # Distributed under the GNU General Public License, version 2.0. # # The contained completion routines provide support for completi...
Shell
#!/bin/sh # Copyright 2010 - 2012, Tim Henigan <tim.henigan@gmail.com> # # Perform a directory diff between commits in the repository using # the external diff or merge tool specified in the user's config. USAGE='[--cached] [--copy-back] [-x|--extcmd=<command>] <commit>{0,2} [-- <path>*] --cached Compare to t...
Shell
#!/bin/sh usage() { cat <<\EOF usage: git jump <mode> [<args>] Jump to interesting elements in an editor. The <mode> parameter is one of: diff: elements are diff hunks. Arguments are given to diff. merge: elements are merge conflicts. Arguments are ignored. grep: elements are grep hits. Arguments are given to gre...
Shell
#!/bin/sh # Distributed under the terms of the GNU General Public License v2 # Copyright (c) 2006 Fernando J. Pereda <ferdy@gentoo.org> # Copyright (c) 2008 Natanael Copa <natanael.copa@gmail.com> # Copyright (c) 2010 Eric S. Raymond <esr@thyrsus.com> # # This is a version 3.x of ciabot.sh; use -V to find the exact # v...
Shell
#!/bin/sh # git-mergetool--lib is a library for common merge tool functions diff_mode() { test "$TOOL_MODE" = diff } merge_mode() { test "$TOOL_MODE" = merge } translate_merge_tool_path () { echo "$1" } check_unchanged () { if test "$MERGED" -nt "$BACKUP" then status=0 else while true do echo "$MERGED...
Shell
#!/bin/sh USAGE='' SUBDIRECTORY_OK='Yes' OPTIONS_SPEC= . git-sh-setup echo "WARNING: '$0' is deprecated in favor of 'git fsck --lost-found'" >&2 if [ "$#" != "0" ] then usage fi laf="$GIT_DIR/lost-found" rm -fr "$laf" && mkdir -p "$laf/commit" "$laf/other" || exit git fsck --full --no-reflogs | while read dang...
Shell
#!/bin/sh # # Copyright (c) 2005 Junio C Hamano. # USAGE='[--interactive | -i] [-v] [--force-rebase | -f] [--no-ff] [--onto <newbase>] [<upstream>|--root] [<branch>] [--quiet | -q]' LONG_USAGE='git-rebase replaces <branch> with a new branch of the same name. When the --onto option is provided the new branch starts ou...
Shell
#!/bin/sh # # git-submodules.sh: add, init, update or list git submodules # # Copyright (c) 2007 Lars Hjemli dashless=$(basename "$0" | sed -e 's/-/ /') USAGE="[--quiet] add [-b branch] [-f|--force] [--reference <repository>] [--] <repository> [<path>] or: $dashless [--quiet] status [--cached] [--recursive] [--] [<...
Shell
#!/bin/sh # # This is included in commands that either have to be run from the toplevel # of the repository, or with GIT_DIR environment variable properly. # If the GIT_DIR does not look like the right correct git-repository, # it dies. # Having this variable in your environment would break scripts because # you would...
Shell
#!/bin/sh # # Copyright (c) 2010 Junio C Hamano. # . git-sh-setup case "$action" in continue) git am --resolved --resolvemsg="$resolvemsg" && move_to_original_branch exit ;; skip) git am --skip --resolvemsg="$resolvemsg" && move_to_original_branch exit ;; esac test -n "$rebase_root" && root_flag=--root if t...
Shell
#!/bin/sh # # Rewrite revision history # Copyright (c) Petr Baudis, 2006 # Minimal changes to "port" it to core-git (c) Johannes Schindelin, 2007 # # Lets you rewrite the revision history of the current branch, creating # a new branch. You can specify a number of filters to modify the commits, # files and trees. # The...
Shell
#!/bin/sh # # Copyright (c) 2006 Johannes E. Schindelin # SHORT DESCRIPTION # # This script makes it easy to fix up commits in the middle of a series, # and rearrange commits. # # The original idea comes from Eric W. Biederman, in # http://article.gmane.org/gmane.comp.version-control.git/22407 . git-sh-setup # The f...
Shell
#!/bin/sh OPTIONS_KEEPDASHDASH= OPTIONS_SPEC="\ git quiltimport [options] -- n,dry-run dry run author= author name and email address for patches without any patches= path to the quilt series and patches " SUBDIRECTORY_ON=Yes . git-sh-setup dry_run="" quilt_author="" while test $# != 0 do case "$1" in ...
Shell
#!/bin/sh # This is a very, _very_, simple script to convert a tab-separated # .txt file into a .pot/.po. # Its not clever but it took me 2 minutes to write :) # Michael Twomey <michael.twomey@ireland.sun.com> # 23 March 2001 # with slight GnuCash modifications by Christian Stimming <stimming@tuhh.de> # 19 Aug 2001, 23...
Shell
#!/bin/sh GVF=GIT-VERSION-FILE DEF_VER=0.16.GITGUI LF=' ' tree_search () { head=$1 tree=$2 for p in $(git rev-list --parents --max-count=1 $head 2>/dev/null) do test $tree = $(git rev-parse $p^{tree} 2>/dev/null) && vn=$(git describe --abbrev=4 $p 2>/dev/null) && case "$vn" in gitgui-[0-9]*) echo $vn; br...
Shell
#!/bin/sh while [ "$1" ] do if [ "$1" != "git-sh-setup" -a "$1" != "git-parse-remote" -a "$1" != "git-svn" ]; then old="$1" new=$(echo "$1" | sed 's/git-/git /') echo "Converting '$old' to '$new'" sed -i "s/\\<$old\\>/$new/g" $(git ls-files '*.sh') fi shift done sed -i 's/git merge-one-file/git-merge-one-fi...
Shell
#!/bin/sh T="$1" for h in \ *.txt *.html \ howto/*.txt howto/*.html \ technical/*.txt technical/*.html \ RelNotes/*.txt *.css do if test ! -f "$h" then : did not match elif test -f "$T/$h" && $DIFF -u -I'^Last updated ' "$T/$h" "$h" then :; # up to date else echo >&2 "# install $h $T/$h" rm -f "$T/...
Shell
#!/bin/sh ( c=//////////////////////////////////////////////////////////////// skel=api-index-skel.txt sed -e '/^\/\/ table of contents begin/q' "$skel" echo "$c" ls api-*.txt | while read filename do case "$filename" in api-index-skel.txt | api-index.txt) continue ;; esac title=$(sed -e 1q "$filename"...
Shell
#!/bin/sh # This requires git-manpages and/or git-htmldocs repositories repository=${1?repository} destdir=${2?destination} head=master GIT_DIR= for d in "$repository/.git" "$repository" do if GIT_DIR="$d" git rev-parse refs/heads/master >/dev/null 2>&1 then GIT_DIR="$d" export GIT_DIR break fi done if test...
Shell
#!/bin/sh cat <<\EOF GIT Howto Index =============== Here is a collection of mailing list postings made by various people describing how they use git in their workflow. EOF for txt do title=`expr "$txt" : '.*/\(.*\)\.txt$'` from=`sed -ne ' /^$/q /^From:[ ]/{ s/// s/^[ ]*// s/[ ]*$// s/^/by / p } ...
Shell
#!/bin/sh # git-ls-remote could be called from outside a git managed repository; # this would fail in that case and would issue an error message. GIT_DIR=$(git rev-parse -q --git-dir) || :; get_default_remote () { curr_branch=$(git symbolic-ref -q HEAD) curr_branch="${curr_branch#refs/heads/}" origin=$(git config ...
Shell
#!/bin/sh # wrap-for-bin.sh: Template for git executable wrapper scripts # to run test suite against sandbox, but with only bindir-installed # executables in PATH. The Makefile copies this into various # files in bin-wrappers, substituting # @@BUILD_DIR@@ and @@PROG@@. GIT_EXEC_PATH='@@BUILD_DIR@@' if test -n "$NO_S...
Shell
#!/bin/sh # Copyright 2005, Ryan Anderson <ryan@michonline.com> # # This file is licensed under the GPL v2, or a later version # at the discretion of Linus Torvalds. USAGE='<start> <url> [<end>]' LONG_USAGE='Summarizes the changes between two commits to the standard output, and includes the given URL in the generated ...
Shell
#!/bin/sh # # Copyright (c) 2005 Linus Torvalds # OPTIONS_KEEPDASHDASH= OPTIONS_SPEC="\ git repack [options] -- a pack everything in a single pack A same as -a, and turn unreachable objects loose d remove redundant packs, and run git-prune-packed f pass --no-reus...
Shell
#!/bin/sh { cat <<\EOF sayIt: $(foreach b,$(BUILT_INS),echo XXX $b YYY;) EOF cat Makefile } | make -f - sayIt 2>/dev/null | sed -n -e 's/.*XXX \(.*\) YYY.*/\1/p' | sort | { bad=0 while read builtin do base=`expr "$builtin" : 'git-\(.*\)'` x=`sed -ne 's/.*{ "'$base'", \(cmd_[^, ]*\).*/'$base' \1/p' git...
Shell
#!/bin/sh # # Copyright (c) 2010 Ævar Arnfjörð Bjarmason # # This is Git's interface to gettext.sh. See po/README for usage # instructions. # Export the TEXTDOMAIN* data that we need for Git TEXTDOMAIN=git export TEXTDOMAIN if test -z "$GIT_TEXTDOMAINDIR" then TEXTDOMAINDIR="@@LOCALEDIR@@" else TEXTDOMAINDIR="$GIT_T...
Shell
#!/bin/sh GVF=GIT-VERSION-FILE DEF_VER=v1.7.10.GIT LF=' ' # First see if there is a version file (included in release tarballs), # then try git-describe, then default. if test -f version then VN=$(cat version) || VN="$DEF_VER" elif test -d .git -o -f .git && VN=$(git describe --match "v[0-9]*" --abbrev=4 HEAD 2>/d...
Shell
#!/bin/sh # # Copyright (c) Linus Torvalds, 2005 # # This is the git per-file merge script, called with # # $1 - original file SHA1 (or empty) # $2 - file in branch1 SHA1 (or empty) # $3 - file in branch2 SHA1 (or empty) # $4 - pathname in repository # $5 - original file mode (or empty) # $6 - file in branc...
Shell
#!/bin/sh # # Copyright (c) 2006 Eric Wong # PERL='@@PERL@@' OPTIONS_KEEPDASHDASH= OPTIONS_SPEC="\ git instaweb [options] (--start | --stop | --restart) -- l,local only bind on 127.0.0.1 p,port= the port to bind to d,httpd= the command to launch b,browser= the browser to launch m,module-path= t...
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 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 rm org/xbill/DNS/spi/DNSJavaNameServiceDescriptor.java
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 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 rm org/jivesoftware/smack/debugger/LiteDebugger.java rm org/jivesoftware/smackx/debugger/EnhancedDebugger.java rm org/jivesoftware/smackx/debugger/EnhancedDebuggerWindow.java
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 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 $USER $3 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=1; $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=1; $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 $USER $3 sleep 1 done
Shell
#!/bin/bash #./deploy_app kill_prop.sh ./start_app kill_prop.sh $USER $1
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 echo $1 >> log echo $2 >> log mypid=`ps -x | grep /home/$1/$2 | head -1 | cut -f1 -d' '` if ["$mypid" == ""] then mypid=`ps -x | grep /home/$1/$2 | head -1 | cut -f2 -d' '` fi kill -9 $mypid #echo $mypid
Shell
#!/bin/bash echo $1 >> log echo $2 >> log mypid=`ps -x | grep /home/$1/$2 | head -1 | cut -f1 -d' '` if ["$mypid" == ""] then mypid=`ps -x | grep /home/$1/$2 | head -1 | cut -f2 -d' '` fi kill -9 $mypid #echo $mypid
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/bash #./deploy_app kill_prop.sh ./start_app kill_prop.sh $USER $1
Shell
#!/bin/sh THIS_SCRIPT_PATH=$(readlink -f $0) BASE_DIR=$(dirname $THIS_SCRIPT_PATH) if [ $# -gt 1 ] then ${BASE_DIR}/gmount.py $* else echo "Usage: gmount mount_point username@gmail.com [flags]" echo "example: gmount google joe@gmail.com -D" echo "Will print debug output to stderr" fi
Shell
#!/bin/sh fusermount -u $1 rm -rf ~/.google-docs-fs
Shell
#!/bin/bash # This will start checkinstall with the basic information already filled in. # If you're building your own package (e.g. RPM) then change -D to your # package type and fill in appropriate details in checkinstall checkinstall -D --install=no \ --fstrans=yes \ --pkgname=googl...
Shell
g++ main.cpp -o rawApp
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
#!/usr/bin/env bash ############################################################################## ## ## Gradle start up script for UN*X ## ############################################################################## # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to ...
Shell
#!/bin/sh # Copyright 2014 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 applica...
Shell
#!/bin/bash # Genero los circuitos del Informe si me ingresan la opción indicada if [ "$1" == "-c" ] ; then ./Circuitos/compilarCircuitos.sh fi nombre="TP2" # Compilo dos veces para que aparezca el índice pdflatex $nombre.tex pdflatex $nombre.tex # Borro los archivos auxiliares rm $nombre.toc $nombre.aux $nombre....
Shell
#!/bin/bash # Genero los circuitos del Informe si me ingresan la opción indicada if [ "$1" == "-c" ] ; then ./Circuitos/compilarCircuitos.sh fi nombre="TP2" # Compilo dos veces para que aparezca el índice pdflatex $nombre.tex pdflatex $nombre.tex # Borro los archivos auxiliares rm $nombre.toc $nombre.aux $nombre....
Shell
#!/bin/bash m4 -I /mnt/Datos/Facultad/Latex/circuit_macros Circuitos/circuito1.m4 | dpic -g > circuito1.tex m4 -I /mnt/Datos/Facultad/Latex/circuit_macros Circuitos/circuito2.m4 | dpic -g > circuito2.tex m4 -I /mnt/Datos/Facultad/Latex/circuit_macros Circuitos/circuito3.m4 | dpic -g > circuito3.tex m4 -I /mnt/Datos...
Shell
#!/bin/bash m4 -I /mnt/Datos/Facultad/Latex/circuit_macros Circuitos/circuito1.m4 | dpic -g > circuito1.tex m4 -I /mnt/Datos/Facultad/Latex/circuit_macros Circuitos/circuito2.m4 | dpic -g > circuito2.tex m4 -I /mnt/Datos/Facultad/Latex/circuit_macros Circuitos/circuito3.m4 | dpic -g > circuito3.tex m4 -I /mnt/Datos...
Shell
#!/bin/bash # Genero los circuitos del Informe si me ingresan la opción indicada if [ "$1" == "-c" ] ; then ./Circuitos/compilarCircuitos.sh fi nombre="TP3" # Compilo dos veces para que aparezca el índice pdflatex $nombre.tex pdflatex $nombre.tex # Borro los archivos auxiliares rm $nombre.toc $nombre.aux $nombre....
Shell
#!/bin/bash # Genero los circuitos del Informe si me ingresan la opción indicada if [ "$1" == "-c" ] ; then ./Circuitos/compilarCircuitos.sh fi nombre="TP3" # Compilo dos veces para que aparezca el índice pdflatex $nombre.tex pdflatex $nombre.tex # Borro los archivos auxiliares rm $nombre.toc $nombre.aux $nombre....
Shell
#!/bin/bash m4 -I /mnt/Datos/Facultad/Latex/circuit_macros Circuitos/circuito1.m4 | dpic -g > circuito1.tex m4 -I /mnt/Datos/Facultad/Latex/circuit_macros Circuitos/circuito2.m4 | dpic -g > circuito2.tex m4 -I /mnt/Datos/Facultad/Latex/circuit_macros Circuitos/circuito3.m4 | dpic -g > circuito3.tex m4 -I /mnt/Datos...
Shell
#!/bin/bash m4 -I /mnt/Datos/Facultad/Latex/circuit_macros Circuitos/circuito1.m4 | dpic -g > circuito1.tex m4 -I /mnt/Datos/Facultad/Latex/circuit_macros Circuitos/circuito2.m4 | dpic -g > circuito2.tex m4 -I /mnt/Datos/Facultad/Latex/circuit_macros Circuitos/circuito3.m4 | dpic -g > circuito3.tex m4 -I /mnt/Datos...
Shell
#!/bin/bash # Genero los circuitos del Informe si me ingresan la opción indicada if [ "$1" == "-c" ] ; then ./Circuitos/compilarCircuitos.sh fi nombre="TP1" # Compilo dos veces para que aparezca el índice pdflatex $nombre.tex pdflatex $nombre.tex # Borro los archivos auxiliares rm $nombre.toc $nombre.aux $nombre.l...
Shell
#!/bin/bash # Genero los circuitos del Informe si me ingresan la opción indicada if [ "$1" == "-c" ] ; then ./Circuitos/compilarCircuitos.sh fi nombre="TP1" # Compilo dos veces para que aparezca el índice pdflatex $nombre.tex pdflatex $nombre.tex # Borro los archivos auxiliares rm $nombre.toc $nombre.aux $nombre.l...
Shell
#!/bin/bash m4 -I /mnt/Datos/Facultad/Latex/circuit_macros Circuitos/circuito1.m4 | dpic -g > circuito1.tex m4 -I /mnt/Datos/Facultad/Latex/circuit_macros Circuitos/circuito2.m4 | dpic -g > circuito2.tex m4 -I /mnt/Datos/Facultad/Latex/circuit_macros Circuitos/circuito3.m4 | dpic -g > circuito3.tex m4 -I /mnt/Datos...
Shell
#!/bin/bash m4 -I /mnt/Datos/Facultad/Latex/circuit_macros Circuitos/circuito1.m4 | dpic -g > circuito1.tex m4 -I /mnt/Datos/Facultad/Latex/circuit_macros Circuitos/circuito2.m4 | dpic -g > circuito2.tex m4 -I /mnt/Datos/Facultad/Latex/circuit_macros Circuitos/circuito3.m4 | dpic -g > circuito3.tex m4 -I /mnt/Datos...
Shell
#!/bin/bash # Genero los circuitos del Informe si me ingresan la opción indicada if [ "$1" == "-c" ] ; then ./Circuitos/compilarCircuitos.sh fi nombre="TP4" # Compilo dos veces para que aparezca el índice pdflatex $nombre.tex pdflatex $nombre.tex # Borro los archivos auxiliares rm $nombre.toc $nombre.aux $nombre....
Shell
#!/bin/bash # Genero los circuitos del Informe si me ingresan la opción indicada if [ "$1" == "-c" ] ; then ./Circuitos/compilarCircuitos.sh fi nombre="TP4" # Compilo dos veces para que aparezca el índice pdflatex $nombre.tex pdflatex $nombre.tex # Borro los archivos auxiliares rm $nombre.toc $nombre.aux $nombre....
Shell
#!/bin/bash m4 -I /mnt/Datos/Facultad/Latex/circuit_macros Circuitos/circuito1.m4 | dpic -g > circuito1.tex m4 -I /mnt/Datos/Facultad/Latex/circuit_macros Circuitos/circuito2.m4 | dpic -g > circuito2.tex m4 -I /mnt/Datos/Facultad/Latex/circuit_macros Circuitos/circuito3.m4 | dpic -g > circuito3.tex m4 -I /mnt/Datos...
Shell
#!/bin/bash m4 -I /mnt/Datos/Facultad/Latex/circuit_macros Circuitos/circuito1.m4 | dpic -g > circuito1.tex m4 -I /mnt/Datos/Facultad/Latex/circuit_macros Circuitos/circuito2.m4 | dpic -g > circuito2.tex m4 -I /mnt/Datos/Facultad/Latex/circuit_macros Circuitos/circuito3.m4 | dpic -g > circuito3.tex m4 -I /mnt/Datos...
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 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 rm org/xbill/DNS/spi/DNSJavaNameServiceDescriptor.java
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 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 rm org/jivesoftware/smack/debugger/LiteDebugger.java rm org/jivesoftware/smackx/debugger/EnhancedDebugger.java rm org/jivesoftware/smackx/debugger/EnhancedDebuggerWindow.java
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/sh if [ "$(id -u)" != "0" ]; then echo "Script must be executed as root; e.g. sudo ./matlab" else echo "You are root! Let's continue" echo "Create /mnt/hercules" mkdir -p /mnt/hercules echo "Mount nfs share" mount -o soft,intr,rsize=8192,wsize=8192 hercules.tue.nl:/vol/hercules/tuelocal/linux /mnt/h...
Shell
#!/bin/sh if [ "$(id -u)" != "0" ]; then echo "Script must be executed as root; e.g. sudo ./matlab" else echo "You are root! Let's continue" echo "Create /mnt/hercules" mkdir -p /mnt/hercules echo "Mount nfs share" mount -o soft,intr,rsize=8192,wsize=8192 hercules.tue.nl:/vol/hercules/tuelocal/linux /mnt/h...
Shell
#!/bin/sh for f in files/*.png ; do ./test ${f} ${1}; done
Shell
#!/bin/sh for f in files/*.png ; do ./test ${f} ${1}; done
Shell
#! /bin/sh # # A very simple script to retrieve and pre-process test data, as used by # ../python/rundoctest.py # # Assumes it is being run in the 'data' directory # Assumes the presence of 'wget' and 'unzip', and that the tstools have been # built. # Retrieve a segment of Elephant's Dream in TS (11 is the smallest se...
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/sh # # Usage example: ./generate.sh int Int Integer" # Args are: primitive type, capitalized primitive type, wrapper type # # To make changes to the .java files in this package, # 1. run this script to generate the templates, move the .gen files # somewhere else # 2. modify the template with your intended cha...
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/sh # depcomp - compile a program generating dependencies as side-effects scriptversion=2004-05-31.23 # Copyright (C) 1999, 2000, 2003, 2004 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...
Shell
#!/bin/sh aclocal || { echo "1" ; exit $? ; } autoconf || { echo "2" ; exit $? ; } automake -a || { echo "3" ; exit $? ; } ./configure --disable-ext2fs --disable-ffs --disable-ufs2 --disable-minix --disable-reiserfs --disable-vstafs --disable-jfs --disable-xfs --disable-gunzip || { echo "4" ; exit $? ; } # --di...
Shell
#!/bin/sh # install - install a program, script, or datafile scriptversion=2004-12-17.09 # 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 hereby ...
Shell
#! /bin/sh # mkinstalldirs --- make directory hierarchy scriptversion=2004-02-15.20 # 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@gnu.org>...
Shell
#!/bin/sh #if [ -d ../63s-grub ]; then # rm ../63s-grub/* cp ./stage2/stage2 ./stage1/stage1 ../ set dummy `ls -l ./stage2/stage2` echo "$6" if [ "$6" -gt 31744 ] ; then echo "警告!stage2 体积超过62扇区!" fi
Shell
#! /bin/sh # Wrapper for compilers which do not understand `-c -o'. scriptversion=2004-10-12.08 # Copyright (C) 1999, 2000, 2003, 2004 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 the terms of the GNU Ge...
Shell
#! /bin/sh # depcomp - compile a program generating dependencies as side-effects scriptversion=2004-05-31.23 # Copyright (C) 1999, 2000, 2003, 2004 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...
Shell
#!/bin/sh aclocal || { echo "1" ; exit $? ; } autoconf || { echo "2" ; exit $? ; } automake -a || { echo "3" ; exit $? ; } ./configure --disable-ext2fs --disable-ffs --disable-ufs2 --disable-minix --disable-reiserfs --disable-vstafs --disable-jfs --disable-xfs --disable-gunzip || { echo "4" ; exit $? ; } # --di...
Shell
#! /bin/sh # Common stub for a few missing GNU programs while installing. scriptversion=2004-09-07.08 # Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004 # Free Software Foundation, Inc. # Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996. # This program is free software; you can redistribute it ...
Shell