diff options
author | Junghyun Kim <jh0822.kim@samsung.com> | 2016-08-31 11:38:52 +0900 |
---|---|---|
committer | Junghyun Kim <jh0822.kim@samsung.com> | 2016-08-31 11:38:52 +0900 |
commit | 79bf39cf7b88ed0997e126a655da5492074a1f9b (patch) | |
tree | b0eb85062b7f10f9d274cb239d6fc6ed91b25d90 | |
parent | d3e1366f2a62983aeb287760d221a19a5770b7df (diff) | |
download | build-compare-sandbox/jh0822kim/replace_dateime_in_textfile.tar.gz build-compare-sandbox/jh0822kim/replace_dateime_in_textfile.tar.bz2 build-compare-sandbox/jh0822kim/replace_dateime_in_textfile.zip |
bug fixed..?sandbox/jh0822kim/replace_dateime_in_textfile
Change-Id: I2fb3e2839a0c41bcc285a820961049f3ca39f847
Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
-rw-r--r-- | packaging/pkg-diff.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/packaging/pkg-diff.sh b/packaging/pkg-diff.sh index 71ac0da..deb9414 100644 --- a/packaging/pkg-diff.sh +++ b/packaging/pkg-diff.sh @@ -84,6 +84,7 @@ function unjar() # remove date string combined with "generated" and "on" #usage remove_date_string <file> function remove_date_string() { + local file file=$1 date_str=$(grep -i "Generated" $file | grep "on" | sed -e 's,.* on \([A-Za-z 0-9:\-\/]*\).*,\1,g') date -d "$date_str" &> /dev/null @@ -738,8 +739,8 @@ check_single_file() ;; *ASCII*|*text*) echo "file = $file" - remove_date_string old/$file > $file1 - remove_date_string new/$file > $file2 + remove_date_string "old/$file" > $file1 + remove_date_string "new/$file" > $file2 if ! cmp -s $file1 $file2; then echo "$file differs ($ftype)" diff -u old/$file new/$file | head -n 200 |