Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

import into pinf

  • Loading branch information...
commit 446966e22ddbc6249171ea4d8d22fc6545360df6 1 parent 3961369
Christoph Dorn authored
1  bin/activate
50 bin/activate.bash
... ... @@ -1,50 +0,0 @@
1   -
2   -if [ -z "${BASH_ARGV[0]}" ]; then
3   -
4   - # as a last recourse, use the present working directory
5   - PACKAGE_HOME=$(pwd)
6   -
7   -else
8   -
9   - # get the absolute path of the executable
10   - SELF_PATH=$(
11   - cd -P -- "$(dirname -- "${BASH_ARGV[0]}")" \
12   - && pwd -P
13   - ) && SELF_PATH=$SELF_PATH/$(basename -- "${BASH_ARGV[0]}")
14   -
15   - # resolve symlinks
16   - while [ -h "$SELF_PATH" ]; do
17   - DIR=$(dirname -- "$SELF_PATH")
18   - SYM=$(readlink -- "$SELF_PATH")
19   - SELF_PATH=$(cd -- "$DIR" && cd -- $(dirname -- "$SYM") && pwd)/$(basename -- "$SYM")
20   - done
21   -
22   - PACKAGE_HOME=$(dirname -- "$(dirname -- "$SELF_PATH")")
23   -
24   -fi
25   -
26   -export PACKAGE_HOME
27   -
28   -# which -s narwhal doesn't work (os x 10.5, kriskowal)
29   -if [ -f "$PACKAGE_HOME"/bin/narwhal ]; then
30   - NARWHAL="$PACKAGE_HOME"/bin/narwhal
31   -elif [ -f "$PACKAGE_HOME"/packages/narwhal/bin/narwhal ]; then
32   - NARWHAL="$PACKAGE_HOME"/packages/narwhal/bin/narwhal
33   -else
34   - env narwhal -e '' >/dev/null 2>&1
35   - if [ "$?" -ne 127 ]; then
36   - NARWHAL=narwhal
37   - else
38   - echo "ERROR: narwhal is not in your PATH nor in $PACKAGE_HOME/bin." >&2
39   - fi
40   -fi
41   -
42   -if [ -f "$PACKAGE_HOME"/narwhal.conf ]; then
43   - source "$PACKAGE_HOME"/narwhal.conf
44   - export NARWHAL_DEFAULT_ENGINE
45   -fi
46   -
47   -if [ "$NARWHAL" ]; then
48   - export PATH="$("$NARWHAL" --package "$PACKAGE_HOME" --path :)"
49   -fi
50   -
38 bin/sea
... ... @@ -1,38 +0,0 @@
1   -#!/bin/bash
2   -
3   -# this script is intended to work both in narwhal/bin and in
4   -# any project's bin dir; it's copied by tusk --init.
5   -
6   -# get the absolute path of the executable
7   -SELF_PATH=$(cd -P -- "$(dirname -- "$0")" && pwd -P) && SELF_PATH=$SELF_PATH/$(basename -- "$0")
8   -
9   -# resolve symlinks
10   -while [ -h "$SELF_PATH" ]; do
11   - DIR=$(dirname -- "$SELF_PATH")
12   - SYM=$(readlink -- "$SELF_PATH")
13   - SELF_PATH=$(cd -- "$DIR" && cd -- $(dirname -- "$SYM") && pwd)/$(basename -- "$SYM")
14   -done
15   -
16   -export PACKAGE_HOME=$(dirname -- "$(dirname -- "$SELF_PATH")")
17   -
18   -source "$PACKAGE_HOME/bin/activate.bash"
19   -
20   -export OLDSEA="$SEA"
21   -export SEA="$PACKAGE_HOME"
22   -export SEALVL="$((SEALVL + 1))"
23   -
24   -if [ "$#" -lt 1 ]; then
25   - echo PATH="$PATH" >&2
26   - echo SEA="$SEA" >&2
27   - echo SEALVL="$SEALVL" >&2
28   - export PS1="\e[00;35mTUSK[\e[00;33mdomplate\e[00;35m]:\e[m "
29   - cd $PACKAGE_HOME
30   - "$SHELL"
31   -else
32   - "$SHELL" -c "$*"
33   -fi
34   -if [ "$OLDSEA" != "" ]; then
35   - echo SEA="$OLDSEA" >&2
36   -fi
37   -echo SEALVL="$((SEALVL - 1))" >&2
38   -
4 catalog.json
... ... @@ -1,4 +0,0 @@
1   -{
2   - "schema": "1.1",
3   - "name": "domplate"
4   -}
1  narwhal.conf
... ... @@ -1 +0,0 @@
1   -NARWHAL_DEFAULT_ENGINE=rhino
8 package.json
... ... @@ -1,4 +1,5 @@
1 1 {
  2 + "uid": "http://registry.pinf.org/cadorn.org/github/domplate/",
2 3 "name": "domplate",
3 4 "description": "JavaScript Template Library",
4 5 "keywords": [
@@ -13,10 +14,13 @@
13 14 "contributors": [
14 15 "Christoph Dorn (http://www.christophdorn.com/)"
15 16 ],
16   - "lib": "lib",
17 17 "license": [
18 18 "BSD"
19 19 ],
20   - "dependencies": [
  20 + "repositories": [
  21 + {
  22 + "type": "git",
  23 + "url": "git://github.com/cadorn/domplate.git"
  24 + }
21 25 ]
22 26 }

0 comments on commit 446966e

Please sign in to comment.
Something went wrong with that request. Please try again.