[haiku-bugs] Re: [Haiku] #5479: [patch] More support for *.tgz

  • From: "mmadia" <trac@xxxxxxxxxxxx>
  • Date: Sat, 27 Feb 2010 00:26:02 -0000

#5479: [patch] More support for *.tgz
--------------------------+-------------------------------------------------
 Reporter:  mmadia        |       Owner:  bonefish      
     Type:  enhancement   |      Status:  new           
 Priority:  normal        |   Milestone:  R1            
Component:  Build System  |     Version:  R1/Development
 Keywords:                |   Blockedby:                
 Platform:  All           |    Blocking:  5455          
--------------------------+-------------------------------------------------

Comment(by mmadia):

 Replying to [comment:2 bonefish]:
 >  - CreateContainerExtractFilesScript: Have you checked out the sh vs.
 bash question?

 Yes, with the following script on FreeBSD
 {{{
 #!/bin/sh

 test()
 {
         case "$archiveFile" in
                 *.zip)
                         echo "*.zip)"
                         ;;
                 *.tgz|*.tar.gz)
                         echo "*.tgz|*.tar.gz)"
                         ;;
                 *)
                         echo "Unhandled archive extension in
 build_haiku_image extractFile()"
                         exit 1
                         ;;
         esac
 }

 archiveFile="arstarst.tgz"
 test
 archiveFile="arstarst.tar.gz"
 test
 archiveFile="arstarst.zip"
 test
 archiveFile="arstarst.fault"
 test
 echo "why didn't i exit?"  #Note, this line never outputs. The script
 output follows the logic.
 }}}

 For cleaning up the scripts, i'll /newticket it.

 The other remarks have been addressed in the new attachment.

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/5479#comment:3>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: