summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-11-12 15:07:14 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-11-12 15:07:14 +0000
commitf80b39932f75c02854e7b6ad67c15dc10f0705c0 (patch)
tree637efbffa529426f9c651d8cac617f0781f74201 /bin
parent5c9c7bff67d5ee7e708d2199c903098871b50360 (diff)
downloadATCD-f80b39932f75c02854e7b6ad67c15dc10f0705c0.tar.gz
use ../diffs if building ace+tao kit, so we no longer need a ../diffs symlink in TAO directory
Diffstat (limited to 'bin')
-rwxr-xr-xbin/make_release19
1 files changed, 16 insertions, 3 deletions
diff --git a/bin/make_release b/bin/make_release
index ec58fb6dc03..207825ea1cf 100755
--- a/bin/make_release
+++ b/bin/make_release
@@ -22,6 +22,7 @@ $long_usage=" -? option prints this message\n" .
" -r <release files> lists the files to be released\n" .
" -l <release lib files> list the files to put in the lib kit\n";
+
########
######## Configuration parameters.
########
@@ -43,6 +44,7 @@ $release_filter = '-name CVS -prune -name build -prune -o ! -name \'.\#*\' ' .
'! -name \'\#*\' ! -name \'*~\' ' .
'! -name \'*.MAK\' -print';
+
########
######## Process command line args.
########
@@ -122,15 +124,17 @@ chop ($now = `$date +"%a %b %d %T %Y"`);
########
-######## Setup signal handler.
+######## Setup signal handlers.
########
$SIG{'HUP'} = $SIG{'INT'} = $SIG{'QUIT'} = $SIG{'TERM'} = 'cleanup';
+
########
######## Defend against fascist umasks.
########
umask 022;
+
########
######## Main execution thread.
########
@@ -150,6 +154,7 @@ if ($update_versions && "$kit" ne 'ace+tao') {
}
&cleanup;
+
########
######## Clean up when done or on signal.
########
@@ -157,6 +162,7 @@ sub cleanup {
exit;
}
+
########
######## Check that the workspace is up-to-date, if releasing from
######## the official release directory.
@@ -197,6 +203,7 @@ sub check_workspace () {
0;
}
+
########
######## Retrieve version information from VERSION file(s).
########
@@ -276,6 +283,7 @@ sub get_versions () {
0;
}
+
########
######## Update VERSION file(s).
########
@@ -315,6 +323,7 @@ sub update_version_files () {
0;
}
+
########
######## Add ChangeLog entries, and make sure that they have proper
######## permissions.
@@ -349,6 +358,7 @@ sub update_changelog () {
0;
}
+
########
######## Tag the release.
########
@@ -365,6 +375,7 @@ sub tag () {
0;
}
+
########
######## If building a beta, create a diff from the previos version.
########
@@ -374,6 +385,7 @@ sub diff () {
my $previous_tag = "$KIT-$previous_version";
my $tag = "$KIT-$version";
+ my $diffs_dir = "$kit" eq 'ace+tao' ? '../diffs' : 'diffs';
#### cvs tag does not allow dots.
$previous_tag =~ tr/./_/;
@@ -385,13 +397,13 @@ sub diff () {
print "nice -15 $cvs -q rdiff -u -r $previous_tag -r $tag " .
"$module 2>/dev/null | " .
"nice -15 sed 's%ACE_wrappers-repository/%ACE_wrappers/%g' | " .
- "nice -15 $gzip -9 > diffs/$previous_tag-$tag.diff.gz &";
+ "nice -15 $gzip -9 > $diffs_dir/$previous_tag-$tag.diff.gz &";
} else {
system ("sleep 60; " .
"nice -15 $cvs -q rdiff -u -r $previous_tag -r $tag " .
"$module 2>/dev/null | " .
"nice -15 sed 's%ACE_wrappers-repository/%ACE_wrappers/%g' | " .
- "nice -15 $gzip -9 > diffs/$previous_tag-$tag.diff.gz &");
+ "nice -15 $gzip -9 > $diffs_dir/$previous_tag-$tag.diff.gz &");
}
}
@@ -399,6 +411,7 @@ sub diff () {
0;
}
+
########
######## Create the tar file(s) and move to their proper location.
########