xref: /aosp_15_r20/external/doclava/moe.sh (revision feeed43c7c55e85932c547a3cefc559df175227c)
1*feeed43cSAndroid Build Coastguard Worker#!/bin/bash
2*feeed43cSAndroid Build Coastguard Worker
3*feeed43cSAndroid Build Coastguard Worker# Copyright (C) 2010 The Android Open Source Project
4*feeed43cSAndroid Build Coastguard Worker#
5*feeed43cSAndroid Build Coastguard Worker# Licensed under the Apache License, Version 2.0 (the "License");
6*feeed43cSAndroid Build Coastguard Worker# you may not use this file except in compliance with the License.
7*feeed43cSAndroid Build Coastguard Worker# You may obtain a copy of the License at
8*feeed43cSAndroid Build Coastguard Worker#
9*feeed43cSAndroid Build Coastguard Worker#      http://www.apache.org/licenses/LICENSE-2.0
10*feeed43cSAndroid Build Coastguard Worker#
11*feeed43cSAndroid Build Coastguard Worker# Unless required by applicable law or agreed to in writing, software
12*feeed43cSAndroid Build Coastguard Worker# distributed under the License is distributed on an "AS IS" BASIS,
13*feeed43cSAndroid Build Coastguard Worker# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14*feeed43cSAndroid Build Coastguard Worker# See the License for the specific language governing permissions and
15*feeed43cSAndroid Build Coastguard Worker# limitations under the License.
16*feeed43cSAndroid Build Coastguard Worker
17*feeed43cSAndroid Build Coastguard Worker# A simple script to import the latest code for Doclava and repackage it
18*feeed43cSAndroid Build Coastguard Worker# for the Android build system. Repackaging involves:
19*feeed43cSAndroid Build Coastguard Worker#   * Removing the lib/ directory- jsilver is built from source, and
20*feeed43cSAndroid Build Coastguard Worker#     ant is not used.
21*feeed43cSAndroid Build Coastguard Worker#   * Removing the ant DoclavaTask task (so we don't require ant to build)
22*feeed43cSAndroid Build Coastguard Worker
23*feeed43cSAndroid Build Coastguard Workerrm -fr res/ src/ && svn export --force https://doclava.googlecode.com/svn/trunk/ . && rm -fr lib/ samples/ src/com/google/doclava/DoclavaTask.java
24