Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Commit

Permalink
Moving user.js to /system/b2g/defaults/pref/user.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabrice Desré committed Sep 26, 2012
1 parent 3c489bd commit 4d61727
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Android.mk
Expand Up @@ -146,8 +146,8 @@ ifeq ($(PRESERVE_B2G_WEBAPPS), 1)
mv $(TARGET_OUT)/b2g/webapps $(TARGET_OUT)
endif

# We need to keep b2g/profile
mv $(TARGET_OUT)/b2g/profile $(TARGET_OUT)
# We need to keep user.js around
mv $(TARGET_OUT)/b2g/user.js $(TARGET_OUT)

rm -rf $(TARGET_OUT)/b2g
mkdir -p $(TARGET_OUT)/b2g
Expand All @@ -156,8 +156,10 @@ ifeq ($(PRESERVE_B2G_WEBAPPS), 1)
mv $(TARGET_OUT)/webapps $(TARGET_OUT)/b2g
endif

mv $(TARGET_OUT)/profile $(TARGET_OUT)/b2g

mkdir -p $(TARGET_OUT)/b2g/defaults/pref
# rename user_pref() to pref() in user.js
sed s/user_pref\(/pref\(/ $(TARGET_OUT)/user.js > $(TARGET_OUT)/b2g/defaults/pref/user.js
rm $(TARGET_OUT)/user.js
cd $(TARGET_OUT) && tar xvfz $(abspath $<)

# Target to create Gecko update package (MAR)
Expand Down

0 comments on commit 4d61727

Please sign in to comment.