blob: 030294c17494e7ea77ee57ce11edf0d67d9fccf4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#/bin/bash
# xml Converter
find ./ \( -name "*-rs.xml" ! -iname "setup-rs.xml" \) \
-exec xmlstarlet ed -L -u //rootstrap/emulator/rpm/@arch -v "i686" {} \; \
-exec xmlstarlet ed -L -u //rootstrap/target/rpm/@arch -v "armv7l" {} \; \
-exec xmlstarlet ed -L -u //rootstrap/library_path -v "/usr/lib" {} \; \
-exec sed -i "s@<file>/usr/lib64/@<file>/usr/lib/@" {} \; \
-exec sed -i "s@<file>/lib64/@<file>/lib32/@" {} \; \
-exec sed -i "s@<include_path>/usr/lib64/@<include_path>/usr/lib32/@" {} \;
# rs-config
BASE_URL_POSTFIX_TARGET="/repos/standard/packages/"
BASE_URL_POSTFIX_EMULATOR="/repos/standard/packages/"
sed -i "s@BASE_URL_POSTFIX_TARGET=.*@BASE_URL_POSTFIX_TARGET=\"${BASE_URL_POSTFIX_TARGET}\"@" rs-config
sed -i "s@BASE_URL_POSTFIX_EMULATOR=.*@BASE_URL_POSTFIX_EMULATOR=\"${BASE_URL_POSTFIX_EMULATOR}\"@" rs-config
SNAPSHOT_URL_POSTFIX_EMULATOR="/repos/emulator/packages/"
SNAPSHOT_URL_POSTFIX_TARGET="/repos/standard/packages/"
sed -i "s@SNAPSHOT_URL_POSTFIX_EMULATOR=.*@SNAPSHOT_URL_POSTFIX_EMULATOR=\"${SNAPSHOT_URL_POSTFIX_EMULATOR}\"@" rs-config
sed -i "s@SNAPSHOT_URL_POSTFIX_TARGET=.*@SNAPSHOT_URL_POSTFIX_TARGET=\"${SNAPSHOT_URL_POSTFIX_TARGET}\"@" rs-config
|