charm-designate-bind/rename.sh
Myles Penner a2e57445dc Add charmcraft 3 support
Summary of changes:
- Update the charmcraft.yaml file to use base and platforms, only
  allowing noble support.
- Update config to default to caracal.
- Update osci.yaml to use the charmcraft 3.x/beta
- Drop non-noble tests
- Update constraints file from -2024.1.txt to -noble.txt
- Removed setuptools pinning in wheelhouse.txt
- Add charmbuild to .zuul.yaml
- Add rename.sh to build process

Change-Id: Id4f27a1eea470397ddebee2db7be76bcf5f37466
2024-09-04 16:28:53 +00:00

14 lines
321 B
Bash
Executable File

#!/bin/bash
charm=$(grep "charm_build_name" osci.yaml | awk '{print $2}')
echo "renaming ${charm}_*.charm to ${charm}.charm"
echo -n "pwd: "
pwd
ls -al
echo "Removing bad downloaded charm maybe?"
if [[ -e "${charm}.charm" ]];
then
rm "${charm}.charm"
fi
echo "Renaming charm here."
mv ${charm}_*.charm ${charm}.charm