From 6adb58eb9aa750dd12a12b969aff4768c368b28b Mon Sep 17 00:00:00 2001 From: Gwenhael Le Moine Date: Wed, 17 Nov 2010 13:36:35 +0700 Subject: [PATCH] simplify --- d/go/go.SlackBuild | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/d/go/go.SlackBuild b/d/go/go.SlackBuild index 0e4f5a08..9f9562a2 100755 --- a/d/go/go.SlackBuild +++ b/d/go/go.SlackBuild @@ -25,14 +25,13 @@ mkdir -p $PKG cd $TMP if [ ! -e $REPOSITORY ] ; then mkdir -p $(dirname $REPOSITORY) - cd $(dirname $REPOSITORY) - hg clone -r release https://go.googlecode.com/hg/ $PRGNAM + hg clone -r release https://go.googlecode.com/hg/ $(dirname $REPOSITORY)/$PRGNAM +else + ( cd $REPOSITORY + hg pull -u + ) fi -( cd $REPOSITORY - hg pull -u -) - mkdir -p $PKG$PREFIX/libexec/ $PREFIX/libexec/ cp -R $REPOSITORY $PREFIX/libexec/$PRGNAM ( cd $PREFIX/libexec/$PRGNAM