- Timestamp:
- 2002-03-06T12:07:22+13:00 (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/bin/script/create_distributions.pl
r3027 r3053 759 759 close VERSION; 760 760 761 # edit fnord.cpp762 # my $fnord_file = &util::filename_cat ($tmpdir, "gsdl", "src", "w32server", "fnord.cpp");763 # open (FNORD, $fnord_file) || die;764 #$found = 0; $line = ""; $file = "";765 # while (defined ($line = <FNORD>)) {766 # if ($line =~ s/(\#define VERSIONSTRING \"version)x\.xx(\")/$1$version_num$2/) {767 #$found ++;768 #}769 #$file .= $line;770 #}771 # close FNORD;772 #if (!$found) {773 # die "error while editing $fnord_file\n";774 #}775 776 # open (FNORD, ">$fnord_file") || die;777 # print FNORD$file;778 # close FNORD;761 # edit gsdlconf.h 762 my $gsdlconf_file = &util::filename_cat ($tmpdir, "gsdl", "lib", "gsdlconf.h"); 763 open (GSDLCONF, $gsdlconf_file) || die; 764 $found = 0; $line = ""; $file = ""; 765 while (defined ($line = <GSDLCONF>)) { 766 if ($line =~ s/(\#define GSDL_VERSION \")x\.xx(\")/$1$version_num$2/) { 767 $found ++; 768 } 769 $file .= $line; 770 } 771 close GSDLCONF; 772 if (!$found) { 773 die "error while editing $gsdlconf_file\n"; 774 } 775 776 open (GSDLCONF, ">$gsdlconf_file") || die; 777 print GSDLCONF $file; 778 close GSDLCONF; 779 779 } 780 780
Note:
See TracChangeset
for help on using the changeset viewer.