WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Why tce and tce-ab scripts?  (Read 3709 times)

Offline Greg Erskine

  • Sr. Member
  • ****
  • Posts: 404
Why tce and tce-ab scripts?
« on: April 09, 2015, 05:36:43 PM »
Hello,

I am using 3.18.9-piCore+ and have noticed that there are 2 scripts that are almost identical, tce and tce-ab. From what I understand the name of this program has gone from ab to tce to tce-ab so should tce still be included and if it is, shouldn't tce and tce-ab be identical?

Code: [Select]
$ diff tce tce-ab
--- tce
+++ tce-ab
@@ -46,19 +46,15 @@
 }

 displayDepends(){
-  tce-fetch.sh "$EXTN".dep 2>/dev/null
-  if [ "$?" == 0 ]; then
-       less "$EXTN".dep
-       rm "$EXTN".dep
-  fi
+  tce-fetch.sh "$EXTN".dep
+  less "$EXTN".dep
+  rm "$EXTN".dep
 }

 displayTree(){
-  tce-fetch.sh "$EXTN".tree 2>/dev/null
-  if [ "$?" == 0 ]; then
-       less "$EXTN".tree
-       rm "$EXTN".tree
-  fi
+  tce-fetch.sh "$EXTN".tree
+  less "$EXTN".tree
+  rm "$EXTN".tree
 }

regards
Greg

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: Why tce and tce-ab scripts?
« Reply #1 on: April 10, 2015, 03:15:17 AM »
Indeed, one should be a symlink to the other. Thanks for reporting.
The only barriers that can stop you are the ones you create yourself.