diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2009-09-10 08:36:24 +0200 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2009-09-10 08:36:41 +0200 |
commit | c597ca15e1d53b2e5800b0704d658233208b66cb (patch) | |
tree | 193cc9346734834a9c0ce315c3721860d0fa6967 /include/newpackage | |
parent | c268a5f4864c920e2517d44d4e36b5cc93192ead (diff) |
Removed the newpackage script, it's quite useless
Diffstat (limited to 'include/newpackage')
-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 |