vendor: Update changelog script for 11

Change-Id: I9f74349b086d68b064c8eee3284021617e0cbfa0
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/