code
stringlengths
1
1.96M
language
stringclasses
1 value
#!/bin/bash # # Copyright (C) 2009 Red Hat, Inc. # Copyright (c) 2000-2005 Silicon Graphics, Inc. All Rights Reserved. # # 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. # # This program is dist...
Shell
#!/bin/bash # # Combined test to grow the refcount table and test snapshots. # # Copyright (C) 2009 Red Hat, 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 version 2 of the Licens...
Shell
#!/bin/bash # # Test that all qcow2 header extensions survive a header rewrite # # Copyright (C) 2011 Red Hat, 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 version 2 of the Lice...
Shell
#!/bin/sh # We don't know which of the system emulator binaries there is (or if there is # any at all), so the 'quick' group doesn't contain any tests that require # running qemu proper. Assign a fake binary name so that qemu-iotests doesn't # complain about the missing binary. export QEMU_PROG="this_should_be_unused"...
Shell
#!/bin/sh export QEMU_PROG="$(pwd)/x86_64-softmmu/qemu-system-x86_64" export QEMU_IMG_PROG="$(pwd)/qemu-img" export QEMU_IO_PROG="$(pwd)/qemu-io" if [ ! -x $QEMU_PROG ]; then echo "'make check-block' requires qemu-system-x86_64" exit 1 fi cd $SRC_PATH/tests/qemu-iotests ret=0 ./check -T -nocache -raw || ret...
Shell
#! /bin/bash # libtool - Provide generalized library-building support services. # Generated automatically by config.status () # Libtool was configured on host k9: # NOTE: Changes made to this file will be lost: look at ltmain.sh. # # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, # ...
Shell
#! /bin/sh # Prints a table of the charsets (system dependent name and portable name) # for all locales. ${CC-cc} -o locale_codeset locale_codeset.c ${CC-cc} -o locale_charset -I../include locale_charset.c \ -DHAVE_CONFIG_H -I.. -DLIBDIR='"'`cd ../lib && pwd`'"' \ ../lib/localcharset.c printf '%-15s%-17s%-17...
Shell
#!/bin/sh # Prints a table of the charsets (system dependent name, portable name, and # X11 name) for all locales. ${CC-cc} -o locale_codeset locale_codeset.c ${CC-cc} -o locale_charset -I../include locale_charset.c \ -DHAVE_CONFIG_H -I.. -DLIBDIR='"'`cd ../lib && pwd`'"' \ ../lib/localcharset.c ${CC-cc} -o l...
Shell
#! /bin/sh # Prints the list of all locale names, one per line. locale -a test $? = 0 && exit 0 host=`/bin/sh ../build-aux/config.guess` host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\...
Shell
#! /bin/sh # Prints the system dependent name for the current locale's charmap. locale charmap
Shell
#! /bin/sh # This is the config.site file for configuring GNU packages # which are to be built with DJGPP tools. # Include the djgpp subdirectory in PATH, so that getconf is found PATH="$srcdir/djgpp:$PATH" # These two variables are required, otherwise looking for # programs along the PATH will not work. PATH_SEPAR...
Shell
#! /bin/sh # Output a system dependent set of variables, describing how to set the # run time search path of shared libraries in an executable at run time. # # Copyright 1996-2005 Free Software Foundation, Inc. # Taken from GNU libtool, 2003 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 # # This...
Shell
# libtool (GNU libtool) 2.4 # Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, # 2007, 2008, 2009, 2010 Free Software Foundation, Inc. # This is free software; see the source for copying conditions. There is NO # warranty; not even f...
Shell
#!/bin/sh # # install - install a program, script, or datafile # # This originates from X11R5 (mit/util/scripts/install.sh), which was # later released in X11R6 (xc/config/util/install.sh) with the # following copyright and license. # # Copyright (C) 1994 X Consortium # # Permission is hereby granted, free of charge, t...
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 # Convenience script for regenerating all aclocal.m4, config.h.in, Makefile.in, # configure files with new versions of autoconf or automake. # # This script requires autoconf-2.63..2.68 and automake-1.11 in the PATH. # Copyright (C) 2003-2007, 2009-2010 Free Software Foundation, Inc. # # This program is free...
Shell
#! /bin/sh # Output a system dependent table of character encoding aliases. # # Copyright (C) 2000-2004, 2006-2010 Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or modify it # under the terms of the GNU Library General Public License as published # by the Free Sof...
Shell
#! /bin/bash # libtool - Provide generalized library-building support services. # Generated automatically by config.status (libiconv) 1.14 # Libtool was configured on host k9: # NOTE: Changes made to this file will be lost: look at ltmain.sh. # # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, # ...
Shell
#! /bin/bash # libtool - Provide generalized library-building support services. # Generated automatically by config.status () # Libtool was configured on host k9: # NOTE: Changes made to this file will be lost: look at ltmain.sh. # # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, # ...
Shell
#! /bin/sh # This is the config.site file for configuring GNU packages # which are to be built with DJGPP tools. # Include the djgpp subdirectory in PATH, so that getconf is found PATH="$srcdir/djgpp:$PATH" # These two variables are required, otherwise looking for # programs along the PATH will not work. PATH_SEPAR...
Shell
#!/bin/sh # Convenience script for regenerating all autogeneratable files that are # omitted from the version control repository. In particular, this script # also regenerates all aclocal.m4, config.h.in, Makefile.in, configure files # with new versions of autoconf or automake. # # This script requires autoconf-2.63..2...
Shell
9c arc.c 9c cmap.c 9c cread.c 9c defont.c 9c ellipse.c 9c fillpoly.c 9c hwdraw.c 9c icossin.c 9c icossin2.c 9c iprint.c 9c line.c 9c openmemsubfont.c 9c poly.c 9c read.c 9c string.c 9c subfont.c 9c write.c 9c alloc.c 9c cload.c 9c draw.c 9c load.c 9c unload.c 9ar ../lib/libmemdraw.a arc.o cmap.o ...
Shell
9c blas.c 9c dtoa.c 9c fdim.c 9c FPcontrol-NetBSD.c 9c gemm.c 9c g_fmt.c 9c gfltconv.c 9c pow10.c 9c -Ifdlibm fdlibm/e_acos.c 9c -Ifdlibm fdlibm/e_acosh.c 9c -Ifdlibm fdlibm/e_asin.c 9c -Ifdlibm fdlibm/e_atan2.c 9c -Ifdlibm fdlibm/e_atanh.c 9c -Ifdlibm fdlibm/e_cosh.c 9c -Ifdlibm fdlibm/e_exp.c 9c -Ifdl...
Shell
load std load arg autoload=std fn awk { os awk $* } fn 9c { load arg args := $* flags='' (arg I+ {flags = $flags -I ^ `{file2root $arg}} D+ {flags = $flags -$opt ^ $arg} '*' {echo unknown option $opt} - $args ) cc=cc cwd=$emuroot ^ `pwd cflags=(-c -mt -g -w -xCC -I$emuroot/sys/Solaris/spa...
Shell
load arg load std autoload=(std) fn awk { os awk $* } fn 9c { load arg args := $* flags='' (arg I+ {flags = $flags -I ^ `{file2root $arg}} D+ {flags = $flags -$opt ^ $arg} '*' {echo unknown option $opt} - $args ) cwd=`{echo $emuroot ^ `pwd} cc='gcc' cflags=( -m32 -O2 -c -Wall -Wno-parenth...
Shell
#!/bin/sh echo 9c $* gcc -O2 -c -Wall -Wno-parentheses -Wno-missing-braces -Wno-switch -Wno-comment -Wno-sign-compare -Wno-unknown-pragmas -fno-omit-frame-pointer -I"$ACME_HOME/sys/include" -I"$ACME_HOME/sys/Linux/386/include" -I"$ACME_HOME/sys/libinterp" -c $*
Shell
#!/bin/sh echo 9l $* gcc -lm -lX11 -lXext -lpthread $*
Shell
#!/bin/sh echo 9ar $* ar -r $*
Shell
#!/dis/sh.dis load std; autoload=std cd /sys run /sys/Linux/profile mk nuke mk install && mk clean #rm -rf /tmp/*
Shell
9c dsaalg.c 9c egalg.c 9c rsaalg.c 9ar ../lib/libkeyring.a dsaalg.o egalg.o rsaalg.o
Shell
9c mpaux.c 9c mpfmt.c 9c strtomp.c 9c mptobe.c 9c mptole.c 9c betomp.c 9c letomp.c 9c mpadd.c 9c mpsub.c 9c mpcmp.c 9c mpfactorial.c 9c mpmul.c 9c mpleft.c 9c mpright.c 9c mpvecadd.c 9c mpvecsub.c 9c mpvecdigmuladd.c 9c mpveccmp.c 9c mpdigdiv.c 9c mpdiv.c 9c mpexp.c 9c mpmod.c 9c mpextendedgcd.c ...
Shell
#!/dis/sh load echo std string regex port='PORT=' dev='DEVS=' lib='LIBS=' init='INIT=' env='' #O=.obj ifs := ' ' indent := '^[ ]' typere := '^(env|code|dev|init|ip|lib|link|mod|misc|port|root)' getlines { if {match $typere $line } { (type rest) = ${split $ifs $line} } {match $indent $line} { objs := ${spli...
Shell
#!/dis/sh load echo std string regex expr port= dev= lib= init= env= link= mod= misc= code= O=.obj ifs := ' ' indent := '^[ ]' typere := '^(env|code|dev|init|ip|lib|link|mod|misc|port|root)' getlines { if {match $typere $line } { (type rest) = ${split $ifs $line} } {match $indent $line} { objs := ${split $...
Shell
9c asm-386.S 9c '-DROOT="."' -DEMU -I. -I../port -I../../Linux/386/include -I../../include -I../../libinterp os.c 9c '-DROOT="."' -DEMU -I. -I../port -I../../Linux/386/include -I../../include -I../../libinterp -I. ../port/win-x11a.c 9c '-DROOT="."' -DEMU -I. -I../port -I../../Linux/386/include -I../../include -I../../...
Shell
load arg sysroot=/Developer/SDKs/MacOSX10.3.9.sdk min=10.3 fn awk { os awk $* } fn 9c { load arg args := $* flags='' (arg I+ {flags = $flags -I ^ `{file2root $arg}} D+ {flags = $flags -$opt ^ $arg} '*' {echo unknown option $opt} - $args ) cwd=`{echo $emuroot ^ `pwd} cc='cc -arch ppc' cflags=( -O2...
Shell
#!/dis/sh.dis load std; autoload=std cd /sys run /sys/MacOSX/386/profile mk nuke install clean run /sys/MacOSX/power/profile mk nuke install cd /sys/emu/MacOSX mk -f mkfile-x nuke mk -f mkfile-x install clean cd /sys mk nuke
Shell
#!/dis/sh.dis load std; autoload=std cd /sys run /sys/MacOSX/386/profile mk nuke mk install && mk clean
Shell
#!/dis/sh.dis load std; autoload=std cd /sys run /sys/MacOSX/Power/profile mk nuke mk install && mk clean
Shell
load arg sysroot=/Developer/SDKs/MacOSX10.4u.sdk min=10.4 fn awk { os awk $* } fn 9c { load arg args := $* flags='' (arg I+ {flags = $flags -I ^ `{file2root $arg}} D+ {flags = $flags -$opt ^ $arg} '*' {echo unknown option $opt} - $args ) cwd=`{echo $emuroot ^ `pwd} cc='cc -arch i386' cflags=( -O2...
Shell
#!/dis/sh.dis load std; autoload=std cd /sys run /sys/MacOSX/Power/profile mk nuke mk install cd /sys/emu/MacOSX mk -f mkfile-x nuke mk -f mkfile-x install && mk -f mkfile-x clean
Shell
#!/dis/sh.dis load std; autoload=std cd /sys run /sys/MacOSX/386/profile mk nuke mk install && mk clean cd /sys/emu/MacOSX mk -f mkfile-x nuke mk -f mkfile-x install && mk -f mkfile-x clean
Shell
9c -I../libmp des.c 9c -I../libmp desmodes.c 9c -I../libmp desECB.c 9c -I../libmp desCBC.c 9c -I../libmp des3ECB.c 9c -I../libmp des3CBC.c 9c -I../libmp aes.c 9c -I../libmp blowfish.c 9c -I../libmp idea.c 9c -I../libmp hmac.c 9c -I../libmp md5.c 9c -I../libmp md5block.c 9c -I../libmp md4.c 9c -I../libmp sha1.c 9c -I../...
Shell
9c convD2M.c 9c convM2D.c 9c convM2S.c 9c convS2M.c 9c fcallfmt.c 9c qsort.c 9c runestrlen.c #9c strtoll.c 9c rune.c 9c argv0.c 9c charstod.c 9c cistrcmp.c 9c cistrncmp.c 9c cistrstr.c 9c cleanname.c 9c dofmt.c 9c dorfmt.c 9c errfmt.c 9c exits.c 9c fmt.c 9c fmtfd.c 9c fmtlock.c 9c fmtprint.c 9c ...
Shell
#!/bin/rc cat limbo.ms synsum | awk 'BEGIN { inside = 0 } { if ($1==".s1") { inside = 1; } if ($1==".s2") { inside = 0; } if (inside) { gsub(/C/, "\\f(CW") gsub(/ID/, "@D") gsub(/I/, "\\fI") gsub(/@D/, "ID") gsub(/O/, "\\fI\\s-3\\v''+2p''opt\\v''-2p''\\s+3") } print $0 ...
Shell
load arg load std autoload=std noexe=() #noexe=-E fn 9c { load arg args := $* flags='' (arg I+ {flags = $flags -I ^ $arg} D+ {flags = $flags -$opt ^ $arg} '*' {echo unknown option $opt} - $args ) cc=cl cwd=$emuroot ^ `pwd cflags=(-c -nologo -W3 -Zi -MT '-D_WIN32_WINNT=0x0400' -I$cwd -I...
Shell
9c alloc.c 9c allocimagemix.c 9c arith.c 9c bezier.c 9c border.c 9c buildfont.c 9c bytesperline.c 9c chan.c 9c cloadimage.c 9c computil.c 9c creadimage.c 9c defont.c 9c draw.c 9c drawrepl.c 9c ellipse.c 9c font.c 9c freesubfont.c 9c getdefont.c 9c getsubfont.c 9c init.c 9c line.c 9c mkfont.c 9c o...
Shell
cwd=`pwd` export ACME_HOME=`dirname $cwd` PATH=$PATH:$cwd/Linux/cmd mkdir -p lib cd lib9 ./build.sh cd ../libdraw ./build.sh cd ../libinterp ./build.sh cd ../libkeyring ./build.sh cd ../libmath ./build.sh cd ../libmemdraw ./build.sh cd ../libmemlayer ./build.sh cd ../libmp ./build.sh cd ../libsec ./build.sh cd ../emu/L...
Shell
9c draw.c 9c layerop.c 9c ldelete.c 9c lhide.c 9c line.c 9c load.c 9c lorigin.c 9c lsetrefresh.c 9c ltofront.c 9c ltorear.c 9c unload.c 9c lalloc.c 9ar ../lib/libmemlayer.a draw.o layerop.o ldelete.o lhide.o line.o load.o lorigin.o lsetrefresh.o ltofront.o ltorear.o unload.o lalloc.o
Shell
9c alt.c 9c comp-386.c 9c conv.c 9c dec.c 9c draw.c 9c gc.c 9c geom.c 9c heap.c 9c heapaudit.c 9c ipint.c 9c link.c 9c load.c 9c math.c 9c raise.c 9c readmod.c 9c runt.c 9c sign.c 9c stack.c 9c validstk.c 9c xec.c 9c das-386.c 9c keyring.c 9c string.c 9ar ../lib/libinterp.a alt.o comp-386.o conv...
Shell
#!/dis/sh pctl forkns builtin cd $"1 args:=`{ls -drp [0-9]*} *=$args diff index.txt $1/index.txt | sed 's/^(.*)index.txt:(.*)index.txt:/\1current:\2:/g' while {! ~ $#args 0 1} { *=$args diff $1/index.txt $2/index.txt | sed 's/^(.*)index.txt:(.*)index.txt:/\1:\2:/g' args=${tl $args} }
Shell
#!/dis/sh load std if{~ $#* 0}( {pattern=.} {pattern=$1} ) for i in /mnt/acme/[0-9]* { if{ftest -d $i}{ (file tagline)=`{cat $i/tag} # must match our pattern if given, must be a clean window, # and must not be an Errors window, mail, or win. if {and ( {echo $file | grep $pattern >/dev/null >[2=1]} {...
Shell
#!/dis/sh cwd = `pwd cd /mnt/acme/$acmewin { echo -n 'addr=dot' >ctl (a b) := `cat echo -n '/^[^\-<>].*\n/' > addr echo -n 'dot=addr' > ctl echo -n show > ctl (f1 cmd f2) := `{getline data} (f1 l1) = ${split ':' $f1} (f2 l2) = ${split ':' $f2} f1 = `{cleanname -d $cwd $f1} f2 = `{cleanname -d $cwd $f2} if ...
Shell
#!/dis/sh if {~ $#* 0} { echo usage: findwin filename exit } file = $1 < /mnt/acme/index getlines { (w x y z zz f rest) := ${split ' ' $line } if {~ $f $file} {echo $w; exit} }
Shell
#!/dis/sh page=`{pwd}^/$1 >/mnt/acme/$acmewin/ctl { echo name $page echo clean echo get }
Shell
#!/dis/sh cwd = `pwd cd /mnt/acme/$acmewin { echo -n 'addr=dot' >ctl (a b) := `cat echo -n '-/^[^\-<>].*\n/' > addr echo -n 'dot=addr' > ctl echo -n show > ctl (f1 cmd f2) := `{getline data} (f1 l1) = ${split ':' $f1} (f2 l2) = ${split ':' $f2} f1 = `{cleanname -d $cwd $f1} f2 = `{cleanname -d $cwd $f2} if...
Shell
#!/dis/sh load std id := `{cat /mnt/acme/new/ctl} wdir := /mnt/acme/^${hd $id} cmd := $* if {~ $#cmd 0} { cmd = cat } echo 'name '^`{pwd}^/-^`{basename ${hd $cmd}} >$wdir/ctl $cmd >$wdir/body >[2=1] echo clean >$wdir/ctl
Shell
#!/dis/sh cwd = `pwd cd /mnt/acme/$acmewin { echo -n 'addr=dot' > ctl (f1 cmd f2) := `{getline data} (f1 l1) = ${split ':' $f1} (f2 l2) = ${split ':' $f2} f1 = `{cleanname -d $cwd $f1} f2 = `{cleanname -d $cwd $f2} a := `{findwin $f1} if {~ $#a 0} {exit} b := `{findwin $f2} if {~ $#b 0} {exit} cp /mnt/acme/...
Shell
#!/dis/sh Feedkey # could do secstore (a b) := `{getkey 'proto=pass service=logon'} crypt -d -k $b < /usr/$a/keyring/factotum.cr | getlines {echo $line} > /mnt/factotum/ctl
Shell
#!/dis/sh # http://cvs.savannah.gnu.org/viewvc/emacs/emacs/lisp/play/blackbox.el?view=markup load std load expr fn msg{ echo blackbox: $* } # rand(mod): a random number between 0 and mod-1 subfn rand{ mod := $1 r := `{read 1 </dev/random | sum /fd/0} result = ${expr 16r${hd $r} $mod %} } # a random point within ...
Shell
#!/dis/sh load expr name=$% current=`{basename $name} currentx=`{grep -n '^'$current'([ ]|$)' index | sed 's/:.*//'} pagex=${expr $currentx 1 +} page=`{sed -n $pagex^p index} if{~ $#page 0}{ echo no such page exit 0 } Slide $page
Shell
#!/dis/sh # http://groups.google.com/group/comp.os.plan9/msg/06552626b83aad08 load std args := $* id := `{findwin '*' ^ ${hd $args} ^ '*' } if {~ $#id 0} {raise 'no match for pattern'} if {! ~ $#id 1} {raise 'ambiguous pattern'} if {~ `{wc -w /mnt/acme/$id/rdsel} 0} {raise 'no selection'} sh /mnt/acme/$id/rdsel...
Shell
#!/dis/sh os $emuroot ^ /Acme.exe -c0 '-pheap=128M' '-pmain=128M' /dis/sh.dis -l -c 'run /lib/sh/profile; styxlisten -A ''tcp!*!6666'' export /prog; run $home/lib/profile' & echo Local mount -A tcp!localhost!6666 /prog echo adeb
Shell
#!/dis/sh if {! ~ $#* 2} { echo usage: highlight filename lineno exit } file = $1 lineno = $2 a := `{findwin $file} if {! ~ $#a 0} { cd /mnt/acme/$a <> addr { echo -n $lineno > addr echo 'dot=addr' > ctl echo show > ctl } }{ plumb $file:$lineno } exit
Shell
#!/dis/sh load expr name=$% current=`{basename $name} currentx=`{grep -n '^'$current'([ ]|$)' index | sed 's/:.*//'} pagex=${expr $currentx 1 -} if{~ $pagex 0}{ echo no such page exit 0 } page=`{sed -n $pagex^p index} Slide $page
Shell
#!/bin/sh export acmedir=`dirname "$0"` export SYSHOST=MacOSX export OBJTYPE=386 export EMU=emu export osMajorVer=`uname -r | cut -f1 -d.` if ( uname -s | grep -i linux >/dev/null ); then SYSHOST=Linux fi if ( uname -p | grep -i power >/dev/null ); then OBJTYPE=power fi if [ "$SYSHOST" = "MacOSX" ] && [ "$...
Shell
#!/dis/sh.dis -n load std or {ftest -e /net/dns} {ftest -e /env/emuhost} {ndb/dns} or {ftest -e /net/cs} {ndb/cs} or {ftest -f /keydb/signerkey} {echo 'auth: need to use createsignerkey(8)' >[1=2]; exit nosignerkey} or {ftest -f /keydb/keys} {echo 'auth: need to create /keydb/keys' >[1=2]; exit nokeys} and {auth/keyfs}...
Shell
#!/dis/sh.dis -n load std or {ftest -e /net/dns} {ftest -e /env/emuhost} {ndb/dns} or {ftest -e /net/cs} {ndb/cs} svc/registry svc/styx
Shell
#!/dis/sh.dis -n load std listen -v 'tcp!*!styx' {export /&} # -n? #and {ftest -d /net/il} {listen -v 'il!*!styx' {export /&}} # -n?
Shell
#!/dis/sh.dis -n load std listen 'tcp!*!rstyx' {runas $user auxi/rstyxd&} #and {ftest -d /net/il} {listen 'il!*!rstyx' {runas $user auxi/rstyxd&}}
Shell
#!/dis/sh.dis -n load std or {ftest -f /mnt/registry/new} { db=() and {ftest -f /lib/ndb/registry} {db=(-f /lib/ndb/registry)} mount -A -c {ndb/registry $db} /mnt/registry } listen -v 'tcp!*!registry' {export /mnt/registry&} # -n?
Shell
#!/dis/sh pctl forkns builtin cd $"1 args:=`{ls -drp [0-9]*} *=$args diff index.txt $1/index.txt | sed 's/^(.*)index.txt:(.*)index.txt:/\1current:\2:/g' while {! ~ $#args 0 1} { *=$args diff $1/index.txt $2/index.txt | sed 's/^(.*)index.txt:(.*)index.txt:/\1:\2:/g' args=${tl $args} }
Shell
adict [-d dictionary] [pattern] adict with no arguments opens a window that displays all the currently available dictionaries. To select a dictionary, click the right mouse button on its name. -d dictionary Opens a window that interfaces to the specified dictionary. To look up a word, enter it in the window, and ...
Shell
#!/dis/sh load std # codepage generators GENERATORS=( gencp932 genbig5 gengb2312 genjisx0201kana genjisx0208-1997 genjisx0212 ibm437 ibm850 ibm866 iso8859-1 iso8859-10 iso8859-2 iso8859-3 iso8859-4 iso8859-5 iso8859-6 iso8859-7 iso8859-8 iso8859-9 koi8-r windows-1250 windows-1251 windows-1252 ) ...
Shell
.TH MAN 1 .SH NAME man, wm/man, man2html, man2txt, lookman, sig \- print or find manual pages .SH SYNOPSIS .B man [ .B -b ] [ .B -n ] [ .B -p ] [ .B -S ] [ .B -w ] [ .I section ... ] .I title ... .br .B man -f .I file ... .br .B wm/man [ .I section ... ] .I title ... .br .B wm/man -f .I file ... .br .B man2html [ .BI -...
Shell
.TH MAN 6 .SH NAME man \- manual page format .SH DESCRIPTION The Inferno manual pages are stored as text files in a format originally defined for use with the Unix and Plan 9 .I troff command, when used with the .I man macro package. Within Inferno, the format is interpreted by the programs of .IR man (1). .PP Except i...
Shell
.TH LOGIN 6 .SH NAME login \- key exchange protocol .SH DESCRIPTION The following encrypted key exchange protocol is used between a client such as .B login in .IR security-login (2), and a certificate signing process such as .IR logind (8), to justify the latter's issuing a certificate that can later be presented to an...
Shell
#!/dis/sh load std echo echo '<html> <head><title>hello world</title></head> <body>' echo hello world doodah echo '</body> </html>'
Shell
#!/dis/sh ls -p $* | mc
Shell
#!/dis/sh load std expr string pctl forkns args := $* s := sh -c ${quote $"args} mkdir -p /tmp/lpipe bind '#|' /tmp/lpipe { echo ${expr ${len $"s} 1 + } >/fd/0; echo $s >/fd/0; export / /fd/0 } <>/tmp/lpipe/data & os -d $emuroot Acme -c0 sh -c ' mkdir -p /tmp/pipes; mkdir -p /n/client; bind ''#|'' /tmp/pipe...
Shell
#!/dis/sh sed -n '/broke/s/^ +([0-9][0-9]*) +(.*)/echo kill >\/prog\/\1\/ctl # \2/p' /prog/*/status
Shell
#!/dis/sh args := $* c=`{hp $args} os cmd /c start '"\DummyTitle\"' $"c
Shell
#!/dis/sh file := $1 if {ftest -e $file} { mdb $file '$s' } {ftest -e $file.dis} { mdb $file.dis '$s' } {ftest -e /dis/$file} { s := `{mdb /dis/$file '$s'} if {~ $#s 0} { echo /dis/$file } {echo $s} } {ftest -e /dis/$file.dis} { mdb /dis/$file.dis '$s' }
Shell
#!/dis/sh.dis # Plan 9 man script adaptation for Inferno # for more details see the real man(1) load std fils=() cmd=n sec=() S=/man d=0 x=$* # see sh(1) for details about s/$*/$x/. x=`{echo $x|tr A-Z a-z|tr -dc 'a-z0-9_ \012-/'} # fold case, delete funny chars search=yes while {~ $d 0}{ #echo d$d search$search cmd...
Shell
#!/dis/sh load std wdir=`{hp `{pwd}} if {~ $emuhost Nt}{ os -d $wdir svn $* | tr -d ' ' }{ os -d $wdir svn $* }
Shell
#!/dis/sh load std fn cmdform { sed 's;/man/;; s;(.*)/(0intro);man \1 \2 # intro(\1); s;(.*)/(.*);man \1 \2 # \2(\1);' } post=cmdform x=$* ~ $1 -f && { post=cat x=${tl $x} } x=`{echo $x|tr A-Z a-z|tr -dc 'a-z0-9_ \012'} # fold case, delete funny chars ~ $#x 0 && {echo Usage: lookman key ... >[1=2]; exit usage} ...
Shell
#!/dis/sh os -T hg $*
Shell
#!/dis/sh.dis load std autoload=std bind -c /dis /dis bind -a '#w' /dev bind -c '#splumber' /chan bind -a '#^' /chan if {ftest -d '#A'}{ bind -a '#A' /dev } run $home/lib/functions if {! ftest -f /net/dns}{ ndb/dns -r } if {! ftest -f /net/cs}{ ndb/cs } if {! ftest -f /mnt/factotum/proto}{ auth/factotum } if {! ...
Shell
#!/dis/sh.dis # emu sh initialisation here load std user="{cat /dev/user} home=/usr/^$"user mount -ac {mntgen} /n ftrans=() if {~ $emuhost MacOSX Linux}{ trfs '#U*' /n/local >[2] /dev/null ftrans = $frans '#U*' /n/local ghome=/n/local/^`{echo 'echo $HOME' | os sh} }{~ $emuhost Nt}{ for i in C D { # add more driv...
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