Created
June 24, 2013 23:40
-
-
Save tchollingsworth/5854722 to your computer and use it in GitHub Desktop.
add nodejs' ExclusiveArch to a directory full of fedpkg clones
This file contains 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
for dir in *; do | |
cd $dir | |
spec=$(fedpkg gimmespec) | |
git checkout master | |
sed -ri 's/BuildArch:(\s*)noarch/BuildArch:\1noarch\nExclusiveArch: %{nodejs_arches} noarch/' $spec | |
rpmdev-bumpspec -c'restrict to compatible arches' $spec | |
fedpkg ci -c | |
git checkout f19 | |
git merge master | |
git checkout f18 | |
sed -ri 's/BuildArch:(\s*)noarch/BuildArch:\1noarch\nExclusiveArch: %{ix86} x86_64 %{arm} noarch/' $spec | |
rpmdev-bumpspec -c'restrict to compatible arches' $spec | |
fedpkg ci -c | |
git checkout el6 | |
git merge f18 | |
git checkout master | |
cd .. | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment