diff options
Diffstat (limited to 'bin')
-rw-r--r-- | bin/update-release-info.py | 7 | ||||
-rwxr-xr-x | bin/upload-release-files.sh | 27 |
2 files changed, 30 insertions, 4 deletions
diff --git a/bin/update-release-info.py b/bin/update-release-info.py index 15a35b7..4493911 100644 --- a/bin/update-release-info.py +++ b/bin/update-release-info.py @@ -108,14 +108,17 @@ if DEBUG: print 'release date', release_date if mode == 'develop' and version_tuple[3] != 'alpha': version_tuple == version_tuple[:3] + ('alpha', 0) -if version_tuple[3] != 'final': +if len(version_tuple) > 3 and version_tuple[3] != 'final': if mode == 'develop': version_tuple = version_tuple[:4] + ('yyyymmdd',) else: yyyy,mm,dd,_,_,_ = release_date version_tuple = version_tuple[:4] + ((yyyy*100 + mm)*100 + dd,) version_string = '.'.join(map(str, version_tuple)) -version_type = version_tuple[3] +if len(version_tuple) > 3: + version_type = version_tuple[3] +else: + version_type = 'final' if DEBUG: print 'version string', version_string if version_type not in ['alpha', 'beta', 'candidate', 'final']: diff --git a/bin/upload-release-files.sh b/bin/upload-release-files.sh index 17eb71b..2ba10cc 100755 --- a/bin/upload-release-files.sh +++ b/bin/upload-release-files.sh @@ -44,8 +44,31 @@ $RSYNC $RSYNCOPTS \ $SF_USER@$SF_MACHINE:$SF_TOPDIR/scons-src/$VERSION/ -# Doc doesn't go to SF, but to scons.org. +# +# scons.org stuff: +# +# Doc: copy the doc tgz over; we'll unpack later $RSYNC $RSYNCOPTS \ scons-doc-$VERSION.tar.gz \ scons@scons.org:public_html/production/doc/$VERSION/ - +# Copy the changelog +$RSYNC $RSYNCOPTS \ + CHANGES.txt \ + scons@scons.org:public_html/production/ +# Note that Announce.txt gets copied over to RELEASE.txt. +# This should be fixed at some point. +$RSYNC $RSYNCOPTS \ + Announce.txt \ + scons@scons.org:public_html/production/RELEASE.txt +# Unpack the doc and repoint doc symlinks: +ssh scons@scons.org " + cd public_html/production/doc + cd $VERSION + tar xvf scons-doc-$VERSION.tar.gz + cd .. + rm latest; ln -s $VERSION latest + rm production; ln -s $VERSION production +" +echo '*****' +echo '***** Now manually update index.php, includes/versions.php and news-raw.xhtml on scons.org.' +echo '*****' |