File update.sh of Package coppwr

#!/bin/bash

# This file should be run from the local checkout of the repo
# It will collect the necessary sources for the cargo and npm builds from online sources
# Which are not available at build time
# Just update the version in the _service file then run this


# Ensure old versions of source are removed from repo
osc rm coppwr*.gz --force

# Clean up
osc clean
osc ca
# rm -rf coppwr*/

# Parse and collect cargo deps
osc service ra

# Ensure new version of source is added and old versions are removed from repo
osc add coppwr*.gz

# Clean up
osc clean
osc ca
# rm -rf coppwr*/

# Commit and rebuild
echo ''
echo When you are ready to rebuild just
echo osc commit
openSUSE Build Service is sponsored by