*** empty log message ***

This commit is contained in:
hyung-hwan 2007-02-03 11:54:02 +00:00
parent 72a4fe275c
commit f66d598836
3 changed files with 111 additions and 0 deletions

26
ase/rel/doc.awk Normal file
View File

@ -0,0 +1,26 @@
BEGIN {
header = 1;
}
header && /^\.[[:alpha:]]+[[:space:]]/ {
if ($1 == ".title")
{
print "TITLE: " $2;
}
}
header && !/^\.[[:alpha:]]+[[:space:]]/ { header = 0; }
!header {
if (/^== [^=]+ ==$/)
{
print "H2" $0;
}
else if (/^=== [^=]+ ===$/)
{
print "H3" $0;
}
}

23
ase/rel/lic.awk Normal file
View File

@ -0,0 +1,23 @@
/*
* $Id: lic.awk,v 1.1 2007-02-03 11:54:02 bacon Exp $
*
* {License}
*/
NR == 1 {
new_file = ARGV[0];
printf "" > new_file; /* clear the file */
}
/^ \* \{License\}/ {
print " * Copyright (c) 2007, Hyung-Hwan Chung (brian@abiyo.net)." >> new_file;
print " * All rights reserved." >> new_file;
print " * Licensed under the BSD license: " >> new_file;
print " * http://www.abiyo.net/ase/license.txt" >> new_file;
}
!/^ \* \{License\}/ {
print $0 >> new_file;
}

62
ase/rel/rel.sh Executable file
View File

@ -0,0 +1,62 @@
#!/bin/sh
finalize ()
{
base="$1"; cur="$2"; dir="$3";
if [ "$dir" = "" ]
then
cd "$base"
else
cd "$base/$dir"
fi
for i in *
do
if [ "$i" = "*" ]; then continue; fi
if [ "$i" = "CVS" ]; then continue; fi
if [ "$cur" = "" ]
then
file="$i"
full="$base/$i"
else
file="$cur/$i"
full="$base/$cur/$i"
fi
if [ -d "$full" ]
then
if [ "$dir" = "" ]
then
new="$i"
else
new="$dir/$i"
fi
finalize "$base" "$file" "$new"
base="$1"; cur="$2"; dir="$3";
elif [ -f "$full" ]
then
target="$base/xxx"
mkdir -p "$target/$cur"
case "$full" in
*.h|*.c|*.cc|*.cpp|*.java|*.awk|*.in)
"$base/test/awk/awk" -f "$base/doc/lic.awk" -a "$target/$file" "$full"
;;
*)
cp -f "$full" "$target/$file"
;;
esac
#echo "$full,$base,$file: $base/xxx/$file [OK]"
fi
done
}
cwd=`pwd`
cd ".."
base=`pwd`
finalize "$base" "" ""
exit 0