Skip to content

Instantly share code, notes, and snippets.

@mikhailnov
Created January 3, 2020 18:01
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 mikhailnov/b85f62d8f394af65d9cd55ed20a2605d to your computer and use it in GitHub Desktop.
Save mikhailnov/b85f62d8f394af65d9cd55ed20a2605d to your computer and use it in GitHub Desktop.
merge.sh
#!/bin/bash
set -xefu
# New packages
for i in \
createrepo_c \
dnf \
dnf-plugins-core \
dnf-plugins-extras \
dnf-URPM \
drpm \
libcomps \
libdnf \
libmodulemd \
librepo \
libsolv \
mock \
modulemd1 \
rosa-repos \
rpm-openmandriva-setup
do
cd ~/dev
git clone git@abf.io:import/${i}.git
pushd $i
git remote add rpm4 git@abf.io:rpm4/${i}.git
git pull rpm4 rosa2019.1
git push
git checkout -b rosa2019.1
git push --set-upstream origin rosa2019.1
popd
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment