code
stringlengths
1
1.96M
language
stringclasses
1 value
#!/bin/bash mbr="../src/build/masterboot.bin" bootblock="../src/build/openloader.bin" if test $# -le 1 then echo "Usage: $0 [device] [image]" echo "The openLoader will be writter to the\ device you specified. It will cause\ data loss." echo "Specify masterboot as image to\ write the masterboot to the specified ...
Shell
#!/bin/bash function makeAll() { make FLAGS="$eflags -D __HDD -O0 -D __PCI_DEBUG" -C ../src all make -C ../src install exit 0 } function makeTest() { make FLAGS="$eflags -D __HDD -D __DEBUG -O0 -D __PCI_DEBUG" -C ../src all make -C ../src test exit 0 } function makeClean() { make -C ../src clean exit 0 } fu...
Shell
#!/bin/bash function open { cd ../ for var in $@ do kate `find -name "${var}"` done } function explain { echo "You should use this script as following:" echo echo "$0 <[FILE] | [PATTERN]>" } [[ $# -eq 0 ]] && explain [[ $# -eq 1 ]] && open $@
Shell
#!/bin/bash s=0 function options { case "$1" in h|-help) echo "Usage:"; echo " compile.sh <options> [make and c header defines...]"; echo "Options:"; echo " -h --help Print this help message"; echo " -s --silent Silent mode (script will print makefile returns only)"; exit 0 ...
Shell
#!/bin/sh ############################################################################# # Installation # # Small installation script # ############################################################################# # Server data echo "Permissions for ./data/" chmod a+w ./data/cache/ && echo " ./cache/" chmod a+w ./...
Shell
#! /bin/sh NATURALDOCS="NaturalDocs" NATURALDOCS_LOCATION=`which $NATURALDOCS` if [ "$NATURALDOCS_LOCATION" = "" ]; then echo "executable '$NATURALDOCS' not found" echo "Please download from http://www.naturaldocs.org/" exit 1 fi # Find the directory SCRIPT_LOCATION=$(dirname $(readlink -f $0)) ND_PROJECT="$SCRI...
Shell
swig -DSKIP_INCLUDES -python -small highgui.i gcc -I/usr/include/python2.3/ -I../../cxcore/include -D CV_NO_BACKWARD_COMPATIBILITY -c highgui_wrap.c
Shell
javadoc -classpath lib/abdera-core-0.4.0-incubating.jar:lib/activemq-all-5.1.0.jar:lib/fcrepo-client-messaging-3.4.jar:lib/jaxen-1.1.1.jar:lib/logback-core-0.9.18.jar:lib/abdera-i18n-0.4.0-incubating.jar:lib/axiom-api-1.2.8.jar:lib/fcrepo-common-3.4.jar:lib/jsr173-1.0.jar:lib/sjsxp-1.0.1.jar:lib/abdera-parser-0.4.0-inc...
Shell
#!/bin/bash # This script stops a persistent subscription previously made by a fedora-update-handler service # The service is a JMS client which listens to "fedora.apim.update" messages from Fedora. # When an update event occurs, the fedora-update-handler executes an external program # and passes the event message (an...
Shell
#!/bin/bash # This script starts a fedora-update-handler service # The service is a JMS client which listens to "fedora.apim.update" messages from Fedora. # When an update event occurs, the fedora-update-handler executes an external program # and passes the event message (an Atom XML document) to the program's standar...
Shell
#!/bin/sh # $1=fedora-username # $2=fedora-password # $3=vamas URI rm /tmp/vamas-xml.xml rm /tmp/vamas.vms curl -u $1:$2 $3 -o /tmp/vamas.vms > /dev/null java -jar xproc/vamas-parser.jar /tmp/vamas.vms > /tmp/vamas-xml.xml
Shell
#!/bin/sh # $1=fedora-username # $2=fedora-password # $3=vamas URI rm /tmp/vamas-xml.xml rm /tmp/vamas.vms curl -u $1:$2 $3 -o /tmp/vamas.vms > /dev/null java -jar xproc/vamas-parser.jar /tmp/vamas.vms > /tmp/vamas-xml.xml
Shell
#!/bin/sh screen -dmS ingest screen -dmS metadata screen -dmS vamas sleep 2s; screen -S ingest -p 0 -X stuff $'/home/fedora-user/pipelines/start.sh /home/fedora-user/pipelines/update-handler-configs/ingest-handler.xml\n' screen -S metadata -p 0 -X stuff $'/home/fedora-user/pipelines/start.sh /home/fedora-user/p...
Shell
#!/bin/bash # This script starts a fedora-update-handler service # The service is a JMS client which listens to "fedora.apim.update" messages from Fedora. # When an update event occurs, the fedora-update-handler executes an external program # and passes the event message (an Atom XML document) to the program's standar...
Shell
#!/bin/bash # This script stops a persistent subscription previously made by a fedora-update-handler service # The service is a JMS client which listens to "fedora.apim.update" messages from Fedora. # When an update event occurs, the fedora-update-handler executes an external program # and passes the event message (an...
Shell
#!/bin/sh screen -dmS ingest screen -dmS metadata screen -dmS vamas sleep 2s; screen -S ingest -p 0 -X stuff $'/home/fedora-user/pipelines/start.sh /home/fedora-user/pipelines/update-handler-configs/ingest-handler.xml\n' screen -S metadata -p 0 -X stuff $'/home/fedora-user/pipelines/start.sh /home/fedora-user/p...
Shell
#!/bin/bash # Copyright 2012 The Go Authors. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file. # Run this script in your app root directory, the one containing # the app.yaml file. Then point appcfg.py or dev_appserver.py # at './tmp' instead o...
Shell
#!/bin/sh # # Detects OS we're compiling on and generates build_config.mk, # which in turn gets read while processing Makefile. # # build_config.mk will set the following variables: # PLATFORM_LDFLAGS Linker flags # PLATFORM_SHARED_EXT Extension for shared libraries # PLATFORM_SHARED_LDFLAGS ...
Shell
#!/bin/sh if [ "$1" = "win7" ] ; then DSTVERSION="7" elif [ "$1" = "winxp" ] ; then DSTVERSION="XP" else echo "Usage: MakeRelease.sh [win7|winxp] [chk]" exit fi if [ "$2" = "chk" ] ; then FRECHK="chk" else FRECHK="fre" fi DSTDIR="Release $DSTVERSION" ARCHIVE="ghost-win$DSTVERSION.zip" if [ "$DSTVERSION" = "7" ...
Shell
#!/bin/sh ######################################################################################################### # # # Install Ruby, Subversion, Apache2, ImageMagick, Rails, Django and numerous useful development ...
Shell
#!/bin/sh ######################################################################################################### # # # Install Ruby, Subversion, Apache2, ImageMagick, Rails, Django and numerous useful development ...
Shell
#!/bin/sh # # You will need watchdog installed for this to work. watchmedo shell-command \ --patterns="*.idea;*.py;*.c" \ --recursive \ --command='tox -e py27' \ --wait .
Shell
#!/bin/sh pypy run_speed_tests.py python2.7 run_speed_tests.py python3 run_speed_tests.py #python2.6 run_speed_tests.py #python2.5 run_speed_tests.py
Shell
#!/bin/sh # # Copyright 2012 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 applicab...
Shell
#!/bin/sh # # Pre removal scriptix # set -e # stop the server if [ -x "/etc/init.d/jmemcached" ]; then if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then invoke-rc.d jmemcached stop || exit $? else /etc/init.d/jmemcached stop || exit $? fi fi exit 0
Shell
#!/bin/sh # # Post installation script # set -e # summary of how this script can be called: # * <postinst> `configure' <most-recently-configured-version> # * <old-postinst> `abort-upgrade' <new version> # * <conflictor's-postinst> `abort-remove' `in-favour' <package> # <new-version> # ...
Shell
#!/bin/sh -e # # Written by Philipp Meier <meier@meisterbohne.de> for Jetty # Modified for JMemcached by Ryan Daum <ryan@thimbleware.com> # ### BEGIN INIT INFO # Provides: jetty # Required-Start: $syslog $network # Required-Stop: $syslog $network # Should-Start: $local_fs # Should-Stop: $loca...
Shell
#!/bin/bash # Copyright 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 to ...
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 #-60 - -10 t=60 while [ $t -ge 10 ] do convert -size 25x25 xc:transparent \ -font Liberation-Sans-Bold \ -gravity center -pointsize 12 \ -fill black -stroke none -annotate 0 "-$t°" \ res/drawable/black_temp_minus_$t.png #echo $t t=$(expr $t - 1) done #-9 - -1 t=9 ...
Shell
#!/bin/sh #-60 - -10 t=60 while [ $t -ge 10 ] do convert -size 25x25 xc:transparent \ -font Liberation-Sans-Bold \ -gravity center -pointsize 12 \ -fill black -stroke none -annotate 0 "-$t°" \ res/drawable/black_temp_minus_$t.png #echo $t t=$(expr $t - 1) done #-9 - -1 t=9 ...
Shell
#!/bin/sh #-60 - -10 t=60 while [ $t -ge 10 ] do convert -size 25x25 xc:transparent \ -font Liberation-Sans-Bold \ -gravity center -pointsize 12 \ -fill white -stroke none -annotate 0 "-$t°" \ res/drawable/white_temp_minus_$t.png #echo $t t=$(expr $t - 1) done #-9 - -1 t=9 ...
Shell
#!/bin/sh #-60 - -10 t=60 while [ $t -ge 10 ] do convert -size 25x25 xc:transparent \ -font Liberation-Sans-Bold \ -gravity center -pointsize 12 \ -fill white -stroke none -annotate 0 "-$t°" \ res/drawable/white_temp_minus_$t.png #echo $t t=$(expr $t - 1) done #-9 - -1 t=9 ...
Shell
#!/bin/sh #-60 - -10 t=60 while [ $t -ge 10 ] do convert -size 25x25 xc:transparent \ -font Liberation-Sans-Bold \ -gravity center -pointsize 12 \ -fill white -stroke none -annotate 0 "-$t°" \ res/drawable/white_temp_minus_$t.png convert -size 25x25 xc:transparent \ -fon...
Shell
#! /bin/sh python ./config/configure.py echo "\nGenerate makeFile successfully!\n\n"
Shell
#!/bin/sh # # Android Weather Notification. # Copyright (C) 2012 gelin # # 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 version 2 of the License, or # (at your option) an...
Shell
#!/bin/sh # # Android Weather Notification. # Copyright (C) 2010 gelin, 2011 mihovilic # # 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 version 2 of the License, or # (at...
Shell
#!/bin/sh # # Android Weather Notification. # Copyright (C) 2010 gelin, 2011 mihovilic # # 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 version 2 of the License, or # (at...
Shell
#!/bin/sh # # Android Weather Notification. # Copyright (C) 2010 gelin, 2011 mihovilic # # 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 version 2 of the License, or # (at...
Shell
#!/bin/sh # # Android Weather Notification. # Copyright (C) 2010 gelin, 2011 mihovilic # # 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 version 2 of the License, or # (at...
Shell
#!/bin/sh # # Android Weather Notification. # Copyright (C) 2010 Denis Nelubin aka Gelin # # 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 version 2 of the License, or # ...
Shell
#!/bin/sh TARGETS=$* ant $TARGETS build_skin() { BASE_DIR=$(pwd) cd skins/$1 ant $TARGETS cd $BASE_DIR } build_skin black-text build_skin white-text build_skin black-text-plus build_skin white-text-plus
Shell
#!/bin/bash # # Starts a basic web server on the port specified. # # ./serve.sh 3000 -> http://localhost:3000 # # Copyright 2012 Eric Bidelman <ebidel@gmail.com> port=$1 if [ $# -ne 1 ] then port=8000 fi open http://localhost:$port/template.html && python -m SimpleHTTPServer $port;
Shell
#!/bin/bash set -e ./runant war third_party/appengine-sdk/sdk/bin/appcfg.sh update build/war # Most people won't need the backend. If the backend doesn't exist, # import tasks will be sent to the frontend (even though the "Host:" # header points to the backend). At least that's what I've seen. #third_party/appengin...
Shell
#!/bin/bash # Copyright (C) 2011 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 to...
Shell
#!/bin/bash # Sample shell script for invoking ant. # Copy to a new file and fill in the values below. # To keep the secret secret, don't share your runant script. ant -Dapp-id='your-app-id' \ -Dapp-version='1' \ -Doauth-client-id='your-oauth-client-id' \ -Doauth-client-secret='your-oauth-client-secret' \...
Shell
#! /bin/bash # Binary of the Texturepacker: TEXTUREPACKER_BINARY=/usr/local/bin/TexturePacker # Shared Spritesheet-Output-Definitions: SPRITESHEET_OUTPUT_DIRECTORY="../assets/gfx/spritesheets/" SPRITESHEET_OUTPUT_JAVAIDS_PACKAGE="org.anddev.andengine.examples.spritesheets" SPRITESHEET_OUTPUT_JAVAIDS_DIRECTORY="../src...
Shell
#!/usr/bin/env bash # ============================================================================== # What: # - simple script to use the Saxon Java library as a command line tool # for XSLT processing # # Usage: # # $ saxon.sh <input.xml> <output.xml> <stylesheet.xsl> # # <input.xml> = path to the XML to tr...
Shell
#!/usr/bin/env bash # ============================================================================== # What: # - simple script to use the Saxon Java library as a command line tool # for XSLT processing # # Usage: # # $ saxon.sh <input.xml> <output.xml> <stylesheet.xsl> # # <input.xml> = path to the XML to tr...
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
#!/usr/bin/env bash usage() { echo "Usage: ${0##*/} {start|stop|restart} " exit 1 } [ $# -gt 0 ] || usage # config by SA setup PROJECT_NAME=dbdump PROJECT_HOME=/home/admin/$PROJECT_NAME JETTY_HOME=/home/admin/$PROJECT_NAME/.default STDOUT_LOG=$PROJECT_HOME/logs/jetty_stdout.log OPT_JETTY=/...
Shell
#!/usr/bin/env bash usage() { echo "Usage: ${0##*/} {start|stop|restart} " exit 1 } [ $# -gt 0 ] || usage # config by SA setup PROJECT_NAME=dbdump PROJECT_HOME=/home/admin/$PROJECT_NAME JETTY_HOME=/home/admin/$PROJECT_NAME/.default STDOUT_LOG=$PROJECT_HOME/logs/jetty_stdout.log OPT_JETTY=/...
Shell
#!/bin/sh if [[ -z $ADB ]]; then ADB=adb; fi ./kill_process.sh $ADB shell rm -r /data/data/com.google.android.apps.iosched/*
Shell
#!/bin/sh adb shell cat /data/data/com.google.android.apps.iosched/shared_prefs/com.google.android.apps.iosched_preferences.xml | xmllint --format -
Shell
#!/bin/sh if [[ -z $ADB ]]; then ADB=adb; fi $ADB shell am start \ -a android.intent.action.MAIN \ -c android.intent.category.LAUNCHER \ -n com.google.android.apps.iosched/.ui.HomeActivity
Shell
#!/bin/sh adb shell pm clear com.google.android.apps.iosched
Shell
#!/bin/sh if [[ -z $ADB ]]; then ADB=adb; fi $ADB shell am force-stop com.google.android.apps.iosched
Shell
#!/bin/sh if [[ -z $ADB ]]; then ADB=adb; fi MAC_UNAME="Darwin" if [[ "`uname`" == ${MAC_UNAME} ]]; then DATE_FORMAT="%Y-%m-%dT%H:%M:%S" else DATE_FORMAT="%Y-%m-%d %H:%M:%S" fi if [ -z "$1" ]; then NOW_DATE=$(date "+${DATE_FORMAT}") echo Please provide a mock time in the format \"${NOW_DATE}\" or \"d\" to del...
Shell
#!/bin/sh # Remember VERBOSE only works on debug builds of the app adb shell setprop log.tag.iosched_SyncHelper VERBOSE adb shell setprop log.tag.iosched_SessionsHandler VERBOSE adb shell setprop log.tag.iosched_ImageCache VERBOSE adb shell setprop log.tag.iosched_ImageWorker VERBOSE adb shell setprop log.tag.iosched_I...
Shell
#!/bin/sh if [[ -z $ADB ]]; then ADB=adb; fi $ADB shell "echo '$*' | sqlite3 -header -column /data/data/com.google.android.apps.iosched/databases/schedule.db"
Shell
#!/bin/sh # Sessions list #adb shell am start -a android.intent.action.VIEW -d content://com.google.android.apps.iosched/tracks/android/sessions # Vendors list #adb shell am start -a android.intent.action.VIEW -d content://com.google.android.apps.iosched/tracks/android/vendors # Session detail #adb shell am start -a...
Shell
#!/bin/sh # Run this to generate all the initial makefiles, etc. DIE=0 package=gst-plugins srcfile=configure.ac # a quick cvs co to ease the transition if test ! -d common; then echo "+ getting common/ from cvs" if test -e CVS/Tag then TAG="-r `tail -c +2 CVS/Tag`" fi cvs co $TAG common fi # source hel...
Shell
#!/bin/sh # Run this to generate all the initial makefiles, etc. DIE=0 package=gst-plugins srcfile=configure.ac # a quick cvs co to ease the transition if test ! -d common; then echo "+ getting common/ from cvs" if test -e CVS/Tag then TAG="-r `tail -c +2 CVS/Tag`" fi cvs co $TAG common fi # source hel...
Shell
#!/bin/sh # check-exports # # quick'n'dirty script that retrieves the list of exported symbols of a given # library using 'nm', and compares that against the list of symbols-to-export # of our win32/common/libfoo.def files. if [ $# -ne 2 ]; then echo "Usage: $0 library.def library.so" exit 1 fi def_path="$1" def_na...
Shell
#!/bin/sh # check-exports # # quick'n'dirty script that retrieves the list of exported symbols of a given # library using 'nm', and compares that against the list of symbols-to-export # of our win32/common/libfoo.def files. if [ $# -ne 2 ]; then echo "Usage: $0 library.def library.so" exit 1 fi def_path="$1" def_na...
Shell
# a silly hack that generates autoregen.sh but it's handy # Remove the old autoregen.sh first to create a new file, # as the current one may be being read by the shell executing # this script. if [ -f "autoregen.sh" ]; then rm autoregen.sh fi echo "#!/bin/sh" > autoregen.sh echo "./autogen.sh $@ \$@" >> autoregen.sh ...
Shell
#!/bin/sh # # Usage: # ./2-tools.sh <function name> set -o nounset # http://www.linuxfromscratch.org/lfs/view/stable/chapter05/introduction.html # # "There are two steps in building this minimal system. The first step is to # build a new and host-independent toolchain (compiler, assembler, linker, # libraries, and ...
Shell
#!/bin/sh # # Usage: # ./1-download.sh <function name> # NOTE: replaced by bootstrap-list get_list() { wget http://www.linuxfromscratch.org/lfs/view/stable/wget-list } get_packages() { wget -i bootstrap-list -P /home/lfs/sources } verify() { local golden=$PWD/md5sums cd /home/lfs/sources && md5sum -c $gold...
Shell
#!/bin/sh # # Usage: # ./5-tools.sh <function name> . $PWD/util.sh do_ncurses() { maybe_untar_cd ncurses-5.9 .tar.gz set -o errexit ./configure --prefix=/tools --with-shared \ --without-debug --without-ada --enable-overwrite make make install } _patch_bash() { patch -Np1 -i ../bash-4.2-fixes-...
Shell
#!/bin/sh # # Usage: # ./3-tools.sh <function name> set -o nounset . $PWD/util.sh . $PWD/2-tools.sh # for gcc kernel_headers() { maybe_untar_cd linux-3.10.10 .tar.xz # would do this above except for the if statement. set -o errexit cd linux-3.10.10 make mrproper make headers_check make INSTALL_H...
Shell
#!/bin/bash # Simple script to list version numbers of critical development tools # # http://www.linuxfromscratch.org/lfs/view/stable/prologue/hostreqs.html export LC_ALL=C bash --version | head -n1 | cut -d" " -f2-4 echo "/bin/sh -> `readlink -f /bin/sh`" echo -n "Binutils: "; ld --version | head -n1 | cut -d" " -f3-...
Shell
#!/bin/sh # # Usage: # ./6-cleanup.sh <function name> strip_all() { strip --strip-debug /tools/lib/* strip --strip-unneeded /tools/bin/* /tools/sbin/* } rm_docs() { rm -rf -v \ /tools/info \ /tools/man \ /tools/doc \ /tools/share/info \ /tools/share/man \ /tools/share/doc } # TODO: # ...
Shell
#!/bin/sh # # Usage: # ./4-tools.sh <function name> . $PWD/util.sh # NOTE: Tcl is only needed for tests. I can make packages, but don't include # them when building say R or Python. # # Also note: book doesn't instruct you to make a clean build dir. Would that # work? do_tcl() { maybe_untar_cd tcl8.6.0-src .ta...
Shell
#!/bin/sh # # Usage: # ./0-setup.sh <function name> set -o nounset # Why does /bin/sh require $PWD here? . $PWD/util.sh # Make user and group. Needs to be run as root. _make_user() { groupadd lfs useradd -s /bin/bash -g lfs -m -k /dev/null lfs } make_user() { sudo $0 _make_user } set_passwd() { sudo pas...
Shell
#!/bin/sh # # Common utilities. # set -o nounset # Used everywhere. LFS=/home/lfs log() { echo 1>&2 "$@" } die() { log "$@" exit 1 } maybe_untar_cd() { local name=$1 # linux-3.10.10 local ext=$2 # .tar.gz cd $LFS/sources if ! test -d "$name"; then log "tar xvf $name$ext" # TODO: --checkp...
Shell
#!/bin/bash export JFX_HOME=$1 export OS=$2 mvn install:install-file -Dfile=$JFX_HOME/rt/lib/jfxrt.jar -DgroupId=com.oracle -DartifactId=javafx-runtime -Dversion=2.0-beta -Dpackaging=jar cd $JFX_HOME/rt/bin jar -cf bin.jar *.*lib mvn install:install-file -Dfile=bin.jar -DgroupId=com.oracle -DartifactId=javafx-runtime -...
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
OPENVPN_PACKAGE_NAME="@PACKAGE_NAME@" OPENVPN_PACKAGE_TARNAME="@PACKAGE_TARNAME@" OPENVPN_PACKAGE_VERSION="@PACKAGE_VERSION@" OPENVPN_PACKAGE_HOST="@host@"
Shell
#!@SHELL@ # # run OpenVPN client against ``test reference'' server # - check that ping, http, ... via tunnel works # - check that interface config / routes are properly cleaned after test end # # prerequisites: # - openvpn binary in current directory # - writable current directory to create subdir for logs # - t_client...
Shell
#! /bin/sh # # t_lpback.sh - script to test OpenVPN's crypto loopback # Copyright (C) 2005 Matthias Andree # # 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 version 2 # of the License, o...
Shell
#! /bin/sh # # t_cltsrv.sh - script to test OpenVPN's crypto loopback # Copyright (C) 2005, 2006, 2008 Matthias Andree # # 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 version 2 # of th...
Shell
#! /bin/sh echo "${role}:${signal}" >&3
Shell
#!/bin/sh # # Bring up vpn routing. # calculate the network address remote_network=`ipcalc -n "$remote"/"$remote_netmask_bits"` remote_network="${remote_network#*=}" # add the stuff that doesn't change if it's not already there grep -q '^202 ' /etc/iproute2/rt_tables if [ "$?" -ne 0 ] then echo 202 vpn.out >> /e...
Shell