2007-05-02 01:07:00 +00:00
|
|
|
/*
|
2007-09-07 23:14:00 +00:00
|
|
|
* $Id: lic.awk,v 1.4 2007/09/06 09:05:32 bacon Exp $
|
2007-05-02 01:07:00 +00:00
|
|
|
*
|
|
|
|
* {License}
|
|
|
|
*/
|
|
|
|
|
|
|
|
NR == 1 {
|
2007-09-07 23:14:00 +00:00
|
|
|
new_file = ARGV[1];
|
2007-05-02 01:07:00 +00:00
|
|
|
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;
|
|
|
|
}
|