0
|
1 # !/bin/sh |
|
2 |
|
3 ## Run this command to build a new release tarball. This assumes that |
|
4 ## the CVSROOT environment variable has been set appropriately, and |
|
5 ## that autogen is available on your path. |
|
6 ## |
|
7 ## Next follow these instructions to perform the upload: |
|
8 ## 1. FTP to upload.sourceforge.net |
|
9 ## 2. Login as "anonymous" |
|
10 ## 3. Use your e-mail address as the password for this login |
|
11 ## 4. Set your client to binary mode ("bin" on command-line clients) |
|
12 ## 5. Change your current directory to /incoming ("cd /incoming") |
|
13 ## 6. Upload the desired files for the release ("put filename") |
|
14 ## |
|
15 ## Finally, log in to your source forge account and go to |
|
16 ## https://sourceforge.net/project/admin/qrs.php?package_id=2841&group_id=2888 |
|
17 |
|
18 # base name of the project |
|
19 PROJECT=octave-forge |
|
20 |
|
21 # use Ryyyy-mm-dd as the tag for revision yyyy.mm.dd |
|
22 TAG=R`date +%Y-%m-%d` |
|
23 ROOT=$PROJECT-`date +%Y.%m.%d` |
|
24 |
|
25 # tag the CVS tree with the revision number |
|
26 cvs rtag $TAG |
|
27 |
|
28 # extract the tree into a tagged directory |
|
29 cvs export -r $TAG $ROOT |
|
30 |
|
31 # generate configure script |
|
32 ( cd $ROOT ; ./autogen.h ) |
|
33 |
|
34 # build the tar ball |
|
35 tar czf $ROOT.tar.gz $ROOT |
|
36 |
|
37 # remove the tagged directory |
|
38 rm -rf $ROOT |
|
39 |