From fbe3f344c14d002316338a38d35f7227e94f2844 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Tue, 3 Jun 2014 14:29:06 -0400 Subject: build: rename " and "" to quote1 and quote2 for hg They'll be copied back during installation but then hg doesn't have to create those files on systems that have trouble with them. TBR=rsc https://codereview.appspot.com/105800043 --- INSTALL | 4 ++++ "bin/\"" | 27 --------------------------- "bin/\"\"" | 10 ---------- bin/quote1 | 27 +++++++++++++++++++++++++++ bin/quote2 | 10 ++++++++++ 5 files changed, 41 insertions(+), 37 deletions(-) delete mode 100755 "bin/\"" delete mode 100755 "bin/\"\"" create mode 100755 bin/quote1 create mode 100755 bin/quote2 diff --git a/INSTALL b/INSTALL index 5b86645c..f032f9da 100755 --- a/INSTALL +++ b/INSTALL @@ -170,6 +170,10 @@ if $dobuild; then echo " " echo "* Warning: not all binaries built successfully." fi + if [ -f bin/quote1 ]; then + cp bin/quote1 'bin/"' + cp bin/quote2 'bin/""' + fi echo "* Cleaning up..." mk clean fi diff --git "a/bin/\"" "b/bin/\"" deleted file mode 100755 index e0f7c8f9..00000000 --- "a/bin/\"" +++ /dev/null @@ -1,27 +0,0 @@ -#!/usr/local/plan9/bin/rc - -. 9.rc - -fn text { - if(~ $winid [0-9]*) - 9p read acme/$winid/body - if not if(~ $text9term unix!*) - dial -e $text9term [1=2] - exit notfound -} - -echo ' ' $cmd >[1=2] -rc -c $"cmd diff --git a/bin/quote1 b/bin/quote1 new file mode 100755 index 00000000..e0f7c8f9 --- /dev/null +++ b/bin/quote1 @@ -0,0 +1,27 @@ +#!/usr/local/plan9/bin/rc + +. 9.rc + +fn text { + if(~ $winid [0-9]*) + 9p read acme/$winid/body + if not if(~ $text9term unix!*) + dial -e $text9term [1=2] + exit notfound +} + +echo ' ' $cmd >[1=2] +rc -c $"cmd -- cgit v1.2.3