Skip to content

Commit

Permalink
clone of elf-0.27
Browse files Browse the repository at this point in the history
  • Loading branch information
wangbj committed Feb 23, 2017
1 parent 75cff68 commit aecacb1
Show file tree
Hide file tree
Showing 6 changed files with 913 additions and 29 deletions.
55 changes: 26 additions & 29 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,29 +1,26 @@
BSD 3-Clause License

Copyright (c) 2017, Baojun Wang
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.

* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.

* Neither the name of the copyright holder nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Copyright (c) Erik Charlebois.
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
3. The names of the author may not be used to endorse or promote
products derived from this software without specific prior written
permission.

THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
SUCH DAMAGE.
6 changes: 6 additions & 0 deletions Setup.hs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import Distribution.Simple
import System.Cmd(system)

main = defaultMainWithHooks $ simpleUserHooks { runTests = runElfTests }

runElfTests a b pd lb = system "runhaskell -i./src ./tests/Test.hs" >> return ()
25 changes: 25 additions & 0 deletions elf.cabal
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
Name: elf
Version: 0.27
License: BSD3
License-file: LICENSE
Category: Data
Author: Erik Charlebois
Copyright: Erik Charlebois
Maintainer: Erik Charlebois <erikcharlebois@gmail.com>
Stability: stable
Cabal-Version: >= 1.6
Homepage: http://github.com/erikcharlebois/elf
Build-Depends: base
Build-Type: Custom
Synopsis: Parser for ELF object format.
Description: Parser for ELF object format.
Data-Files: tests/empty.elf tests/Test.hs

source-repository head
type: git
location: http://github.com/erikcharlebois/elf

library
build-depends: base >= 2 && < 5, bytestring, binary
hs-source-dirs: src
exposed-modules: Data.Elf
Loading

0 comments on commit aecacb1

Please sign in to comment.