File: export-java-srcs.sh

package info (click to toggle)
libhtml5parser-java 1.4%2Br1.3.1-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid, trixie
  • size: 3,376 kB
  • sloc: java: 27,064; cpp: 158; xml: 141; sh: 136; ruby: 44; makefile: 3
file content (25 lines) | stat: -rw-r--r-- 519 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/usr/bin/env sh

SCRIPT_DIR=`dirname $0`
source $SCRIPT_DIR/util.sh
SCRIPT_DIR=`abs $SCRIPT_DIR`

SRCDIR=`abs $SCRIPT_DIR/../src/nu/validator/htmlparser/impl`

if [ $# -eq 1 ]
then
    MOZ_PARSER_PATH=`abs $1`
else
    echo
    echo "Usage: sh `basename $0` /path/to/mozilla-central/parser/html"
    echo "Note that relative paths will work just fine."
    echo
    exit 1
fi

SRCTARGET=$MOZ_PARSER_PATH/javasrc

rm -rf $SRCTARGET
mkdir $SRCTARGET
# Avoid copying the .svn directory:
cp -rv $SRCDIR/*.java $SRCTARGET