Created
May 31, 2012 16:31
-
-
Save KhasMek/2844595 to your computer and use it in GitHub Desktop.
wtf
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
if [ -f .repo/local_manifest.xml ]; then | |
echo "local manifest already present." | |
echo "merging with kernel manifest for safety." | |
cat platform_manifest/kernel_manifest.xml | while read line | |
do | |
kernel=`grep "$line" .repo/local_manifest.xml` | |
if [ -z "$kernel" ]; then | |
echo " $line" >> .repo/local_manifest.xml | |
fi | |
done | |
# Fix the formatting | |
grep -Ev "^</manifest>" .repo/local_manifest.xml > .repo/local_manifest.new | |
echo "</manifest>" >> .repo/local_manifest.new | |
mv .repo/local_manifest.new .repo/local_manifest.xml | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment