[Freeswitch-svn] [commit] r12847 - freeswitch/trunk/scripts
FreeSWITCH SVN
mikej at freeswitch.org
Mon Mar 30 15:17:26 PDT 2009
Author: mikej
Date: Mon Mar 30 17:17:26 2009
New Revision: 12847
Log:
add tag scripts
Added:
freeswitch/trunk/scripts/tagscript-test.sh (contents, props changed)
freeswitch/trunk/scripts/tagscript.sh (contents, props changed)
Added: freeswitch/trunk/scripts/tagscript-test.sh
==============================================================================
--- (empty file)
+++ freeswitch/trunk/scripts/tagscript-test.sh Mon Mar 30 17:17:26 2009
@@ -0,0 +1,18 @@
+NEW_MICRO=4pre3
+rm -rf freeswitch-1.0.$(NEW_MICRO)
+svn co http://svn.freeswitch.org/svn/freeswitch/trunk freeswitch-1.0.$(NEW_MICRO)
+cd freeswitch-1.0.$(NEW_MICRO)
+SWITCH_VERSION_MAJOR=`grep SWITCH_VERSION_MAJOR configure.in | sed "s|.*\[||" | sed "s|\].*||"`
+SWITCH_VERSION_MINOR=`grep SWITCH_VERSION_MINOR configure.in | sed "s|.*\[||" | sed "s|\].*||"`
+SWITCH_VERSION_MICRO=`grep SWITCH_VERSION_MICRO configure.in | sed "s|.*\[||" | sed "s|\].*||"`
+FREESWITCH_VERSION=$((`svnversion .` + 1))
+cat configure.in | sed "s|$SWITCH_VERSION_MICRO|$NEW_MICRO|" | sed "s|svn-revision-here|$FREESWITCH_VERSION|" | sed "s|#AC_SUBST(SWITCH_VERSION_REVISION|AC_SUBST(SWITCH_VERSION_REVISION|" > configure.tmp
+cp -f configure.tmp configure.in
+rm -f configure.tmp
+./bootstrap.sh
+rm -f docs/AUTHORS
+rm -f docs/COPYING
+rm -f docs/ChangeLog
+cd ..
+tar -czvf freeswitch-$SWITCH_VERSION_MAJOR.$SWITCH_VERSION_MINOR.$NEW_MICRO.tar.gz freeswitch-$SWITCH_VERSION_MAJOR.$SWITCH_VERSION_MINOR.$NEW_MICRO/
+tar -cjvf freeswitch-$SWITCH_VERSION_MAJOR.$SWITCH_VERSION_MINOR.$NEW_MICRO.tar.bz2 freeswitch-$SWITCH_VERSION_MAJOR.$SWITCH_VERSION_MINOR.$NEW_MICRO/
Added: freeswitch/trunk/scripts/tagscript.sh
==============================================================================
--- (empty file)
+++ freeswitch/trunk/scripts/tagscript.sh Mon Mar 30 17:17:26 2009
@@ -0,0 +1,34 @@
+NEW_MICRO=4
+rm -rf freeswitch.tag.working
+svn co http://svn.freeswitch.org/svn/freeswitch/trunk freeswitch.tag.working
+cd freeswitch.tag.working
+SWITCH_VERSION_MAJOR=`grep SWITCH_VERSION_MAJOR configure.in | sed "s|.*\[||" | sed "s|\].*||"`
+SWITCH_VERSION_MINOR=`grep SWITCH_VERSION_MINOR configure.in | sed "s|.*\[||" | sed "s|\].*||"`
+SWITCH_VERSION_MICRO=`grep SWITCH_VERSION_MICRO configure.in | sed "s|.*\[||" | sed "s|\].*||"`
+FREESWITCH_VERSION=$((`svnversion .` + 1))
+cat configure.in | sed "s|$SWITCH_VERSION_MICRO|$NEW_MICRO|" | sed "s|svn-revision-here|$FREESWITCH_VERSION|" | sed "s|#AC_SUBST(SWITCH_VERSION_REVISION|AC_SUBST(SWITCH_VERSION_REVISION|" > configure.tmp
+cp -f configure.tmp configure.in
+rm -f configure.tmp
+cd libs/openzap/
+OPENZAP_VERSION=$((`svnversion .` + 1))
+svn copy . http://svn.openzap.org:81/svn/openzap/tags/v$OPENZAP_VERSION -m"tag"
+cd ../..
+echo 'cat $1 | sed "s|openzap/trunk|openzap/tags/v'$OPENZAP_VERSION'|" > svn-temp-working' > externaleditor.sh
+echo 'cp -f svn-temp-working $1' >> externaleditor.sh
+echo 'rm -f svn-temp-working' >> externaleditor.sh
+chmod a+x externaleditor.sh
+svn propedit svn:externals . --editor-cmd=./externaleditor.sh
+svn copy . http://svn.freeswitch.org/svn/freeswitch/tags/$SWITCH_VERSION_MAJOR.$SWITCH_VERSION_MINOR.$NEW_MICRO -m"tag"
+cd ..
+rm -rf freeswitch.tag.working
+svn co http://svn.freeswitch.org/svn/freeswitch/tags/$SWITCH_VERSION_MAJOR.$SWITCH_VERSION_MINOR.$NEW_MICRO freeswitch-$SWITCH_VERSION_MAJOR.$SWITCH_VERSION_MINOR.$NEW_MICRO
+cd freeswitch-$SWITCH_VERSION_MAJOR.$SWITCH_VERSION_MINOR.$NEW_MICRO
+./bootstrap.sh
+rm -rf `find . -name .svn`
+rm -f bootstrap.sh
+rm -f docs/AUTHORS
+rm -f docs/COPYING
+rm -f docs/ChangeLog
+cd ..
+tar -czvf freeswitch-$SWITCH_VERSION_MAJOR.$SWITCH_VERSION_MINOR.$NEW_MICRO.tar.gz freeswitch-$SWITCH_VERSION_MAJOR.$SWITCH_VERSION_MINOR.$NEW_MICRO/
+tar -cjvf freeswitch-$SWITCH_VERSION_MAJOR.$SWITCH_VERSION_MINOR.$NEW_MICRO.tar.bz2 freeswitch-$SWITCH_VERSION_MAJOR.$SWITCH_VERSION_MINOR.$NEW_MICRO/
More information about the Freeswitch-svn
mailing list