22 lines
464 B
Awk
22 lines
464 B
Awk
/*
|
|
* $Id: lic.awk,v 1.2 2007-02-04 12:37:45 bacon Exp $
|
|
*
|
|
* {License}
|
|
*/
|
|
|
|
NR == 1 {
|
|
new_file = ARGV[0];
|
|
printf "" > new_file; /* clear the file */
|
|
}
|
|
|
|
/^ \* \{License\}/ {
|
|
print " * Copyright (c) 2007, Hyung-Hwan Chung." >> new_file;
|
|
print " * All rights reserved." >> new_file;
|
|
print " * Licensed under the BSD license: " >> new_file;
|
|
print " * http://www.abiyo.net/ase/license.html" >> new_file;
|
|
}
|
|
|
|
!/^ \* \{License\}/ {
|
|
print $0 >> new_file;
|
|
}
|