Skip to content

Commit

Permalink
rename to manual
Browse files Browse the repository at this point in the history
from AOKP
  • Loading branch information
remicks committed Jun 24, 2012
1 parent a7274c9 commit ba1af90
Showing 1 changed file with 36 additions and 36 deletions.
72 changes: 36 additions & 36 deletions add_kernel_manifest.sh → manual_add_kernel_manifest.sh
Original file line number Diff line number Diff line change
@@ -1,36 +1,36 @@
#!/bin/bash
# To be run from the root of the build tree.
# NOT FROM THE PLATFORM_MANIFEST DIRECTORY!!!
# -KhasMek

echo "adding kernel repos to your build tree"

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
# Cleanup
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

cp platform_manifest/kernel_manifest.xml .repo/local_manifest.xml
echo "syncing kernel repos"
tail -n +3 platform_manifest/kernel_manifest.xml | head -n -1 | cut -f2 -d '"' > .sync

. build/envsetup.sh

while read line ;do
reposync "$line"
echo "$line synced successfully"
done < .sync

#cleanup
rm .sync
#!/bin/bash
# To be run from the root of the build tree.
# NOT FROM THE PLATFORM_MANIFEST DIRECTORY!!!
# -KhasMek

echo "adding kernel repos to your build tree"

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
# Cleanup
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

cp platform_manifest/kernel_manifest.xml .repo/local_manifest.xml
echo "syncing kernel repos"
tail -n +3 platform_manifest/kernel_manifest.xml | head -n -1 | cut -f2 -d '"' > .sync

. build/envsetup.sh

while read line ;do
reposync "$line"
echo "$line synced successfully"
done < .sync

#cleanup
rm .sync

0 comments on commit ba1af90

Please sign in to comment.