diff options
Diffstat (limited to 'include')
-rwxr-xr-x | include/newpackage | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/include/newpackage b/include/newpackage deleted file mode 100755 index 889adfd..0000000 --- a/include/newpackage +++ /dev/null @@ -1,34 +0,0 @@ -#!/usr/bin/env zsh -## Set up a new package in the package_root -setopt err_exit -typeset package=$1 -typeset -i bare=1 - -while [[ $1 == --* ]] { - case $1 in - --not-bare) bare=0 - esac - shift -} - -[[ -r ~/.caretaker.conf ]] && source ~/.caretaker.conf -[[ -d $PKG_ROOT ]] || exit 1 - -cd $PKG_ROOT -if [[ -d $package ]] { - echo "Package $package already exists" >&2 - exit 2 -} -mkdir $package -cd $package -if ((bare)) { - git --bare init -} else { - git init - git config receive.denyCurrentBranch ignore -} - -cd ${PKG_DIR-~/packages} -mkdir $package -cd $package -git init |