code
stringlengths
1
1.96M
language
stringclasses
1 value
#!/bin/bash # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # # Package: # # Description: This shell script takes care of starting and stopping MyGrid. # # Copyright (c) 2002-2006 Universidade Federal de Campina Grande # # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ...
Shell
#!/bin/bash # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # # Package: # # Description: This shell script takes care of starting and stopping MyGrid. # # Copyright (c) 2002-2006 Universidade Federal de Campina Grande # # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ...
Shell
#!/bin/sh find_self() { SELF_DIR=`dirname $0` } shmount() { $MOUNT -t $MOUNTTYPE -o rw $SHARED $MOUNTPOINT } shumount() { $UMOUNT $SHARED } create_env() { mkdir -p $MOUNTPOINT/playpen mkdir -p $MOUNTPOINT/storage PLAYPEN="/tmp/vmexec-$$/playpen" STORAGE="/tmp/vmexec-$$/storage" export ...
Shell
#!/bin/sh find_self() { SELF_DIR=`dirname $0` } shmount() { $MOUNT -t $MOUNTTYPE -o rw $SHARED $MOUNTPOINT } shumount() { $UMOUNT $SHARED } create_env() { mkdir -p $MOUNTPOINT/playpen mkdir -p $MOUNTPOINT/storage PLAYPEN="/tmp/vmexec-$$/playpen" STORAGE="/tmp/vmexec-$$/storage" export ...
Shell
#!/bin/sh find_self() { SELF_DIR=`dirname $0` } #MAIN find_self . $SELF_DIR/QEMU_OPTS rm -rf $PID cp $DISK $TMP_DISK $QEMU_COMMAND -hda $TMP_DISK -hdb vfat:$SHARE -net none -boot c -pidfile $PID -snapshot &
Shell
#!/bin/sh find_self() { SELF_DIR=`dirname $0` } #MAIN find_self . $SELF_DIR/QEMU_OPTS kill -9 `cat $PID` kill -9 `cat $PID` kill -9 `cat $PID`
Shell
#!/bin/sh find_self() { SELF_DIR=`dirname $0` } usage() { echo "usage: $0 <termination file>" exit 1 } #MAIN find_self if [ $# -lt 1 ]; then usage fi . $SELF_DIR/QEMU_OPTS touch /tmp/$0-$$ cat $PID > /tmp/$0-$$ 2> /dev/null P=`cat /tmp/$0-$$` if [ "$PID" != "" ]; then ps -p $P > /...
Shell
#!/bin/sh find_self() { SELF_DIR=`dirname $0` } usage() { echo "usage: $0 <termination file>" exit 1 } #MAIN find_self if [ $# -lt 1 ]; then usage fi . $SELF_DIR/QEMU_OPTS touch /tmp/$0-$$ cat $PID > /tmp/$0-$$ 2> /dev/null P=`cat /tmp/$0-$$` if [ "$PID" != "" ]; then ps -p $P > /...
Shell
#!/bin/sh find_self() { SELF_DIR=`dirname $0` } #MAIN find_self . $SELF_DIR/QEMU_OPTS kill -9 `cat $PID` kill -9 `cat $PID` kill -9 `cat $PID`
Shell
#!/bin/sh find_self() { SELF_DIR=`dirname $0` } #MAIN find_self . $SELF_DIR/QEMU_OPTS rm -rf $PID cp $DISK $TMP_DISK $QEMU_COMMAND -hda $TMP_DISK -hdb vfat:$SHARE -net none -boot c -pidfile $PID -snapshot &
Shell
#!/bin/bash # load install functions . vserver.functions WORKER_SCRIPTS_PATH=./worker-scripts VSERVER_DIST=linux-image-vserver-686 # Check if sudo is installed on this machine. function detect_sudo() { if ! isSudoAvailable ; then echo echo "You have to install the sudo package to be able to install vserver." ...
Shell
function deploy() { echo "`date` [DEPLOY INFO] Copying files" pscp -t $TIMEOUT -h $NODES -l thiagoepdc og-vserver-install.tar.gz $REMOTE_TMP_DIR/og-vserver-install.tar.gz } function installVM() { numlines=`wc -l $CONFIG_FILE | awk ' { print $1 } '` linenum=0 while [ $linenum -lt $numlines ] ; do ...
Shell
function deployAndInstall() { echo "`date` [DEPLOY INFO] Copying install file" pscp -t $TIMEOUT -h $NODES -l thiagoepdc installVServer.sh /tmp/installVServer.sh echo "`date` [DEPLOY INFO] Copying util file" pscp -t $TIMEOUT -h $NODES -l thiagoepdc vserver.functions /tmp/vserver.functions echo "`date` [DEPLO...
Shell
#!/bin/bash VERSION="4.1.5" DISTRIBUTION_FILE="worker-"$VERSION".zip" VM_IMAGE_FILE="linux-vserver_20081216.tar.bz2" . vserver.functions # Check if vserver is installed on this machine. function detect_vserver() { if ! isVServerAvailable ; then echo echo "vserver is not in your path. Please type your PATH to v...
Shell
#!/bin/bash # Defining variables UA_PORT="8568" INSTALL_OPTION="-D" SWAN_INSTALL_FILE="swan-install.tar" # Check if java is installed on this machine. function check_java() { if [ -z "$(which java)" ]; then echo echo "javaVM is not in your path. Please type your PATH to java now: [/usr/local/jdk/bin...
Shell
#!/bin/bash VERSION="4.1.5" DISTRIBUTION_FILE="worker-"$VERSION".zip" VM_IMAGE_FILE="linux-vserver_20081216.tar.bz2" . vserver.functions # Check if vserver is installed on this machine. function detect_vserver() { if ! isVServerAvailable ; then echo echo "vserver is not in your path. Please type your PATH to v...
Shell
#!/bin/bash # load install functions . vserver.functions WORKER_SCRIPTS_PATH=./worker-scripts VSERVER_DIST=linux-image-vserver-686 # Check if sudo is installed on this machine. function detect_sudo() { if ! isSudoAvailable ; then echo echo "You have to install the sudo package to be able to install vserver." ...
Shell
#!/bin/bash # Defining variables UA_PORT="8568" INSTALL_OPTION="-D" SWAN_INSTALL_FILE="swan-install.tar" # Check if java is installed on this machine. function check_java() { if [ -z "$(which java)" ]; then echo echo "javaVM is not in your path. Please type your PATH to java now: [/usr/local/jdk/bin...
Shell
#!/bin/bash # load install functions . vserver.functions # Check if sudo is installed on this machine. function detect_sudo() { if ! isSudoAvailable ; then echo echo "You have to install the sudo package to be able to install vserver." echo "Please install it or contact the system administrator." ...
Shell
function deploy() { echo "`date` [DEPLOY INFO] Copying util file" pscp -t $TIMEOUT -h $NODES -l thiagoepdc vserver.functions /tmp/vserver.functions echo "`date` [DEPLOY INFO] Copying verify installation file" pscp -t $TIMEOUT -h $NODES -l thiagoepdc verifyInstall.sh /tmp/verifyInstall.sh } function us...
Shell
. vserver.functions if isVServerAvailable && isVServer_KernelAvailable ; then exit 0 else exit 1 fi
Shell
#!/bin/bash # load install functions . vserver.functions # Check if sudo is installed on this machine. function detect_sudo() { if ! isSudoAvailable ; then echo echo "You have to install the sudo package to be able to install vserver." echo "Please install it or contact the system administrator." ...
Shell
#!/bin/sh find_self() { SELF_DIR=`dirname $0` } shmount() { su -c "$MOUNT -t $MOUNTTYPE -o rw $SHARED $MOUNTPOINT" -l root } shumount() { $UMOUNT -l $SHARED } create_env() { PLAYPEN="$MOUNTPOINT/playpen" STORAGE="$MOUNTPOINT/storage" export PLAYPEN STORAGE mkdir -p $PLAYPEN mkdir -p $STO...
Shell
#!/bin/sh find_self() { SELF_DIR=`dirname $0` } shmount() { su -c "$MOUNT -t $MOUNTTYPE -o rw $SHARED $MOUNTPOINT" -l root } shumount() { $UMOUNT -l $SHARED } create_env() { PLAYPEN="$MOUNTPOINT/playpen" STORAGE="$MOUNTPOINT/storage" export PLAYPEN STORAGE mkdir -p $PLAYPEN mkdir -p $STO...
Shell
#!/bin/bash DISTRIBUTION_NAME="worker-4.1.5" DISTRIBUTION_FILE=$DISTRIBUTION_NAME".zip" # Checks if vmware is installed function check_vmware_server() { vmrun -h https\://localhost\:"$HOST_PORT_NUM"/sdk -u $WORKER_USER -p $WORKER_PASSWD list > /dev/null 2> /dev/null if [ $? -ne 255 ] && [ $? -ne 0 ]; then ec...
Shell
#!/bin/bash DISTRIBUTION_NAME="worker-4.1.5" DISTRIBUTION_FILE=$DISTRIBUTION_NAME".zip" # Checks if vmware is installed function check_vmware_server() { vmrun -h https\://localhost\:"$HOST_PORT_NUM"/sdk -u $WORKER_USER -p $WORKER_PASSWD list > /dev/null 2> /dev/null if [ $? -ne 255 ] && [ $? -ne 0 ]; then ec...
Shell
#!/bin/bash HOST=$1 USER_HOST=$2 PASSWD_HOST=$3 USER_GUEST=$4 PASSWD_GUEST=$5 VMX_FILE=$6 CMD=$7 INTERPRETER_PATH=$8 vmrun -h $HOST -u $USER_HOST -p $PASSWD_HOST -gu $USER_GUEST -gp $PASSWD_GUEST runScriptInGuest "$VMX_FILE" $INTERPRETER_PATH "$CMD"
Shell
#!/bin/bash HOST=$1 USER_HOST=$2 PASSWD_HOST=$3 USER_GUEST=$4 PASSWD_GUEST=$5 VMX_FILE=$6 FILE_PATH_GUEST=$7 FILE_PATH_HOST=$8 vmrun -h $HOST -u $USER_HOST -p $PASSWD_HOST -gu $USER_GUEST -gp $PASSWD_GUEST copyFileFromGuestToHost "$VMX_FILE" $FILE_PATH_GUEST $FILE_PATH_HOST
Shell
HOST=$1 USER_HOST=$2 PASSWD_HOST=$3 VMX_FILE=$4 vmrun -h $HOST -u $USER_HOST -p $PASSWD_HOST start "$VMX_FILE"
Shell
#!/bin/bash HOST=$1 USER_HOST=$2 PASSWD_HOST=$3 USER_GUEST=$4 PASSWD_GUEST=$5 VMX_FILE=$6 FILE_PATH_HOST=$7 FILE_PATH_GUEST=$8 vmrun -h $HOST -u $USER_HOST -p $PASSWD_HOST -gu $USER_GUEST -gp $PASSWD_GUEST copyFileFromHostToGuest "$VMX_FILE" $FILE_PATH_HOST $FILE_PATH_GUEST
Shell
#!/bin/bash HOST=$1 USER_HOST=$2 PASSWD_HOST=$3 USER_GUEST=$4 PASSWD_GUEST=$5 VMX_FILE=$6 FILE_PATH_HOST=$7 FILE_PATH_GUEST=$8 vmrun -h $HOST -u $USER_HOST -p $PASSWD_HOST -gu $USER_GUEST -gp $PASSWD_GUEST copyFileFromHostToGuest "$VMX_FILE" $FILE_PATH_HOST $FILE_PATH_GUEST
Shell
#!/bin/bash HOST=$1 USER_HOST=$2 PASSWD_HOST=$3 VMX_FILE=$4 vmrun -h $HOST -u $USER_HOST -p $PASSWD_HOST stop "$VMX_FILE"
Shell
#!/bin/bash HOST=$1 USER_HOST=$2 PASSWD_HOST=$3 USER_GUEST=$4 PASSWD_GUEST=$5 VMX_FILE=$6 FILE_PATH_GUEST=$7 FILE_PATH_HOST=$8 vmrun -h $HOST -u $USER_HOST -p $PASSWD_HOST -gu $USER_GUEST -gp $PASSWD_GUEST copyFileFromGuestToHost "$VMX_FILE" $FILE_PATH_GUEST $FILE_PATH_HOST
Shell
#!/bin/bash HOST=$1 USER_HOST=$2 PASSWD_HOST=$3 USER_GUEST=$4 PASSWD_GUEST=$5 VMX_FILE=$6 CMD=$7 INTERPRETER_PATH=$8 vmrun -h $HOST -u $USER_HOST -p $PASSWD_HOST -gu $USER_GUEST -gp $PASSWD_GUEST runScriptInGuest "$VMX_FILE" $INTERPRETER_PATH "$CMD"
Shell
HOST=$1 USER_HOST=$2 PASSWD_HOST=$3 vmrun -h $HOST -u $USER_HOST -p $PASSWD_HOST list
Shell
HOST=$1 USER_HOST=$2 PASSWD_HOST=$3 USER_GUEST=$4 PASSWD_GUEST=$5 VMX_FILE=$6 DIR_PATH=$7 vmrun -h $HOST -u $USER_HOST -p $PASSWD_HOST -gu $USER_GUEST -gp $PASSWD_GUEST createDirectoryInGuest "$VMX_FILE" $DIR_PATH
Shell
#!/bin/bash HOST=$1 USER_HOST=$2 PASSWD_HOST=$3 VMX_FILE=$4 vmrun -h $HOST -u $USER_HOST -p $PASSWD_HOST stop "$VMX_FILE"
Shell
#!/bin/bash VERSION="5.0" DISTRIBUTION_FILE="worker-"$VERSION".zip" VM_IMAGE_FILE="linux-vserver_20081216.tar.bz2" . vserver.functions function detect_vt() { } # Check if libvirt is installed on this machine. function detect_kvm() { if ! isVServerAvailable ; then echo echo "vserver is not in your path. Please...
Shell
#!/bin/bash # # @author Carla Souza #
Shell
#!/bin/bash # # @author Carla Souza #
Shell
#!/bin/bash VERSION="5.0" DISTRIBUTION_FILE="worker-"$VERSION".zip" VM_IMAGE_FILE="linux-vserver_20081216.tar.bz2" . vserver.functions function detect_vt() { } # Check if libvirt is installed on this machine. function detect_kvm() { if ! isVServerAvailable ; then echo echo "vserver is not in your path. Please...
Shell
#!/bin/bash # # @author Carla Souza #
Shell
#!/bin/bash # # @author Carla Souza #
Shell
#!/bin/bash ls -la . > $1 exit 0
Shell
#!/bin/bash ls -la . > $1 exit 0
Shell
#!/bin/bash ls -la . > $1 exit 0
Shell
#!/bin/bash ls -la . > $1 exit 0
Shell
#!/bin/bash ls -la . > $1 exit 0
Shell
#!/bin/bash ls -la . > $1 exit 0
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/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
#!/usr/bin/env bash # Copyright (c) 2013, Regents of the University of California # All rights reserved. # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # Redistributions of source code must retain the above copyright ...
Shell
#!/bin/bash # Copyright (c) 2013, Regents of the University of California # All rights reserved. # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # Redistributions of source code must retain the above copyright notice, ...
Shell
#!/bin/bash # Copyright (c) 2013, Regents of the University of California # All rights reserved. # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # Redistributions of source code must retain the above copyright notice, ...
Shell
#!/bin/bash # Copyright (c) 2013, Regents of the University of California # All rights reserved. # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # Redistributions of source code must retain the above copyright notice, ...
Shell
#!/bin/bash # Copyright (c) 2013, Regents of the University of California # All rights reserved. # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # Redistributions of source code must retain the above copyright notice, ...
Shell
#!/bin/bash if [ ! -f main.aux ] then pdflatex -shell-escape main fi bibtex main pdflatex -shell-escape main
Shell
#!/bin/bash if [ ! -f main.aux ] then pdflatex -shell-escape main fi bibtex main pdflatex -shell-escape main
Shell
#!/bin/sh version=${1:?"no version number provided"} windows_version="$(printf -- '%s' "$version" | sed -e 's/[.]/,/g'),0" set -e set -x dch -m -v "$version" -c doc/changelog sed -i -r -e "s/(AC_INIT[(]\[pdf2djvu\],) \[[0-9.]+\]/\1 [$version]/" configure.ac sed -i -r -e "s/(VERSION) [0-9,]+/\1 $windows_version/" versio...
Shell
#!/bin/sh # Copyright © 2009, 2010, 2011, 2012, 2013 Jakub Wilk # # This package 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; version 2 dated June, 1991. set -e set -x pwd="$PWD" buildroot=$(mktemp -dt p...
Shell
#!/bin/sh set -e -u set -x for file in install-sh config.sub config.guess do rm -f tools/$file cp $(ls -d /usr/share/automake*/$file | head -n1) tools/ done rm -f tools/config.rpath cp /usr/share/gettext/config.rpath tools/ ${ACLOCAL:-aclocal} -I m4 --install ${AUTOCONF:-autoconf} ${AUTOHEADER:-autoheader}
Shell
#!/bin/sh # Copyright © 2009, 2013 Jakub Wilk # # This package 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; version 2 dated June, 1991. exec sed -e ' /<!--# *\(.*\) *#-->/ { s//\1/ b } /<!--.*-->/ { ...
Shell
#!/bin/sh # Copyright © 2009, 2011 Jakub Wilk # # This package 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; version 2 dated June, 1991. : "${CXX:=g++}" "$CXX" -MM *.cc \ | sed -n -e '/\\ *$/ { H; d; }; H;...
Shell
#!/bin/sh # Copyright © 2009, 2010, 2011 Jakub Wilk # # This package 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; version 2 dated June, 1991. if ! command -v "$1" >/dev/null then printf 'Usage: %s xgett...
Shell
#!/bin/sh if [ $# -ne 1 ] then printf 'Usage: %s <poppler-source-directory>\n' "$0" >&2 exit 1 fi source_dir=$1 include_dir=$(pkg-config --cflags-only-I poppler-splash | sed -n -e '/^-I/ { s/^-I//; s/ .*//; p; q;}') if [ "x$include_dir" = "x" ] then printf 'Unable to determine destination directory\n' >&2 exit ...
Shell
#!/bin/sh case "$1" in --cflags) echo "-I$(dirname "$0")/include/freetype2/";; --libs) echo "-lfreetype";; esac # vim:ts=4 sw=4 et
Shell