ports

recipes for building multiple softwares
git clone git://z3bra.org/ports
Log | Files | Refs

commit 1262bdd28326583380d935ca3a18d5bab4d5de1f
parent 5e28646232fe1eb9eda51cc8dfb21ab317a136bb
Author: z3bra <willyatmailoodotorg>
Date:   Tue Sep 22 22:31:18 2015

pkit: Fix git clone + cleanup

Diffstat:
 pkit/makeme | 12 +++++-------
 1 file changed, 5 insertions(+), 7 deletions(-)

diff --git a/pkit/makeme b/pkit/makeme @@ -3,17 +3,15 @@ version=0.0 source=git://z3bra.org/nope/pkit package() { - if cd $name-$version; then - git reset --hard - git pull - else - git clone $source $name-$version - cd $name-$version - fi + git clone $source $name-$version + cd $name-$version mkdir -p $WORKDIR/$name/bin mkdir -p $WORKDIR/$name/var/lib/pkit cp pkit $WORKDIR/$name/bin/pkit chmod 755 $WORKDIR/$name/bin/pkit + + cd .. + rm -rf $name-$version }