]> gitweb.fluxo.info Git - simplepkg.git/commitdiff
fixed svn_source on generic model
authorrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>
Fri, 9 May 2008 00:44:40 +0000 (00:44 +0000)
committerrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>
Fri, 9 May 2008 00:44:40 +0000 (00:44 +0000)
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@510 04377dda-e619-0410-9926-eae83683ac58

trunk/doc/CHANGELOG
trunk/mkbuild/generic.mkSlackBuild

index 6b24ccf2602f775850593741ba22d3bf18cf0881..f9c5be0384506d9ad4d7e844eeb9c3a9a8a82d27 100644 (file)
@@ -5,6 +5,7 @@ simplepkg changelog
 ========
 
     - using Makefile instead of simplepkg.SlackBuild
+    - generic.mkSlackBuild: fix on svn_source
     - createpkg 1.1.12:
       - change indentation do two spaces;
       - add option --debug|-d to debug SlackBuilds scripts;
index 19fd8dd6f909e08011c69b06ea49eabb0d228881..133c8517fdd2e4b2e32a9a87699a70785cfaf451 100644 (file)
@@ -117,11 +117,17 @@ fi
 
 <svn_source> off
 # Get svn source code
-[ "`find "$SRC_DIR/" -name .svn`" != "" ] && SVN_ACTION="update" || SVN_ACTION="checkout"
 cd "$SRC_DIR"
-svn $SVN_ACTION [[DOWNLOAD FOLDER URL]] $PKG_SRC || exit $ERROR_VCS
-SND_DIR="`ls -l | awk '/^d/ { print $NF }'`"
-cd $SND_DIR
+SND_DIR="`basename [[DOWNLOAD FOLDER URL]]`"
+
+if [ "`find "$SRC_DIR/" -name .svn`" != "" ] && [ -d "$SRC_DIR/$SND_DIR" ]; then
+  cd $SND_DIR
+  svn update || exit $ERROR_VCS
+else
+  svn checkout [[DOWNLOAD FOLDER URL]] $SND_DIR || exit $ERROR_VCS
+  cd $SND_DIR
+fi
+
 PKG_VERSION="`svn info | awk '/Last Changed Rev:/ { print $4 }'`_svn"
 
 # Copy svn source