Swap code/variable declaration to be pre-C99 compliant.
[xiph/unicode.git] / planarity / touch-version
blobd210f9a76291494d3141bca04f42dea6b053b2e5
1 #!/usr/bin/perl
3 if(open F,"version.h"){
4 $line=<F>;
5 close F;
7 if(open F,">version.h"){
9 print F "$line";
10 chomp($line=`date`);
11 print F "/* DO NOT EDIT: Automated versioning hack [$line] */\n";
12 close F;
14 }else{
15 print "touch-version: Failed to write new version.h\n";
18 }else{
19 print "touch-version: Failed to open version.h\n";