[rkward-cvs] SF.net SVN: rkward:[2925] trunk/rkward/scripts/makeosc_upload.sh

tfry at users.sourceforge.net tfry at users.sourceforge.net
Thu Jul 1 20:57:54 UTC 2010


Revision: 2925
          http://rkward.svn.sourceforge.net/rkward/?rev=2925&view=rev
Author:   tfry
Date:     2010-07-01 20:57:53 +0000 (Thu, 01 Jul 2010)

Log Message:
-----------
Add script for osc upload

Added Paths:
-----------
    trunk/rkward/scripts/makeosc_upload.sh

Added: trunk/rkward/scripts/makeosc_upload.sh
===================================================================
--- trunk/rkward/scripts/makeosc_upload.sh	                        (rev 0)
+++ trunk/rkward/scripts/makeosc_upload.sh	2010-07-01 20:57:53 UTC (rev 2925)
@@ -0,0 +1,30 @@
+#!/bin/bash
+
+## begin: These may need adjusting!
+OSCREPOS="home:tfry-suse:rkward-devel"
+## end: These may need adjusting!
+
+VERSION=${1}
+cd `dirname $0`/..
+BASEDIR=`pwd`
+OSCTEMPDIR=${BASEDIR}/osctemp
+rm -rf ${OSCTEMPDIR}
+mkdir ${OSCTEMPDIR}
+
+# check out repository state
+cd ${OSCTEMPDIR}
+osc co ${OSCREPOS}
+cd ${OSCREPOS}/rkward
+osc remove *.tar.gz
+
+# create source snapshot
+cd ${BASEDIR}
+${BASEDIR}/scripts/makedist.sh $VERSION
+OSCVERSION=`echo -n ${VERSION} | sed -e 's/-/_/g'`
+cp ${BASEDIR}/rkward-$VERSION.tar.gz $OSCTEMPDIR/${OSCREPOS}/rkward/rkward-$OSCVERSION.tar.gz
+osc add $OSCTEMPDIR/${OSCREPOS}/rkward/rkward-$OSCVERSION.tar.gz
+
+cd $OSCTEMPDIR/${OSCREPOS}/rkward/
+sed -i rkward.spec -e "s/Version:.*$/Version:        ${OSCVERSION}/"
+osc commit -m "New development snapshot: ${VERSION}"
+


Property changes on: trunk/rkward/scripts/makeosc_upload.sh
___________________________________________________________________
Added: svn:executable
   + *


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the rkward-tracker mailing list