Merge changes from topic "librmnetctl-pre-uplink" into r
* changes:
soong: Add SOONG_CONFIG_DATASERVICES_USES_PRE_UPLINK_FEATURES_NETMGRD
extract_utils: Set `filename_from_src: true` for `CLASS=ETC` targets
diff --git a/tools/changelog b/tools/changelog
index 2b002b1..b8b9ae2 100755
--- a/tools/changelog
+++ b/tools/changelog
@@ -1,6 +1,8 @@
#!/bin/sh
-export Changelog=Changelog.txt
+Changelog=Changelog.txt
+
+DEVICE=$(echo $TARGET_PRODUCT | cut -d "_" -f2)
if [ -f $Changelog ];
then
@@ -22,7 +24,6 @@
echo '====================' >> $Changelog;
echo " "$Until_Date >> $Changelog;
echo '====================' >> $Changelog;
- echo >> $Changelog;
while read path;
do
@@ -32,11 +33,8 @@
fi
done < ./.repo/project.list;
-echo "" >> $Changelog;
done
-
sed -i 's/project/ */g' $Changelog
-cp $Changelog $OUT/system/etc/
-cp $Changelog $OUT/
-rm $Changelog
+cp $Changelog ./out/target/product/$DEVICE/system/etc/
+mv $Changelog ./out/target/product/$DEVICE/