瀏覽代碼

cray: indentation update

cray
Mitch Tishmack 8 年之前
父節點
當前提交
3c2921883b
共有 1 個檔案被更改,包括 30 行新增22 行删除
  1. +30
    -22
      dotprofile.org

+ 30
- 22
dotprofile.org 查看文件

@@ -394,26 +394,34 @@ export PATH
Cray specific stuff. Cray specific stuff.


#+BEGIN_SRC sh :tangle (tangle/file ".profile" (bound-and-true-p cray-p)) #+BEGIN_SRC sh :tangle (tangle/file ".profile" (bound-and-true-p cray-p))
stash()
{
maybe_git_repo "ssh://git@stash.us.cray.com:7999/${1}.git" || \
maybe_git_repo "ssh://git@stash.us.cray.com:7999/~${1}.git"
}
stash()
{
maybe_git_repo "ssh://git@stash.us.cray.com:7999/${1}.git" || \
maybe_git_repo "ssh://git@stash.us.cray.com:7999/~${1}.git"
}


haste()
{
set -e
URL=http://buildservice.us.cray.com:7777/
if [ ! -z "$@" ]; then
for x in "$@"; do
if [ -f "${x}" ]; then
curl -X POST -s -d "@${x}" ${URL}documents | awk -F '"' '{print "'$URL'"$4}';
else
echo "file ${x} does not exist to upload"
fi
done
else
cat /dev/stdin | curl -X POST -s -d "@-" ${URL}documents | awk -F '"' '{print "'$URL'"$4}';
fi
set +e
}
haste()
{
set -e
URL=http://buildservice.us.cray.com:7777/
if [ ! -z "$@" ]; then
for x in "$@"; do
if [ -f "${x}" ]; then
curl -X POST -s -d "@${x}" ${URL}documents | awk -F '"' '{print "'$URL'"$4}';
else
echo "file ${x} does not exist to upload"
fi
done
else
cat /dev/stdin | curl -X POST -s -d "@-" ${URL}documents | awk -F '"' '{print "'$URL'"$4}';
fi
set +e
}

stopit ()
{
killall -m '.*icrosoft.*'
sudo killall Python
sudo killall java
}
#+END_SRC

Loading…
取消
儲存