aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorBaptiste Fontaine2013-11-18 21:54:21 +0100
committerAdam Vandenberg2013-11-29 19:10:16 -0800
commitc23aecbfbe2fb876f20c566a12895e4a3f5bd1e1 (patch)
treef50a6b6d3bc2989f901593bbc99b58288b99b1eb /Library/Formula
parent0177fd5877227bdd5578a8b237a0997f01bc7148 (diff)
downloadhomebrew-c23aecbfbe2fb876f20c566a12895e4a3f5bd1e1.tar.bz2
safe-rm 0.10
Closes #24453. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/safe-rm.rb18
1 files changed, 18 insertions, 0 deletions
diff --git a/Library/Formula/safe-rm.rb b/Library/Formula/safe-rm.rb
new file mode 100644
index 000000000..3e11df3ec
--- /dev/null
+++ b/Library/Formula/safe-rm.rb
@@ -0,0 +1,18 @@
+require 'formula'
+
+class SafeRm < Formula
+ homepage 'http://www.safe-rm.org.nz/'
+ url 'https://launchpad.net/safe-rm/trunk/0.10/+download/safe-rm-0.10.tar.gz'
+ sha1 '6b829ae68e1fa3c8016e15ab37fcc08caef7712f'
+
+ def install
+ bin.install 'safe-rm'
+ end
+
+ test do
+ file = "a-file"
+ touch file
+ system "#{bin}/safe-rm", file
+ !File.exists? file
+ end
+end