[Kst] branches/work/kst/portto4/kst/misc

Peter Kümmel syntheticpp at gmx.net
Thu Feb 10 16:14:27 CET 2011


SVN commit 1219725 by kuemmel:

cleanup linux release scripts

 M  +19 -7     linux-release.sh  
 D             release-sources.sh  


--- branches/work/kst/portto4/kst/misc/linux-release.sh #1219724:1219725
@@ -1,20 +1,32 @@
 #!/bin/sh
 
+# Usage
+#   linux-release <package name> optional: <existing sourceforge dir>  <sourceforge username> <skip-build>
+# e.g:
+#   build  only     : linux-release.sh Kst-2.0.3-beta2 
+#   build and upload: linux-release.sh Kst-2.0.3-beta2 "Kst\\ 2.0.3" username
+#   upload only     : linux-release.sh Kst-2.0.3-beta2 "Kst\\ 2.0.3" username skip
+#   
 
 kst_install_prefix=$1
 
+if [ -z ${4} ]
+then
 cmake ../kst/cmake -Dkst_release=1 -Dkst_merge_files=1 -Dkst_install_prefix=$kst_install_prefix
-
 make -j4
 make package
 make package_source
+fi
 
-if [ ! -z ${2} ]
+
+if [ ! -z ${3} ]
 then
 	# spaces in $2 "Kst\\ 2.0.3"
-	scp ${kst_install_prefix}.sh             syntheticpp,kst at frs.sourceforge.net:"/home/frs/project/k/ks/kst/$2"
-	scp ${kst_install_prefix}.tar.gz         syntheticpp,kst at frs.sourceforge.net:"/home/frs/project/k/ks/kst/$2"
-	scp ${kst_install_prefix}-sources.tar.gz syntheticpp,kst at frs.sourceforge.net:"/home/frs/project/k/ks/kst/$2"
-	scp ${kst_install_prefix}-sources.zip    syntheticpp,kst at frs.sourceforge.net:"/home/frs/project/k/ks/kst/$2"
+	scp \
+	${kst_install_prefix}.sh \
+	${kst_install_prefix}.tar.gz \
+	${kst_install_prefix}-sources.tar.gz \
+	${kst_install_prefix}-sources.tar.bz2 \
+	${kst_install_prefix}-sources.zip \
+	${3},kst at frs.sourceforge.net:"/home/frs/project/k/ks/kst/${2}"
 fi
-


More information about the Kst mailing list