Changeset 12867
- Timestamp:
- Apr 17, 2007, 1:59:50 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/psconfig/psdist (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psconfig/psdist
r12151 r12867 57 57 shift; next 58 58 } 59 if ($ARGV[0] eq "autogen") { 60 $mkdist_mode = "autogen"; 61 shift; next 62 } 59 63 if ($ARGV[0] eq "tarball") { 60 64 $mkdist_mode = "tarball"; … … 177 181 # XXX probably need to force CVSROOT here 178 182 sub make_distribution { 179 # package distribution into a tarball183 # extract source tree and optionally package the distribution into a tarball 180 184 print STDERR "making distribution\n"; 181 185 if ($mkdist_mode eq "") { die "-dist mode is not set\n"; } … … 202 206 if ($mkdist_mode eq "cvs") { exit 0; } 203 207 208 # remove the CVS directories 204 209 &vsystem ("rm -r `find $distribution -name CVS`"); 205 210 if ($mkdist_mode eq "tree") { exit 0; } 206 211 212 # run autogen.sh, if present, to build a configure script 213 chdir $distribution; 214 for ($i = 0; $i < @cvsname; $i++) { 215 if (($module ne "") && ($module ne $cvsname[$i])) { next; } 216 ($do_tag, $do_build, $do_dist, $do_update) = $mode[$i] =~ m|(\S)(\S)(\S)(\S)|; 217 if ($do_dist eq "N") { next; } 218 219 if (! -e "$cvsname[$i]/autogen.sh") { next; } 220 chdir $cvsname[$i]; 221 222 vsystem ("./autogen.sh"); 223 if ($status) { die "error running autogen.sh"; } 224 225 vsystem ("make distclean"); 226 if ($status) { die "error running make distclean"; } 227 chdir ".."; 228 } 229 chdir ".."; 230 if ($mkdist_mode eq "autogen") { exit 0; } 231 232 # build a tarball from the full tree 207 233 if (! -e tarballs) { mkdir "tarballs"; } 208 234 &vsystem ("tar cvzf tarballs/$distribution.tgz $distribution");
Note:
See TracChangeset
for help on using the changeset viewer.
