Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

paths api

  • Loading branch information...
commit df1d41e0ca02466d2a87561acba8ab8812fe3916 1 parent fb938eb
Wayne E. Seguin authored August 27, 2011
2  ack/shell/functions
@@ -8,7 +8,7 @@ ack_initialize()
8 8
 
9 9
 package_install()
10 10
 {
11  
-  ensure_paths_exist "${source_path}/${package_dir}/bin" "${install_path}/bin"
  11
+  paths create "${source_path}/${package_dir}/bin" "${install_path}/bin"
12 12
 
13 13
   curl \
14 14
     -L http://betterthangrep.com/ack-standalone \
5  openpkg/shell/functions
@@ -17,7 +17,7 @@ openpkg_initialize()
17 17
   fi
18 18
 
19 19
   # Requires least 150MB free disk space
20  
-  ensure_paths_exist "${prefix}/tmp"
  20
+  paths create "${prefix}/tmp"
21 21
 }
22 22
 
23 23
 openpkg_install() {
@@ -53,8 +53,7 @@ openpkg_install() {
53 53
   then
54 54
     profile_path=/etc/profile.d/
55 55
   else
56  
-    [[ ! -d "${profile_path}" ]] && mkdir -p
57  
-    ensure_paths_exist
  56
+    paths create "${profile_path}"
58 57
     profile_path="$HOME/."
59 58
 
60 59
   fi
2  siege/shell/functions
@@ -2,6 +2,6 @@
2 2
 
3 3
 siege_install()
4 4
 {
5  
-  ensure_paths_exist "${install_path}/etc" "${install_path}/var"
  5
+  paths create "${install_path}/etc" "${install_path}/var"
6 6
   package_make_install
7 7
 }
2  unrar/shell/functions
@@ -30,7 +30,7 @@ unrar_build()
30 30
 
31 31
 unrar_install()
32 32
 {
33  
-  ensure_paths_exist "${install_path}/bin"
  33
+  paths create "${install_path}/bin"
34 34
   move_file "unrar" to "${install_path}/bin"
35 35
   ensure_files_are_executable "${install_path}/bin/unrar"
36 36
 }

0 notes on commit df1d41e

Please sign in to comment.
Something went wrong with that request. Please try again.