*** empty log message ***

This commit is contained in:
hyung-hwan 2007-02-04 13:30:35 +00:00
parent 19adc99a8b
commit fc2a7c7e6b

View File

@ -16,6 +16,7 @@ finalize ()
if [ "$i" = "*" ]; then continue; fi if [ "$i" = "*" ]; then continue; fi
if [ "$i" = "CVS" ]; then continue; fi if [ "$i" = "CVS" ]; then continue; fi
if [ "$i" = "stx" ]; then continue; fi if [ "$i" = "stx" ]; then continue; fi
if [ "$i" = "web.out" ]; then continue; fi
if [ "$cur" = "" ] if [ "$cur" = "" ]
then then
@ -39,22 +40,23 @@ finalize ()
cur="$1"; dir="$2"; cur="$1"; dir="$2";
elif [ -f "$full" ] elif [ -f "$full" ]
then then
root="$BASE/ase-$VER" target="$SOURCE_ROOT/ase"
target="$root/ase"
mkdir -p "$target/$cur" mkdir -p "$target/$cur"
case "$full" in case "$i" in
*.h|*.c|*.cc|*.cpp|*.java|*.awk|*.in) *.h|*.c|*.cc|*.cpp|*.java|*.awk|*.in)
"$AWK" -f "$BASE/rel/lic.awk" -a "$target/$file" "$full" "$AWK" -f "$BASE/rel/lic.awk" -a "$target/$file" "$full"
;; ;;
*.man) *.man)
tmp=`echo $i | sed 's/.man$/.html/'` html=`echo $i | sed 's/.man$/.html/'`
"$AWK" -f "$BASE/rel/doc.awk" "$full" > "$root/$tmp" "$AWK" -f "$BASE/rel/doc.awk" "$full" > "$SOURCE_ROOT/html/$html"
"$AWK" -f "$BASE/rel/doc.awk" "$full" > "$DEPLOY_ROOT/$html"
cp -f "$full" "$target/$file" cp -f "$full" "$target/$file"
;; ;;
*.css) *.css)
cp -f "$full" "$target/$file" cp -f "$full" "$target/$file"
cp -f "$full" "$root/$file" cp -f "$full" "$SOURCE_ROOT/html/$i"
cp -f "$full" "$DEPLOY_ROOT/$i"
;; ;;
*) *)
cp -f "$full" "$target/$file" cp -f "$full" "$target/$file"
@ -67,18 +69,29 @@ finalize ()
if [ ! -f ../CVS/Tag ] if [ ! -f ../CVS/Tag ]
then then
echo "Error: ../CVS/Tag not found" echo "Error: ../CVS/Tag not found"
#exit 1; exit 1;
fi fi
AWK="$HOME/awk" AWK="$HOME/awk"
VER=`cat ../CVS/Tag | cut -c6- | tr '[A-Z]' '[a-z]' | sed 's/_/./g` VERSION=`cat ../CVS/Tag | cut -c6- | tr '[A-Z]' '[a-z]' | sed 's/_/./g`
VER="0.1.0"
cwd=`pwd` cwd=`pwd`
cd ".." cd ".."
BASE=`pwd` BASE=`pwd`
DEPLOY_ROOT="$BASE/web.out"
SOURCE_ROOT="$DEPLOY_ROOT/ase-$VERSION"
rm -rf "$DEPLOY_ROOT"
mkdir -p "$DEPLOY_ROOT"
mkdir -p "$SOURCE_ROOT"
mkdir -p "$SOURCE_ROOT/html"
finalize "" "" finalize "" ""
cd "$DEPLOY_ROOT"
tar -cvf "ase-$VERSION.tar" "ase-$VERSION"
gzip "ase-$VERSION.tar"
rm -rf "ase-$VERSION"
exit 0 exit 0