Permalink
Browse files

paths api

  • Loading branch information...
wayneeseguin committed Aug 27, 2011
1 parent fb938eb commit df1d41e0ca02466d2a87561acba8ab8812fe3916
Showing with 5 additions and 6 deletions.
  1. +1 −1 ack/shell/functions
  2. +2 −3 openpkg/shell/functions
  3. +1 −1 siege/shell/functions
  4. +1 −1 unrar/shell/functions
View
@@ -8,7 +8,7 @@ ack_initialize()
package_install()
{
- ensure_paths_exist "${source_path}/${package_dir}/bin" "${install_path}/bin"
+ paths create "${source_path}/${package_dir}/bin" "${install_path}/bin"
curl \
-L http://betterthangrep.com/ack-standalone \
View
@@ -17,7 +17,7 @@ openpkg_initialize()
fi
# Requires least 150MB free disk space
- ensure_paths_exist "${prefix}/tmp"
+ paths create "${prefix}/tmp"
}
openpkg_install() {
@@ -53,8 +53,7 @@ openpkg_install() {
then
profile_path=/etc/profile.d/
else
- [[ ! -d "${profile_path}" ]] && mkdir -p
- ensure_paths_exist
+ paths create "${profile_path}"
profile_path="$HOME/."
fi
View
@@ -2,6 +2,6 @@
siege_install()
{
- ensure_paths_exist "${install_path}/etc" "${install_path}/var"
+ paths create "${install_path}/etc" "${install_path}/var"
package_make_install
}
View
@@ -30,7 +30,7 @@ unrar_build()
unrar_install()
{
- ensure_paths_exist "${install_path}/bin"
+ paths create "${install_path}/bin"
move_file "unrar" to "${install_path}/bin"
ensure_files_are_executable "${install_path}/bin/unrar"
}

0 comments on commit df1d41e

Please sign in to comment.