Last active
October 15, 2022 20:25
-
-
Save BelooS/55ddb57a7978ab9a96743974522be39d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
BUILD_TYPE=$1 | |
usage() { | |
echo "Copy app manifest to wiki directory" | |
echo "Usage:" | |
echo " update_wiki_manifests.sh {BUILD_TYPE}" | |
echo " Example: update_wiki_manifests.sh debug" | |
} | |
update_wiki_manifests() { | |
echo "Updating $BUILD_TYPE manifests for all apps..." | |
manifest_dir="$MANIFESTS_WORKSPACE_DIR/$BUILD_TYPE" | |
for dir in "$manifest_dir"/*; do | |
basename=$(basename "$dir") | |
mkdir -p "$WIKI_DIR/manifests/$BUILD_TYPE/$basename" | |
cp "$dir/AndroidManifest-sorted.xml" "$WIKI_DIR/manifests/$BUILD_TYPE/$basename/." | |
done | |
} | |
usage | |
update_wiki_manifests |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment