From 17890aed8488845cd38aac917596048f3f716387 Mon Sep 17 00:00:00 2001 From: makefu Date: Mon, 30 Dec 2013 03:57:10 +0100 Subject: //query -> //Cancer --- Cancer/query/jquery/index | 19 ++++++++++++++++ Cancer/query/realpath/install | 41 +++++++++++++++++++++++++++++++++++ Cancer/query/realpath/src/realpath.rb | 10 +++++++++ query/jquery/index | 19 ---------------- query/realpath/install | 41 ----------------------------------- query/realpath/src/realpath.rb | 10 --------- 6 files changed, 70 insertions(+), 70 deletions(-) create mode 100755 Cancer/query/jquery/index create mode 100755 Cancer/query/realpath/install create mode 100755 Cancer/query/realpath/src/realpath.rb delete mode 100755 query/jquery/index delete mode 100755 query/realpath/install delete mode 100755 query/realpath/src/realpath.rb diff --git a/Cancer/query/jquery/index b/Cancer/query/jquery/index new file mode 100755 index 00000000..3c49dac9 --- /dev/null +++ b/Cancer/query/jquery/index @@ -0,0 +1,19 @@ +#! /bin/sh +set -euf + +# cd // +cd $(dirname $(readlink -f $0))/../.. + +for x in \ + github/tmpvar \ + github/mikeal \ + github/NV \ + github/tautologistics \ +; do + export NODE_PATH="$(readlink -f submodules/$x)${NODE_PATH+:$NODE_PATH}" +done + +# ensure query is ready +#git submodule update --init + +exec node submodules/github/visionmedia/query "$@" diff --git a/Cancer/query/realpath/install b/Cancer/query/realpath/install new file mode 100755 index 00000000..74671c81 --- /dev/null +++ b/Cancer/query/realpath/install @@ -0,0 +1,41 @@ +#! /bin/sh +set -euf + +cd `dirname $0` + +target=../../bin/realpath + +findexe() { + OLDIFS="$IFS" + IFS=: + for d in $PATH; do + f="$d/$1" + if test -f "$f" -a -x "$f"; then + echo $f + IFS="$OLDIFS" + return + fi + done + IFS="$OLDIFS" + ! : +} + +if exe="`findexe readlink`" && $exe -f install | grep -q /install$; then + ! test -e $target || rm $target + cat > $target <&2 + exit +fi + +if type ruby 1>/dev/null 2>/dev/null; then + ln -snf ../query/realpath/src/realpath.rb $target + echo '//query/realpath: install realpath.rb' >&2 + exit +fi + +echo 'Error 2: your system is made of stupid!' +exit 23 diff --git a/Cancer/query/realpath/src/realpath.rb b/Cancer/query/realpath/src/realpath.rb new file mode 100755 index 00000000..8e19785b --- /dev/null +++ b/Cancer/query/realpath/src/realpath.rb @@ -0,0 +1,10 @@ +#!/usr/bin/env ruby + +begin + $stdout.print File.realpath(ARGV[0]) + $stdout.print "\n" +rescue Exception => err + $stderr.print err + $stderr.print "\n" + exit 1 +end diff --git a/query/jquery/index b/query/jquery/index deleted file mode 100755 index 3c49dac9..00000000 --- a/query/jquery/index +++ /dev/null @@ -1,19 +0,0 @@ -#! /bin/sh -set -euf - -# cd // -cd $(dirname $(readlink -f $0))/../.. - -for x in \ - github/tmpvar \ - github/mikeal \ - github/NV \ - github/tautologistics \ -; do - export NODE_PATH="$(readlink -f submodules/$x)${NODE_PATH+:$NODE_PATH}" -done - -# ensure query is ready -#git submodule update --init - -exec node submodules/github/visionmedia/query "$@" diff --git a/query/realpath/install b/query/realpath/install deleted file mode 100755 index 74671c81..00000000 --- a/query/realpath/install +++ /dev/null @@ -1,41 +0,0 @@ -#! /bin/sh -set -euf - -cd `dirname $0` - -target=../../bin/realpath - -findexe() { - OLDIFS="$IFS" - IFS=: - for d in $PATH; do - f="$d/$1" - if test -f "$f" -a -x "$f"; then - echo $f - IFS="$OLDIFS" - return - fi - done - IFS="$OLDIFS" - ! : -} - -if exe="`findexe readlink`" && $exe -f install | grep -q /install$; then - ! test -e $target || rm $target - cat > $target <&2 - exit -fi - -if type ruby 1>/dev/null 2>/dev/null; then - ln -snf ../query/realpath/src/realpath.rb $target - echo '//query/realpath: install realpath.rb' >&2 - exit -fi - -echo 'Error 2: your system is made of stupid!' -exit 23 diff --git a/query/realpath/src/realpath.rb b/query/realpath/src/realpath.rb deleted file mode 100755 index 8e19785b..00000000 --- a/query/realpath/src/realpath.rb +++ /dev/null @@ -1,10 +0,0 @@ -#!/usr/bin/env ruby - -begin - $stdout.print File.realpath(ARGV[0]) - $stdout.print "\n" -rescue Exception => err - $stderr.print err - $stderr.print "\n" - exit 1 -end -- cgit v1.2.3