Skip to content

Instantly share code, notes, and snippets.

@BelooS
Last active October 15, 2022 20:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BelooS/55ddb57a7978ab9a96743974522be39d to your computer and use it in GitHub Desktop.
Save BelooS/55ddb57a7978ab9a96743974522be39d to your computer and use it in GitHub Desktop.
#!/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