Merge pull request #2216 from jwillemsen/jwi-cxxversionchecks
[ACE_TAO.git] / ACE / apps / JAWS / clients / WebSTONE / bin / move-filelist.pl
blob0155b83f972b455276cab0c393f58aa593763c43
1 #!/pkg/gnu/bin//perl5
4 push(@INC, "$wd/bin");
5 require('WebStone-common.pl');
7 $oldfilelist = "$wd/conf/filelist";
9 html_begin();
11 if ($filelist ne $oldfilelist) {
12 $backup = $oldfilelist . ".bak";
13 print CLIENT "<BODY>Backing up $oldfilelist to $backup";
14 rename($oldfilelist, $backup);
15 print CLIENT "<P>Copying $filelist to $oldfilelist";
16 link($filelist, $oldfilelist);
17 print CLIENT "<P>Done.";
19 else
21 print CLIENT "<STRONG>Can't move $filelist <P>to $filelist</STRONG>";
24 html_end();
26 # end