Compare commits
2 Commits
2d48221e45
...
b301dbb6ce
Author | SHA1 | Date | |
---|---|---|---|
b301dbb6ce | |||
0ebac65049 |
6
init-workspace.sh
Normal file → Executable file
6
init-workspace.sh
Normal file → Executable file
@@ -15,7 +15,11 @@ elif [ -n "$ZSH_VERSION" ]; then
|
||||
command -v xargs > /dev/null && command -v readlink > /dev/null && export TGC_HAMMER_HOME=`dirname ${(%):-%x} | xargs readlink -f`
|
||||
else
|
||||
echo "ERROR: unknown shell"
|
||||
elif [ -f "source.sh" ]; then
|
||||
exit
|
||||
fi
|
||||
|
||||
|
||||
if [ -f "source.sh" ]; then
|
||||
echo "Directory already seems to be workspace."
|
||||
elif [ -f "init-workspace.sh" ]; then
|
||||
echo "Cannot create workspace in TGC-Hammer directly, use different directory."
|
||||
|
0
scripts/build_hammer.sh
Normal file → Executable file
0
scripts/build_hammer.sh
Normal file → Executable file
@@ -3,7 +3,7 @@ package com.minres.tgc.hammer
|
||||
import os.Path
|
||||
|
||||
object Global {
|
||||
def pathFromEnv(env: String): Option[Path] = sys.env.get("string").map { rawPath => Path(rawPath, os.pwd) }
|
||||
def pathFromEnv(env: String): Option[Path] = sys.env.get(env).map { rawPath => Path(rawPath, os.pwd) }
|
||||
lazy val HAMMER: Path = pathFromEnv("TGC_HAMMER_HOME").get
|
||||
lazy val WORKDIR: Path = pathFromEnv("TGC_HAMMER_WORKDIR").get
|
||||
lazy val TREENAIL: Path = HAMMER / "deps" / "treenail"
|
||||
|
Reference in New Issue
Block a user