Add makerules to turn client.html and broadway.js into #include files
This commit is contained in:
		
							
								
								
									
										15
									
								
								gdk/broadway/toarray.pl
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										15
									
								
								gdk/broadway/toarray.pl
									
									
									
									
									
										Executable file
									
								
							| @ -0,0 +1,15 @@ | ||||
| #!/usr/bin/perl -w | ||||
|  | ||||
| my $FILENAME = $ARGV[0]; | ||||
|  | ||||
| open FILE, $FILENAME or die "Cannot open $FILENAME"; | ||||
|  | ||||
| my $ARRAYNAME = $ARGV[1]; | ||||
| print "static const char $ARRAYNAME\[\] ="; | ||||
| while (<FILE>) { | ||||
|     s@\\@\\\\@g; | ||||
|     s@"@\\"@g; | ||||
|     chomp ($_); | ||||
|     print "\n  \"$_\\n\""; | ||||
| } | ||||
| print ";\n"; | ||||
		Reference in New Issue
	
	Block a user
	 Alexander Larsson
					Alexander Larsson