-
-
Notifications
You must be signed in to change notification settings - Fork 263
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* test version fix * split up files for easier updating * added git lookups * fix git sha lookup
- Loading branch information
Showing
3 changed files
with
63 additions
and
82 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
# update openauto and aasdk | ||
RUN bash -c " | ||
rm -f /usr/local/bin/autoapp | ||
wget -O /usr/local/bin/autoapp https://github.com/opencardev/prebuilts/raw/master/openauto/autoapp | ||
chmod 777 /usr/local/bin/autoapp | ||
rm -f /usr/local/bin/autoapp.md5 | ||
wget -O /usr/local/bin/autoapp.md5 https://github.com/opencardev/prebuilts/raw/master/openauto/autoapp.md5 | ||
chmod 644 /usr/local/bin/autoapp.md5 | ||
rm -f /usr/local/bin/autoapp_helper | ||
wget -O /usr/local/bin/autoapp_helper https://github.com/opencardev/prebuilts/raw/master/openauto/autoapp_helper | ||
chmod 777 /usr/local/bin/autoapp_helper | ||
rm -f /usr/local/bin/autoapp_helper.md5 | ||
wget -O /usr/local/bin/autoapp_helper.md5 https://github.com/opencardev/prebuilts/raw/master/openauto/autoapp_helper.md5 | ||
chmod 644 /usr/local/bin/autoapp_helper.md5 | ||
rm -f /usr/local/bin/btservice | ||
wget -O /usr/local/bin/btservice https://github.com/opencardev/prebuilts/raw/master/openauto/btservice | ||
chmod 777 /usr/local/bin/btservice | ||
rm -f /usr/local/bin/btservice.md5 | ||
wget -O /usr/local/bin/btservice.md5 https://github.com/opencardev/prebuilts/raw/master/openauto/btservice.md5 | ||
chmod 644 /usr/local/bin/btservice.md5 | ||
rm -f /usr/local/lib/libaasdk.so | ||
wget -O /usr/local/lib/libaasdk.so https://github.com/opencardev/prebuilts/raw/master/openauto/libaasdk.so | ||
chmod 666 /usr/local/lib/libaasdk.so | ||
rm -f /usr/local/lib/libaasdk.so.md5 | ||
wget -O /usr/local/lib/libaasdk.so.md5 https://github.com/opencardev/prebuilts/raw/master/openauto/libaasdk.so.md5 | ||
chmod 644 /usr/local/lib/libaasdk.so.md5 | ||
rm -f /usr/local/lib/libaasdk_proto.so | ||
wget -O /usr/local/lib/libaasdk_proto.so https://github.com/opencardev/prebuilts/raw/master/openauto/libaasdk_proto.so | ||
chmod 666 /usr/local/lib/libaasdk_proto.so | ||
rm -f /usr/local/lib/libaasdk_proto.so.md5 | ||
wget -O /usr/local/lib/libaasdk_proto.so.md5 https://github.com/opencardev/prebuilts/raw/master/openauto/libaasdk_proto.so.md5 | ||
chmod 644 /usr/local/lib/libaasdk_proto.so.md5 | ||
rm -f /usr/local/bin/crankshaft | ||
wget -O /usr/local/bin/crankshaft https://github.com/opencardev/prebuilts/raw/master/csmt/crankshaft | ||
chmod 777 /usr/local/bin/crankshaft | ||
rm -f /usr/local/bin/crankshaft.md5 | ||
wget -O /usr/local/bin/crankshaft.md5 https://github.com/opencardev/prebuilts/raw/master/csmt/crankshaft.md5 | ||
chmod 644 /usr/local/bin/crankshaft.md5 | ||
ldconfig | ||
" | ||
|
||
HOST bash -c " | ||
cat > crankshaft.date << EOF | ||
$(date '+%Y-%m-%d') | ||
EOF | ||
|
||
cat > crankshaft.build << EOF | ||
$(git rev-parse --short) | ||
EOF | ||
|
||
cat > crankshaft.branch << EOF | ||
$(git rev-parse --abbrev-ref HEAD) | ||
EOF | ||
" | ||
|
||
# update version | ||
INSTALL "crankshaft.date" "/etc/crankshaft.date" | ||
INSTALL "crankshaft.build" "/etc/crankshaft.build" | ||
INSTALL "crankshaft.branch" "/etc/crankshaft.branch" |