Skip to content
Browse files

import into pinf

  • Loading branch information...
1 parent 3961369 commit 446966e22ddbc6249171ea4d8d22fc6545360df6 @cadorn committed Jan 29, 2010
Showing with 6 additions and 96 deletions.
  1. +0 −1 bin/activate
  2. +0 −50 bin/activate.bash
  3. +0 −38 bin/sea
  4. +0 −4 catalog.json
  5. +0 −1 narwhal.conf
  6. +6 −2 package.json
View
1 bin/activate
View
50 bin/activate.bash
@@ -1,50 +0,0 @@
-
-if [ -z "${BASH_ARGV[0]}" ]; then
-
- # as a last recourse, use the present working directory
- PACKAGE_HOME=$(pwd)
-
-else
-
- # get the absolute path of the executable
- SELF_PATH=$(
- cd -P -- "$(dirname -- "${BASH_ARGV[0]}")" \
- && pwd -P
- ) && SELF_PATH=$SELF_PATH/$(basename -- "${BASH_ARGV[0]}")
-
- # resolve symlinks
- while [ -h "$SELF_PATH" ]; do
- DIR=$(dirname -- "$SELF_PATH")
- SYM=$(readlink -- "$SELF_PATH")
- SELF_PATH=$(cd -- "$DIR" && cd -- $(dirname -- "$SYM") && pwd)/$(basename -- "$SYM")
- done
-
- PACKAGE_HOME=$(dirname -- "$(dirname -- "$SELF_PATH")")
-
-fi
-
-export PACKAGE_HOME
-
-# which -s narwhal doesn't work (os x 10.5, kriskowal)
-if [ -f "$PACKAGE_HOME"/bin/narwhal ]; then
- NARWHAL="$PACKAGE_HOME"/bin/narwhal
-elif [ -f "$PACKAGE_HOME"/packages/narwhal/bin/narwhal ]; then
- NARWHAL="$PACKAGE_HOME"/packages/narwhal/bin/narwhal
-else
- env narwhal -e '' >/dev/null 2>&1
- if [ "$?" -ne 127 ]; then
- NARWHAL=narwhal
- else
- echo "ERROR: narwhal is not in your PATH nor in $PACKAGE_HOME/bin." >&2
- fi
-fi
-
-if [ -f "$PACKAGE_HOME"/narwhal.conf ]; then
- source "$PACKAGE_HOME"/narwhal.conf
- export NARWHAL_DEFAULT_ENGINE
-fi
-
-if [ "$NARWHAL" ]; then
- export PATH="$("$NARWHAL" --package "$PACKAGE_HOME" --path :)"
-fi
-
View
38 bin/sea
@@ -1,38 +0,0 @@
-#!/bin/bash
-
-# this script is intended to work both in narwhal/bin and in
-# any project's bin dir; it's copied by tusk --init.
-
-# get the absolute path of the executable
-SELF_PATH=$(cd -P -- "$(dirname -- "$0")" && pwd -P) && SELF_PATH=$SELF_PATH/$(basename -- "$0")
-
-# resolve symlinks
-while [ -h "$SELF_PATH" ]; do
- DIR=$(dirname -- "$SELF_PATH")
- SYM=$(readlink -- "$SELF_PATH")
- SELF_PATH=$(cd -- "$DIR" && cd -- $(dirname -- "$SYM") && pwd)/$(basename -- "$SYM")
-done
-
-export PACKAGE_HOME=$(dirname -- "$(dirname -- "$SELF_PATH")")
-
-source "$PACKAGE_HOME/bin/activate.bash"
-
-export OLDSEA="$SEA"
-export SEA="$PACKAGE_HOME"
-export SEALVL="$((SEALVL + 1))"
-
-if [ "$#" -lt 1 ]; then
- echo PATH="$PATH" >&2
- echo SEA="$SEA" >&2
- echo SEALVL="$SEALVL" >&2
- export PS1="\e[00;35mTUSK[\e[00;33mdomplate\e[00;35m]:\e[m "
- cd $PACKAGE_HOME
- "$SHELL"
-else
- "$SHELL" -c "$*"
-fi
-if [ "$OLDSEA" != "" ]; then
- echo SEA="$OLDSEA" >&2
-fi
-echo SEALVL="$((SEALVL - 1))" >&2
-
View
4 catalog.json
@@ -1,4 +0,0 @@
-{
- "schema": "1.1",
- "name": "domplate"
-}
View
1 narwhal.conf
@@ -1 +0,0 @@
-NARWHAL_DEFAULT_ENGINE=rhino
View
8 package.json
@@ -1,4 +1,5 @@
{
+ "uid": "http://registry.pinf.org/cadorn.org/github/domplate/",
"name": "domplate",
"description": "JavaScript Template Library",
"keywords": [
@@ -13,10 +14,13 @@
"contributors": [
"Christoph Dorn (http://www.christophdorn.com/)"
],
- "lib": "lib",
"license": [
"BSD"
],
- "dependencies": [
+ "repositories": [
+ {
+ "type": "git",
+ "url": "git://github.com/cadorn/domplate.git"
+ }
]
}

0 comments on commit 446966e

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