rmdoctimes.ksh

来自「用于移动设备上的java虚拟机源代码」· KSH 代码 · 共 48 行

KSH
48
字号
#!/bin/ksh## @(#)rmdoctimes.ksh	1.3 02/07/25 @(#)## Copyright (c) 1999-2002 Sun Microsystems, Inc.  All rights reserved.# PROPRIETARY/CONFIDENTIAL# Use is subject to license terms.############ Remove the "Generated by javadoc" timestamps from a javadoc HTML# hierarchy, copying it in the process.  This is useful for comparing# javadoc hierarchies, since the timestamp lines generate spurious# differences.export PATH=/usr/binfunction usage {    print -r "usage: ${0##*/} fromdir todir" 1>&2    exit 1}if [ $# -ne 2 ] ; then    usagefiSRCDIR=$1DESTDIR=$2mkdir -p $DESTDIR# Copy the source hierarchy to the destination hierarchy, running sed# over each HTML file, creating directories as necessary and simply# copying the non-HTML files.(cd $SRCDIR ; find . -print) |    sed -e 1d -e 's,^\./,,' |	while read name ; do	    if [ -d $SRCDIR/$name ] ; then		mkdir -p $DESTDIR/$name	    elif [[ "$name" = *.html ]] ; then		sed '/^<!-- Generated by javadoc/d' \		    < $SRCDIR/$name > $DESTDIR/$name	    else		cp $SRCDIR/$name $DESTDIR/$name	    fi	done

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?