From 16c721a47dd63142d109fd83a5b01440fd42d88b Mon Sep 17 00:00:00 2001 From: rnhmjoj Date: Thu, 27 Aug 2015 22:16:56 +0000 Subject: [PATCH] Cabalize --- LICENSE | 20 ++++++++++++++++++++ Main.hs | 2 ++ hashrename.hs => Setup.hs | 0 hashrename.cabal | 16 ++++++++++++++++ 4 files changed, 38 insertions(+) create mode 100644 LICENSE create mode 100644 Main.hs rename hashrename.hs => Setup.hs (100%) create mode 100644 hashrename.cabal diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..fbc8b8f --- /dev/null +++ b/LICENSE @@ -0,0 +1,20 @@ +Copyright (c) 2015 rnhmjoj + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be included +in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/Main.hs b/Main.hs new file mode 100644 index 0000000..9a994af --- /dev/null +++ b/Main.hs @@ -0,0 +1,2 @@ +import Distribution.Simple +main = defaultMain diff --git a/hashrename.hs b/Setup.hs similarity index 100% rename from hashrename.hs rename to Setup.hs diff --git a/hashrename.cabal b/hashrename.cabal new file mode 100644 index 0000000..4fadd87 --- /dev/null +++ b/hashrename.cabal @@ -0,0 +1,16 @@ +name: hashrename +version: 0.1.0.0 +synopsis: Rename every file in a directory with his SHA1 hash. Perfect to clean messy folders. +license: MIT +license-file: LICENSE +author: rnhmjoj +maintainer: micheleguerinirocco@me.com +copyright: Copyright (c) Michele Guerini Rocco +category: Utility +build-type: Simple +cabal-version: >=1.10 + +executable hashrename + main-is: Main.hs + build-depends: base >=4.8 && <4.9, directory, filepath, cryptohash, bytestring + default-language: Haskell2010 \ No newline at end of file