Skip to content

Commit

Permalink
在发行脚本中支持同步子树: xs-sdk-php
Browse files Browse the repository at this point in the history
  • Loading branch information
hightman committed Dec 16, 2014
1 parent d98dc0d commit 7ecade5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions dist-sh
Expand Up @@ -2,6 +2,11 @@
# $Id: $
# Distribute hook script, run by make automatically

# update subtree
echo "Updating substree xs-sdk-php ..."
git subtree push --prefix=sdk/php --squash local-sdk-php master > /dev/null 2>&1
(cd ../xs-sdk-php; git push)

# get fileinfo & version
fileinfo=
filetype=BETA
Expand All @@ -12,6 +17,7 @@ if test -z "$devel" ; then
if test $? -ne 0 ; then
exit -1
fi
(cd ../xs-sdk-php; git tag $fileinfo -a -m "Release: $fileinfo"; git push --tags)
fileinfo2=`echo $fileinfo | sed 's/[a-zA-Z]//g'`
if test "$fileinfo" = "$fileinfo2" ; then
filetype=RELEASE
Expand Down

0 comments on commit 7ecade5

Please sign in to comment.