code
stringlengths
1
1.96M
language
stringclasses
1 value
#!/bin/sh # # Convert EOL convention on source files from CRLF to LF. # echo "Scanning..." FILES=`find . \( -iname '*.c' -o -iname '*.cpp' -o -iname '*.h' -o -iname '*.mk' -o -iname '*.html' -o -iname '*.css' \) -print` echo "Converting..." for file in $FILES ; do echo $file tr -d \\r < $file > _temp_file mv _temp...
Shell
#!/bin/bash # # Copyright (C) 2005, The Android Open Source Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
Shell
#!/bin/sh find . -name MODULE_LICENSE_\* | sed 's/\/MODULE_LICENSE_/\ /' | sed 's/\.\///' | awk '{ print $2 " " $1; }' | sort
Shell
#!/bin/sh # When using a process wrapper, this is the top-level # command that is executed instead of the server # command. It starts a new xterm in which the user can # interact with the new process. # # Inside of the xterm is a gdb session, through which # the user can debug the new process. # Save away these vari...
Shell
#!/bin/sh if [ "x$ANDROID_JAVA_HOME" != x ] && [ -e "$ANDROID_JAVA_HOME/lib/tools.jar" ] ; then echo $ANDROID_JAVA_HOME/lib/tools.jar else JAVAC=$(which javac) if [ -z "$JAVAC" ] ; then exit 1 fi while [ -L "$JAVAC" ] ; do LSLINE=$(ls -l "$JAVAC") JAVAC=$(echo -n "$LSLINE" | ...
Shell
NM=$1 shift PREFIX=$1 shift SUFFIX=$1 shift while test "$1" != "" do $NM -g -fp $1 | while read -a line do type=${line[1]} # if [[ "$type" != "V" && "$type" != "U" ]]; then #if [[ "$type" != "W" && "$type" != "V" && "$type" != "U" ]]; then echo "$PREFIX${line[0]}$SUFFIX # ${line[1]}" #fi done...
Shell
#!/bin/sh # This is the command running inside the xterm of our # debug wrapper. It needs to take care of starting # the server command, so it can attach to the parent # process. In addition, here we run the command inside # of a gdb session to allow for debugging. # On some systems, running xterm will cause LD_LIB...
Shell
function hmm() { cat <<EOF Invoke ". build/envsetup.sh" from your shell to add the following functions to your environment: - lunch: lunch <product_name>-<build_variant> - tapas: tapas [<App1> <App2> ...] [arm|x86|mips] [eng|userdebug|user] - croot: Changes directory to the top of the tree. - m: Makes from ...
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 if [ $(uname -s) == "Darwin" ] then open=open else open=xdg-open fi $open http://localhost:$port/templat...
Shell
#!/bin/sh # # This file is part of Apparat. # # Apparat is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # Apparat is distribu...
Shell
#!/bin/sh # # This file is part of Apparat. # # Apparat is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # Apparat is distribu...
Shell
#!/bin/sh # # This file is part of Apparat. # # Apparat is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # Apparat is distribu...
Shell
#!/bin/sh # # This file is part of Apparat. # # Apparat is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # Apparat is distribu...
Shell
#!/bin/sh # # This file is part of Apparat. # # Apparat is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # Apparat is distribu...
Shell
#!/bin/sh # # This file is part of Apparat. # # Apparat is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # Apparat is distribu...
Shell
#!/bin/sh # # This file is part of Apparat. # # Apparat is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # Apparat is distribu...
Shell
#!/bin/sh # # This file is part of Apparat. # # Apparat is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # Apparat is distribu...
Shell
#!/bin/sh # # This file is part of Apparat. # # Apparat is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # Apparat is distribu...
Shell
#!/bin/bash export user=$1 export password=$2 export DB=$3 export SCR=$4 mysqladmin -u $user --password=$password -f drop $DB mysqladmin -u $user --password=$password create $DB mysql -u $user --password=$password $DB < $SCR
Shell
#!/bin/bash export user=$1 export password=$2 export DB=$3 export SCR=$4 mysqldump -u $user --password=$password -c -t --hex-blob $DB > /tmp/$DB.sql mysqladmin -u $user --password=$password -f drop $DB mysqladmin -u $user --password=$password create $DB mysql -u $user --password=$password $DB < $SCR mysql -u $user --...
Shell
#!/bin/sh # Laconica - a distributed open-source microblogging tool # Copyright (C) 2008, Controlez-Vous, Inc. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either version 3 of the ...
Shell
#!/bin/sh # Laconica - a distributed open-source microblogging tool # Copyright (C) 2008, Controlez-Vous, Inc. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either version 3 of the ...
Shell
#!/bin/sh # Laconica - a distributed open-source microblogging tool # Copyright (C) 2008, Controlez-Vous, Inc. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either version 3 of the ...
Shell
#!/bin/bash if [[ $1 = "start" ]] then echo "Stopping any running daemons..." /usr/local/bin/searchd --config /usr/local/etc/sphinx.conf --stop 2> /dev/null echo "Starting sphinx search daemon..." /usr/local/bin/searchd --config /usr/local/etc/sphinx.conf 2> /dev/null fi if [[ $1 = "stop" ]] then echo "Stopping ...
Shell
#!/bin/sh # Laconica - a distributed open-source microblogging tool # Copyright (C) 2008, Controlez-Vous, Inc. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either version 3 of the ...
Shell
#!/bin/sh # Laconica - a distributed open-source microblogging tool # Copyright (C) 2008, Controlez-Vous, Inc. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either version 3 of the ...
Shell
#!/bin/bash if [[ $1 = "start" ]] then echo "Stopping any running daemons..." /usr/local/bin/searchd --config /usr/local/etc/sphinx.conf --stop 2> /dev/null echo "Starting sphinx search daemon..." /usr/local/bin/searchd --config /usr/local/etc/sphinx.conf 2> /dev/null fi if [[ $1 = "stop" ]] then echo "Stopping ...
Shell
#!/bin/sh # Laconica - a distributed open-source microblogging tool # Copyright (C) 2008, Controlez-Vous, Inc. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either version 3 of the ...
Shell
cd `dirname $0` cd .. xgettext --from-code=UTF-8 --default-domain=laconica --output=locale/laconica.pot --language=PHP --join-existing actions/*.php classes/*.php lib/*.php scripts/*.php
Shell
#!/bin/sh # Laconica - a distributed open-source microblogging tool # Copyright (C) 2008, Controlez-Vous, Inc. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either version 3 of the ...
Shell
#!/bin/sh # Laconica - a distributed open-source microblogging tool # Copyright (C) 2008, Controlez-Vous, Inc. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either version 3 of the ...
Shell
#!/bin/bash export user=$1 export password=$2 export DB=$3 export SCR=$4 mysqladmin -u $user --password=$password -f drop $DB mysqladmin -u $user --password=$password create $DB mysql -u $user --password=$password $DB < $SCR
Shell
#!/bin/bash export user=$1 export password=$2 export DB=$3 export SCR=$4 mysqldump -u $user --password=$password -c -t --hex-blob $DB > /tmp/$DB.sql mysqladmin -u $user --password=$password -f drop $DB mysqladmin -u $user --password=$password create $DB mysql -u $user --password=$password $DB < $SCR mysql -u $user --...
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
<?php /** * @file * This script runs Drupal tests from command line. */ define('SIMPLETEST_SCRIPT_COLOR_PASS', 32); // Green. define('SIMPLETEST_SCRIPT_COLOR_FAIL', 31); // Red. define('SIMPLETEST_SCRIPT_COLOR_EXCEPTION', 33); // Brown. // Set defaults and get overrides. list($args, $count) = simpletest_script_par...
Shell
#!/bin/sh /usr/bin/lynx -source http://example.com/cron.php > /dev/null 2>&1
Shell
#!/bin/sh curl --silent --compressed http://example.com/cron.php
Shell
#!/bin/sh 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" | grep -v ".gif" | grep -v ".jpg" | grep -v ".png" | grep -v ".t...
Shell
#!/bin/sh /usr/bin/lynx -source http://example.com/cron.php > /dev/null 2>&1
Shell
#!/bin/sh 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" | grep -v ".gif" | grep -v ".jpg" | grep -v ".png" | grep -v ".t...
Shell
#!/bin/sh curl --silent --compressed http://example.com/cron.php
Shell
#!/bin/sh # Copyright (c) 2012 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/sh cd .git/hooks ln -sf ../../git_hooks/* .
Shell
#!/bin/sh RIGHT_PKG_NAME=com.example.android.trivialdrivesample # Check that there isn't a NOCOMMIT flag if find . -name CONFIDENTIAL | grep -q CONFIDENTIAL; then echo "*** The working directory is marked as CONFIDENTIAL" echo "If you're really ready to commit, remove the CONFIDENTIAL files and try again:" fi...
Shell
#!/bin/sh # # This file is part of Apparat. # # Apparat is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # Apparat is distribu...
Shell
#!/bin/sh # # This file is part of Apparat. # # Apparat is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # Apparat is distribu...
Shell
#!/bin/sh # # This file is part of Apparat. # # Apparat is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # Apparat is distribu...
Shell
#!/bin/sh # # This file is part of Apparat. # # Apparat is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # Apparat is distribu...
Shell
#!/bin/sh # # This file is part of Apparat. # # Apparat is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # Apparat is distribu...
Shell
#!/bin/sh # # This file is part of Apparat. # # Apparat is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # Apparat is distribu...
Shell
#!/bin/sh # # This file is part of Apparat. # # Apparat is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # Apparat is distribu...
Shell
#!/bin/sh # # This file is part of Apparat. # # Apparat is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # Apparat is distribu...
Shell
#!/bin/sh # # This file is part of Apparat. # # Apparat is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # Apparat is distribu...
Shell
#! /bin/sh # Attempt to guess a canonical system name. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 # Free Software Foundation, Inc. timestamp='2009-04-27' # This file is free software; you can redistribute it and/or modify it # under the...
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/bash # 打开apache.http调试信息 adb shell setprop log.tag.org.apache.http VERBOSE adb shell setprop log.tag.org.apache.http.wire VERBOSE adb shell setprop log.tag.org.apache.http.headers VERBOSE echo "Enable Debug"
Shell
#!/bin/sh SRC="$PWD" if [ ! -e "$SRC/eclipse/project.template" ]; then echo "Error: eclipse/project.template not found" echo "Script should be run from sandbox directory." exit 1 fi for n in project classpath; do sed -e "s@SRC@$SRC@g" "$SRC/eclipse/$n.template" > "$SRC/.$n" echo "Created .$n" done
Shell
#!/bin/sh ############################################################################### # Unix shell script (Linux OS) ############################################################################### # you can set PATH environment variable this way (no need, if the one was already set) # PATH=$PATH:[path to java_home...
Shell
#!/bin/sh ############################################################################### # Unix shell script (Linux OS) ############################################################################### # you can set PATH environment variable this way (no need, if the one was already set) # PATH=$PATH:[path to java_home...
Shell
#! /bin/sh # mkinstalldirs --- make directory hierarchy # Author: Noah Friedman <friedman@prep.ai.mit.edu> # Created: 1993-05-16 # Public domain errstatus=0 dirmode="" usage="\ Usage: mkinstalldirs [-h] [--help] [-m mode] dir ..." # process command line arguments while test $# -gt 0 ; do case $1 in -h | --help...
Shell
# ltmain.sh - Provide generalized library-building support services. # NOTE: Changing this file will not affect anything until you rerun configure. # # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003 # Free Software Foundation, Inc. # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 # # This program i...
Shell
#! /bin/sh # depcomp - compile a program generating dependencies as side-effects # Copyright 1999, 2000 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 ve...
Shell
#! /bin/sh # Common stub for a few missing GNU programs while installing. # Copyright (C) 1996, 1997, 1999, 2000, 2002 Free Software Foundation, Inc. # Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU ...
Shell
#! /bin/sh # mkinstalldirs --- make directory hierarchy # Author: Noah Friedman <friedman@prep.ai.mit.edu> # Created: 1993-05-16 # Public domain errstatus=0 dirmode="" usage="\ Usage: mkinstalldirs [-h] [--help] [-m mode] dir ..." # process command line arguments while test $# -gt 0 ; do case $1 in -h | --help...
Shell
#! /bin/sh # Configuration validation subroutine script. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, # 2000, 2001, 2002, 2003 Free Software Foundation, Inc. timestamp='2004-01-05' # This file is (in principle) common to ALL GNU software. # The presence of a machine in this file suggests that S...
Shell
#! /bin/sh # Attempt to guess a canonical system name. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, # 2000, 2001, 2002, 2003 Free Software Foundation, Inc. timestamp='2004-01-05' # This file is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public L...
Shell
#! /bin/sh # depcomp - compile a program generating dependencies as side-effects # Copyright 1999, 2000 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 ve...
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 # Common stub for a few missing GNU programs while installing. # Copyright (C) 1996, 1997, 1999, 2000, 2002 Free Software Foundation, Inc. # Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU ...
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 # START-COMMIT HOOK # # The start-commit hook is invoked before a Subversion txn is created # in the process of doing a commit. Subversion runs this hook # by invoking a program (script, executable, binary, etc.) named # 'start-commit' (for which this file is a template) # with the following ordered...
Shell
#!/bin/sh # POST-REVPROP-CHANGE HOOK # # The post-revprop-change hook is invoked after a revision property # has been added, modified or deleted. Subversion runs this hook by # invoking a program (script, executable, binary, etc.) named # 'post-revprop-change' (for which this file is a template), with the # f...
Shell
#!/bin/sh # POST-LOCK HOOK # # The post-lock hook is run after a path is locked. Subversion runs # this hook by invoking a program (script, executable, binary, etc.) # named 'post-lock' (for which this file is a template) with the # following ordered arguments: # # [1] REPOS-PATH (the path to this repos...
Shell
#!/bin/sh # POST-LOCK HOOK # # The post-lock hook is run after a path is locked. Subversion runs # this hook by invoking a program (script, executable, binary, etc.) # named 'post-lock' (for which this file is a template) with the # following ordered arguments: # # [1] REPOS-PATH (the path to this repos...
Shell
#!/bin/sh # PRE-LOCK HOOK # # The pre-lock hook is invoked before an exclusive lock is # created. Subversion runs this hook by invoking a program # (script, executable, binary, etc.) named 'pre-lock' (for which # this file is a template), with the following ordered arguments: # # [1] REPOS-PATH (the pat...
Shell
#!/bin/sh # POST-UNLOCK HOOK # # The post-unlock hook runs after a path is unlocked. Subversion runs # this hook by invoking a program (script, executable, binary, etc.) # named 'post-unlock' (for which this file is a template) with the # following ordered arguments: # # [1] REPOS-PATH (the path to this...
Shell
#!/bin/sh # PRE-COMMIT HOOK # # The pre-commit hook is invoked before a Subversion txn is # committed. Subversion runs this hook by invoking a program # (script, executable, binary, etc.) named 'pre-commit' (for which # this file is a template), with the following ordered arguments: # # [1] REPOS-PATH (t...
Shell
#!/bin/sh # PRE-UNLOCK HOOK # # The pre-unlock hook is invoked before an exclusive lock is # destroyed. Subversion runs this hook by invoking a program # (script, executable, binary, etc.) named 'pre-unlock' (for which # this file is a template), with the following ordered arguments: # # [1] REPOS-PATH ...
Shell
#!/bin/sh # POST-REVPROP-CHANGE HOOK # # The post-revprop-change hook is invoked after a revision property # has been added, modified or deleted. Subversion runs this hook by # invoking a program (script, executable, binary, etc.) named # 'post-revprop-change' (for which this file is a template), with the # f...
Shell
#!/bin/sh # POST-COMMIT HOOK # # The post-commit hook is invoked after a commit. Subversion runs # this hook by invoking a program (script, executable, binary, etc.) # named 'post-commit' (for which this file is a template) with the # following ordered arguments: # # [1] REPOS-PATH (the path to this rep...
Shell
#!/bin/sh # START-COMMIT HOOK # # The start-commit hook is invoked before a Subversion txn is created # in the process of doing a commit. Subversion runs this hook # by invoking a program (script, executable, binary, etc.) named # 'start-commit' (for which this file is a template) # with the following ordered...
Shell
#!/bin/sh # PRE-REVPROP-CHANGE HOOK # # The pre-revprop-change hook is invoked before a revision property # is added, modified or deleted. Subversion runs this hook by invoking # a program (script, executable, binary, etc.) named 'pre-revprop-change' # (for which this file is a template), with the following or...
Shell
#!/bin/sh # PRE-LOCK HOOK # # The pre-lock hook is invoked before an exclusive lock is # created. Subversion runs this hook by invoking a program # (script, executable, binary, etc.) named 'pre-lock' (for which # this file is a template), with the following ordered arguments: # # [1] REPOS-PATH (the pat...
Shell
#!/bin/sh # PRE-UNLOCK HOOK # # The pre-unlock hook is invoked before an exclusive lock is # destroyed. Subversion runs this hook by invoking a program # (script, executable, binary, etc.) named 'pre-unlock' (for which # this file is a template), with the following ordered arguments: # # [1] REPOS-PATH ...
Shell
#!/bin/sh # POST-COMMIT HOOK # # The post-commit hook is invoked after a commit. Subversion runs # this hook by invoking a program (script, executable, binary, etc.) # named 'post-commit' (for which this file is a template) with the # following ordered arguments: # # [1] REPOS-PATH (the path to this rep...
Shell
#!/bin/sh # PRE-COMMIT HOOK # # The pre-commit hook is invoked before a Subversion txn is # committed. Subversion runs this hook by invoking a program # (script, executable, binary, etc.) named 'pre-commit' (for which # this file is a template), with the following ordered arguments: # # [1] REPOS-PATH (t...
Shell
#!/bin/sh # PRE-REVPROP-CHANGE HOOK # # The pre-revprop-change hook is invoked before a revision property # is added, modified or deleted. Subversion runs this hook by invoking # a program (script, executable, binary, etc.) named 'pre-revprop-change' # (for which this file is a template), with the following or...
Shell
#!/bin/sh # POST-UNLOCK HOOK # # The post-unlock hook runs after a path is unlocked. Subversion runs # this hook by invoking a program (script, executable, binary, etc.) # named 'post-unlock' (for which this file is a template) with the # following ordered arguments: # # [1] REPOS-PATH (the path to this...
Shell
#!/bin/bash if [ $# != 1 ] then echo "Usage: $0 emailAddress" exit 1 fi read -s -p "Password: " mypassword echo "" curl https://www.google.com/accounts/ClientLogin -d Email=$1 -d "Passwd=$mypassword" -d accountType=GOOGLE -d source=Google-cURL-Example -d service=ac2dm
Shell
#!/bin/sh # Need to run a full clean install when changing the request factory interfaces # Doing so deletes the local debug app engine database # This script backs that up first SRC=shuffle-app-engine/target/shuffle-app-engine-2.0.0-SNAPSHOT/WEB-INF/appengine-generated DEST=../db_backup rm -r $DEST mkdir $DEST cp -...
Shell
#!/bin/sh # Create a backup tar gzip file of the cwd with the date appended # located in the parent directory. FILENAME=../`pwd|xargs basename`-`date -j "+%Y-%m-%d"`.tgz echo Will create $FILENAME tar cfz $FILENAME . echo Done.
Shell
#!/bin/bash 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/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 ## compile.sh for in /home/gueux_g/projet/code_source ## ## Made by gueux-g ## Login <gueux_g@epitech.net> ## ## Started on Tue Oct 30 16:27:29 2012 gueux-g ## Last update Mon Nov 12 15:30:50 2012 gueux-g ## cc -c src/*.c mv *.o src/ ar rc libmy.a src/*.o mv libmy.a src/ ranlib src/libmy.a rm src/*.o ...
Shell
#!/bin/sh ## compile.sh for in /home/gueux_g/projet/code_source ## ## Made by gueux-g ## Login <gueux_g@epitech.net> ## ## Started on Tue Oct 30 16:27:29 2012 gueux-g ## Last update Mon Nov 12 15:30:50 2012 gueux-g ## cc -c src/*.c mv *.o src/ ar rc libmy.a src/*.o mv libmy.a src/ ranlib src/libmy.a rm src/*.o ...
Shell
#!/bin/sh ## compile.sh for in /home/gueux_g/projet/code_source ## ## Made by gueux-g ## Login <gueux_g@epitech.net> ## ## Started on Tue Oct 30 16:27:29 2012 gueux-g ## Last update Mon Nov 12 15:30:50 2012 gueux-g ## cc -c src/*.c mv *.o src/ ar rc libmy.a src/*.o mv libmy.a src/ ranlib src/libmy.a rm src/*.o ...
Shell
#!/bin/sh ## compile.sh for in /home/gueux_g/projet/code_source ## ## Made by gueux-g ## Login <gueux_g@epitech.net> ## ## Started on Tue Oct 30 16:27:29 2012 gueux-g ## Last update Mon Nov 12 15:30:50 2012 gueux-g ## cc -c src/*.c mv *.o src/ ar rc libmy.a src/*.o mv libmy.a src/ ranlib src/libmy.a rm src/*.o ...
Shell