code
stringlengths
1
1.96M
language
stringclasses
1 value
#!/bin/sh # rc.usb: search for USB devices needed for installation. # # Taken from slackware 12, here for reference # This is a function to unload the USB modules: usb_stop() { modprobe -r usb-storage keybdev mousedev usbmouse hid usbkbd \ input uhci usb-uhci usb-ohci uhci-hcd ohci-hcd ehci-hcd 2> /dev/null um...
Shell
#!/bin/bash # $Id: aasp_mon.sh 736 2010-10-12 02:38:39Z ant_code $ # bashrc should be sourced if [[ "$running_mode" =~ installer|autoinstall|hostinitram|nemo ]]; then . $scripts_dir/env else . /lib/dsktool/conf/env fi . $scripts_dir/common.fn . $scripts_dir/vault.fn date "+%s" > /var/tmp/aasp_timer while true; do ...
Shell
#!/bin/bash # $Id$ # desc: find block devices and optional file in it # param: 1:{usb,removable,all} 2:[file-to-find] # return: return dev name(s), if 2nd argument given, just print that dev name. # return tmpmnt="$(mktemp -d /tmp/tmp.XXXXXX)" block_dev_list="" arg1="$1" arg2="$2" shopt -s nullglob # param: 1:{u...
Shell
#!/bin/bash # $Id$ # bashrc should be sourced if [[ "$running_mode" =~ installer|autoinstall|hostinitram|nemo ]]; then . $scripts_dir/env else . /lib/dsktool/conf/env fi . $scripts_dir/common.fn . $scripts_dir/vault.fn date "+%s" > /var/tmp/aasp_timer while true; do if [ /var/tmp/aasp_timer ]; then t1="$(</var/t...
Shell
#!/bin/bash # $Id$ # desc: find block devices and optional file in it # param: 1:{usb,removable,all} 2:[file-to-find] # return: return dev name(s), if 2nd argument given, just print that dev name. # return tmpmnt="$(mktemp -d /tmp/tmp.XXXXXX)" block_dev_list="" arg1="$1" arg2="$2" shopt -s nullglob # param: 1:{u...
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
./xmuta example.pom \ '\$\{Version\}' '/:project/:properties/m:manifest/m:version' \ '\$\{Created-By\}' '/:project/:properties/m:manifest/m:created-by' \ '\$\{Main-Class\}' '/:project/:properties/m:manifest/m:main-class' \ < example.manifest.in
Shell
#!/bin/bash export PYTHONPATH=./src rm -f xmppcli.log exec ./xmppcli test@localhost/resource test
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-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-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-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 # 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-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 # 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 # 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-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 # 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 # 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-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-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-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 # 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 # Public domain. VERSION="0.16" _ql() { echo "$1" > ~/.quodlibet/control } _ql_arg() { if [ "$2" = "" ]; then echo "E: \`$1' needs an argument." 2>&1 exit 1 else _ql "$1 $2" fi } _ql_reply() { fn="`tempfile --prefix=ql_`"; rm -f "$fn"; mkfifo -m 0600 "$fn" _ql "$1 $fn" cat "$fn" rm -f "$fn" } ...
Shell
#!/bin/bash # Copyright 2013, 2014 Christoph Reiter # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2 as # published by the Free Software Foundation. DIR="$( cd "$( dirname "$0" )" && pwd )" source "$DIR"/_base.sh # Argument 1: h...
Shell
#!/bin/bash trap 'exit 1' SIGINT; DIR="$( cd "$( dirname "$0" )" && pwd )" export WINEPREFIX="$DIR"/_wine_prefix export WINEDEBUG=-all export WINEARCH=win32 DISPLAY=be_quiet_damnit wine wineboot -u (cd "$DIR" && wine cmd /c test.bat) exit $?
Shell
#!/bin/bash DIR="$( cd "$( dirname "$0" )" && pwd )" export WINEPREFIX="$DIR"/_wine_prefix export WINEDEBUG=-all export WINEARCH=win32 DISPLAY=be_quiet_damnit wine wineboot -u wine cmd /k env.bat
Shell
#!/bin/sh wget -c "http://sourceforge.net/projects/modplug-xmms/files/libmodplug/0.8.8.4/libmodplug-0.8.8.4.tar.gz" tar -zxvf "libmodplug-0.8.8.4.tar.gz" cd "libmodplug-0.8.8.4" ./configure --host=i586-mingw32msvc --prefix=`pwd`"/prefix" CFLAGS='-Os' CXXFLAGS='-Os' make clean make -j make install cp "prefix/bin/libmod...
Shell
#!/bin/bash # Copyright 2014 Christoph Reiter # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2 as # published by the Free Software Foundation. DIR="$( cd "$( dirname "$0" )" && pwd )" rm -f "$DIR"/_sdk rm -rf "$DIR"/_build_env rm...
Shell
#!/bin/bash # Copyright 2013-2015 Christoph Reiter # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2 as # published by the Free Software Foundation. trap 'exit 1' SIGINT; DIR="$( cd "$( dirname "$0" )" && pwd )" cd "$DIR" MISC="$...
Shell
#!/bin/bash # Copyright 2013, 2014 Christoph Reiter # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2 as # published by the Free Software Foundation. DIR="$( cd "$( dirname "$0" )" && pwd )" source "$DIR"/_base.sh download_and_ve...
Shell
#!/bin/bash trap 'exit 1' SIGINT; DIR="$( cd "$( dirname "$0" )" && pwd )" if [ ! -d "$DIR"/_sdk ]; then "$DIR"/build_sdk.sh fi "$DIR"/_sdk/test.sh
Shell
#!/bin/bash # Copyright 2009 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...
Shell
#!/bin/sh BASEDIR=`dirname $0` exec java \ -XstartOnFirstThread \ -jar $BASEDIR/xml-tool.jar
Shell
#!/bin/sh BASEDIR=`dirname $0` exec java \ -XstartOnFirstThread \ -jar $BASEDIR/xml-tool.jar
Shell
#!/bin/bash # This script will perform a clean linux build of all targets in both # debug and release configurations. It will also ensure that all the required # packages are installed. For day-to-day work on the linux port it is # faster/better to simply use 'make' either at the top level or in the subpject # you ar...
Shell
#!/bin/bash echo 'cocos2d-x template installer' COCOS2D_VER='cocos2d-2.0-rc2-x-2.0.1' BASE_TEMPLATE_DIR="/Library/Application Support/Developer/Shared/Xcode" BASE_TEMPLATE_USER_DIR="$HOME/Library/Application Support/Developer/Shared/Xcode" force= user_dir= usage(){ cat << EOF usage: $0 [options] Install / update t...
Shell
#!/bin/bash # This script should be called by create-android-project.bat # or should be runned in linux shell. It can not be runned under # cygwin. # Don't modify the script until you know what you do. # set environment paramters NDK_ROOT_LOCAL="/home/laschweinski/android/android-ndk-r5" ANDROID_SDK_ROOT_LOCAL="/home/...
Shell
#!/bin/bash echo 'cocos2d-x template installer' COCOS2D_VER='cocos2d-2.0-rc2-x-2.0.1' BASE_TEMPLATE_DIR="/Library/Application Support/Developer/Shared/Xcode" BASE_TEMPLATE_USER_DIR="$HOME/Library/Application Support/Developer/Shared/Xcode" force= user_dir= usage(){ cat << EOF usage: $0 [options] Install / update t...
Shell
#!/bin/bash # This script will perform a clean linux build of all targets in both # debug and release configurations. It will also ensure that all the required # packages are installed. For day-to-day work on the linux port it is # faster/better to simply use 'make' either at the top level or in the subpject # you ar...
Shell
#!/bin/bash # This script should be called by create-android-project.bat # or should be runned in linux shell. It can not be runned under # cygwin. # Don't modify the script until you know what you do. # set environment paramters NDK_ROOT_LOCAL="/home/laschweinski/android/android-ndk-r5" ANDROID_SDK_ROOT_LOCAL="/home/...
Shell
svn checkout -r 50 http://dsmcbe.googlecode.com/svn/trunk/ bin/Debug/DSMCBE/r50 svn checkout -r 100 http://dsmcbe.googlecode.com/svn/trunk/ bin/Debug/DSMCBE/r100 svn checkout -r 150 http://dsmcbe.googlecode.com/svn/trunk/ bin/Debug/DSMCBE/r150 svn checkout -r 200 http://dsmcbe.googlecode.com/svn/trunk/ bin/Debug/DSMCBE...
Shell
#!/bin/bash # This script creates a lvm snapshot, modify as required # # Input is always: # $1 = name of the snapshot, a random name with no spaces or non-printable chars, usually something like "duplicati-0102030011234567" # $2 = name of the device to create the snapshot for, this is the output of find-volume.sh, ...
Shell
#!/bin/bash # This script returns the device on which the volume is mounted # # Input is always: # $1 = name of the folder to locate the LVM device for # # The script MUST output a line with device="<path>", where path is the lvm id. # The script MUST output a line with mountpoint="<path>", where path is the device ...
Shell
#!/bin/bash # This script removes a lvm snapshot, modify as required # # Input is always: # $1 = name of the snapshot, a random name, same as given to create-lvm-snapshot, usually something like "duplicati-0102030011234567" # $2 = name of the device for which the snapshot was created, same as given to create-lvm-sn...
Shell
#!/bin/bash ############################################################################### # How to run scripts before or after backups ############################################################################### # Duplicati is able to run scripts before and after backups. This # functionality is available in th...
Shell
#!/bin/sh # Usage: ./duplicati-make-git-snapshot.sh [COMMIT] [DATE] # # to make a snapshot of the given tag/branch. Defaults to HEAD. # Point env var REF to a local duplicati repo to reduce clone time. if [ -z $2 ]; then DATE=`date +%Y%m%d` else DATE=$2 fi DIRNAME="duplicati-$DATE" echo REF ${REF:+--reference ...
Shell
#!/bin/bash DATE=`date +%Y%m%d` git pull bash duplicati-make-git-snapshot.sh mv duplicati-$DATE.tar.bz2 ~/rpmbuild/SOURCES/ cp *.sh ~/rpmbuild/SOURCES/ cp *.patch ~/rpmbuild/SOURCES/ if [ -e ./oem.js ]; then cp ./oem.js ~/rpmbuild/SOURCES/ fi if [ -e ./oem.css ]; then cp ./oem.css ~/rpmbuild/SOURCES/ fi rp...
Shell
#!/bin/sh # # DMG building script adopted from: # http://el-tramo.be/git/fancy-dmg/plain/Makefile # WC_DMG=wc.dmg WC_DIR=wc TEMPLATE_DMG=template.dmg SOURCE_FILES=Duplicati.app OUTPUT=Duplicati.dmg UNWANTED_FILES="AlphaVSS.Common.dll AlphaFS.dll AlphaFS.dll.config AlphaVSS.Common.dll.config appindicator-sharp.dll SQ...
Shell
#!/bin/sh # # This is a stub script that allows .apps to be relocatable on OSX but still # find the managed assembly. # # This is copied from the Mono macpack tool and modified to fit Duplicati # # The Mono Version Check is from here: # http://mjhutchinson.com/journal/2010/01/24/creating_mac_app_bundle_for_gtk_app #...
Shell
#!/bin/sh # # This is a stub script that allows .apps to be relocatable on OSX but still # find the managed assembly. # # This is copied from the Mono macpack tool and modified to fit Duplicati # # The Mono Version Check is from here: # http://mjhutchinson.com/journal/2010/01/24/creating_mac_app_bundle_for_gtk_app #...
Shell
#!/bin/bash INSTALLDIR=/usr/lib/duplicati export LD_LIBRARY_PATH="${INSTALLDIR}${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}" export MONO_PATH=$MONO_PATH:${INSTALLDIR} EXE_FILE=${INSTALLDIR}/Duplicati.CommandLine.exe APP_NAME=Duplicati.CommandLine exec -a "$APP_NAME" mono "$EXE_FILE" "$@"
Shell
#!/bin/bash INSTALLDIR=/usr/lib/duplicati export LD_LIBRARY_PATH="${INSTALLDIR}${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}" export MONO_PATH=$MONO_PATH:${INSTALLDIR} EXE_FILE=${INSTALLDIR}/Duplicati.GUI.TrayIcon.exe APP_NAME=Duplicati exec -a "$APP_NAME" mono "$EXE_FILE" "$@"
Shell
#!/bin/bash INSTALLDIR=/usr/lib/duplicati export LD_LIBRARY_PATH="${INSTALLDIR}${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}" export MONO_PATH=$MONO_PATH:${INSTALLDIR} EXE_FILE=${INSTALLDIR}/Duplicati.Server.exe APP_NAME=DuplicatiServer exec -a "$APP_NAME" mono "$EXE_FILE" "$@"
Shell
#!/bin/bash if [ -e ../oem.js ]; then echo "Installing OEM script" cp ../oem.js build/lib/duplicati/webroot/scripts/ fi if [ -e ../oem.css ]; then echo "Installing OEM stylesheet" cp ../oem.css build/lib/duplicati/webroot/stylesheets/ fi
Shell
RELEASE_TIMESTAMP=`date +%Y-%m-%d` RELEASE_INC_VERSION=`cat Updates/build_version.txt` RELEASE_INC_VERSION=$((RELEASE_INC_VERSION+1)) RELEASE_NAME="2.0_preview_${RELEASE_TIMESTAMP}" RELEASE_CHANGEINFO=`cat changelog.txt` RELEASE_VERSION="2.0.0.${RELEASE_INC_VERSION}" RELEASE_FILE_NAME="duplicati-${RELEASE_NAME}" UP...
Shell
RELEASE_TIMESTAMP=`date +%Y-%m-%d` RELEASE_INC_VERSION=`cat Updates/build_version.txt` RELEASE_INC_VERSION=$((RELEASE_INC_VERSION+1)) RELEASE_NAME=2.0_CLI_experimental_${RELEASE_TIMESTAMP} RELEASE_CHANGEINFO=`cat Updates/debug_changeinfo.txt` RELEASE_VERSION="2.0.0.${RELEASE_INC_VERSION}" UPDATE_ZIP_URLS=http://upda...
Shell
cd Installer/Makefile make $@
Shell
RELEASE_TIMESTAMP=`date +%Y-%m-%d` RELEASE_INC_VERSION=`cat Updates/debug_version.txt` RELEASE_INC_VERSION=$((RELEASE_INC_VERSION+0)) RELEASE_NAME=2.0_CLI_experimental_${RELEASE_TIMESTAMP} RELEASE_CHANGEINFO=`cat Updates/debug_changeinfo.txt` RELEASE_VERSION="2.0.0.${RELEASE_INC_VERSION}" echo "${RELEASE_NAME}" > Du...
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
ant clean; ant release; adb install -r bin/MetaTracker-release.apk
Shell
#!/bin/sh ### BEGIN INIT INFO # Provides: xmgo.sh # Required-Start: $local_fs # Required-Stop: $local_fs # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: starts xmgo daemon # Description: starts xmgo daemon with python ### END INIT INFO PROG_PATH=/root/xmgo/server do...
Shell
#!/bin/sh PROG_PATH=/root/xmgo/server INIT_PATH=/etc/init.d SCRIPT=xmgo.sh UBUNTU_SCRIPT=$SCRIPT REDHAT_SCRIPT=xmgo-redhat.sh issue=/etc/issue function install_redhat(){ if chkconfig --list $SCRIPT; then service $SCRIPT stop; chkconfig --del $SCRIPT; fi cp -f ${PROG_PATH}/$REDHAT_SCRIPT ${INI...
Shell
#!/bin/sh python websrv.py -c conf/websrv.conf -w ../webui/
Shell
#!/bin/sh # # xmgo - this script starts and stops the xmgo daemon # # chkconfig: - 85 15 # description: xmgo chess training # # processname: xmgo # config: /etc/xmgo/xmgo.conf # pidfile: /var/run/xmgo.pid # Source function library. . /etc/rc.d/init.d/functions # Source networking configurat...
Shell
#!/bin/sh # # xmgo - this script starts and stops the xmgo daemon # # chkconfig: - 85 15 # description: xmgo chess training # # processname: xmgo # config: /etc/xmgo/xmgo.conf # pidfile: /var/run/xmgo.pid # Source function library. . /etc/rc.d/init.d/functions # Source networking configurat...
Shell
#!/bin/sh python websrv.py -c conf/websrv.conf -w ../webui/
Shell
#!/bin/sh PROG_PATH=/root/xmgo/server INIT_PATH=/etc/init.d SCRIPT=xmgo.sh UBUNTU_SCRIPT=$SCRIPT REDHAT_SCRIPT=xmgo-redhat.sh issue=/etc/issue function install_redhat(){ if chkconfig --list $SCRIPT; then service $SCRIPT stop; chkconfig --del $SCRIPT; fi cp -f ${PROG_PATH}/$REDHAT_SCRIPT ${INI...
Shell
#!/bin/sh ### BEGIN INIT INFO # Provides: xmgo.sh # Required-Start: $local_fs # Required-Stop: $local_fs # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: starts xmgo daemon # Description: starts xmgo daemon with python ### END INIT INFO PROG_PATH=/root/xmgo/server do...
Shell
#!/bin/bash ####################################### # We start the server(Manager) # # and all the clients.... # # # #######################################
Shell
#!/bin/bash ####################################### # We start the server(Manager) # # and all the clients.... # # # #######################################
Shell
java -jar -Xmn100M -Xms500M -Xmx500M xomaya.jar EXPRESS
Shell
#!/bin/sh UNAME=`uname` if [ "$UNAME" = "Linux" ]; then size=$(stat -c%s "${T_OBJ}/kern-bin") elif [ "$UNAME" = "FreeBSD" ]; then size=$(stat -f %z "${T_OBJ}/kern-bin") else echo "Unsupported platform!" exit 1 fi kern_sect_size=$(echo "(( $size + 511 ) / 512)" | bc) echo $kern_sect_size > ${T_OBJ}/kern-sect_size ...
Shell
cd test mkdir pp cd pp ls /bin | cat > qq link qq pp ls cd .. link pp/pp orz unlink pp/pp pp/qq rename pp qq unlink qq unlink orz echo test2.sh end.
Shell
ls cd test pwd ls /testman > xx cat xx unlink xx echo test1.sh end.
Shell
cat script/test2.sh > test/tmp.sh ls test sh < test/tmp.sh unlink test/tmp.sh echo test3.sh end.
Shell
cd test mkdir pp cd pp ls /bin | cat > qq link qq pp ls cd .. link pp/pp orz unlink pp/pp pp/qq rename pp qq unlink qq unlink orz echo test2.sh end.
Shell
ls cd test pwd ls /testman > xx cat xx unlink xx echo test1.sh end.
Shell
cat script/test2.sh > test/tmp.sh ls test sh < test/tmp.sh unlink test/tmp.sh echo test3.sh end.
Shell
#!/bin/bash # Copyright 2012 Roman Nurik # # 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 # Copyright 2012 Roman Nurik # # 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 to ...
Shell
#!/bin/sh # Copyright 2012 Roman Nurik # # 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 to ...
Shell
#!/bin/sh #-------------------------------------- # fcitx-config # # from xdg-open detectDE() { if [ x"$KDE_FULL_SESSION" = x"true" ]; then DE=kde; elif [ x"$GNOME_DESKTOP_SESSION_ID" != x"" ]; then DE=gnome; elif `dbus-send --print-reply --dest=org.freedesktop.DBus /org/freedesktop/DBus org.freedesktop.D...
Shell
#!/bin/sh filename=desc.po indir=$1 outdir=$2 cd "$outdir" rm -f "$outdir/$filename"; touch "$outdir/$filename" cat > "$outdir/$filename" <<EOF # SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR <EMAI...
Shell
#!/bin/sh UNAME=`uname` if [ "$UNAME" = "Linux" ]; then size=$(stat -c%s "${T_OBJ}/kern-bin") elif [ "$UNAME" = "FreeBSD" ]; then size=$(stat -f %z "${T_OBJ}/kern-bin") else echo "Unsupported platform!" exit 1 fi kern_sect_size=$(echo "(( $size + 511 ) / 512)" | bc) echo $kern_sect_size > ${T_OBJ}/kern-sect_size ...
Shell
cat script/test2.sh > test/tmp.sh ls test sh < test/tmp.sh unlink test/tmp.sh echo test3.sh end.
Shell
cd test mkdir pp cd pp ls /bin | cat > qq link qq pp ls cd .. link pp/pp orz unlink pp/pp pp/qq rename pp qq unlink qq unlink orz echo test2.sh end.
Shell
ls cd test pwd ls /testman > xx cat xx unlink xx echo test1.sh end.
Shell
cat script/test2.sh > test/tmp.sh ls test sh < test/tmp.sh unlink test/tmp.sh echo test3.sh end.
Shell
cd test mkdir pp cd pp ls /bin | cat > qq link qq pp ls cd .. link pp/pp orz unlink pp/pp pp/qq rename pp qq unlink qq unlink orz echo test2.sh end.
Shell
ls cd test pwd ls /testman > xx cat xx unlink xx echo test1.sh end.
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-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-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-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