Skip to content
Browse files

Changed "pack-applications-%" to "pack-from-applications-%". Added co…

…mments. Rearranged some comments.
  • Loading branch information...
1 parent fe1586e commit e8b9364bea1830debf5db2f9e2254167d8ff74bc Nathan Felton committed Feb 27, 2012
Showing with 7 additions and 4 deletions.
  1. +7 −4 luggage.make
View
11 luggage.make
@@ -708,15 +708,15 @@ ungz-utilities-%: %.tar.gz l_Applications_Utilities
# ${DITTO} preserves resource forks by default
# --noqtn drops quarantine information
-# -k -x extracts zip
-# Zipped applications commonly found on the Web usually have the suffixes substituted, so these stanzas substitute them back
+# Allow for packaging software in the same working directory as the Makefile
pack-application-%: % l_Applications
@sudo ${DITTO} --noqtn "${<}" ${WORK_D}/Applications/"${<}"
@sudo chown -R root:admin ${WORK_D}/Applications/"${<}"
@sudo chmod 755 ${WORK_D}/Applications/"${<}"
-
-pack-applications-%: /Applications/% l_Applications
+
+# Allow for packaging software dirctly from the /Applications directory.
+pack-from-applications-%: /Applications/% l_Applications
@sudo ${DITTO} --noqtn "${<}" ${WORK_D}"${<}"
@sudo chown -R root:admin ${WORK_D}"${<}"
@sudo chmod 755 ${WORK_D}"${<}"
@@ -726,6 +726,9 @@ pack-utilities-%: % l_Applications_Utilities
@sudo chown -R root:admin ${WORK_D}/Applications/Utilities/"${<}"
@sudo chmod 755 ${WORK_D}/Applications/Utilities/"${<}"
+# -k -x extracts zip
+# Zipped applications commonly found on the Web usually have the suffixes substituted, so these stanzas substitute them back
+
unzip-applications-%: %.zip l_Applications
@sudo ${DITTO} --noqtn -k -x "${<}" ${WORK_D}/Applications/
@sudo chown -R root:admin ${WORK_D}/Applications/$(shell echo "${<}" | sed s/\.zip/.app/g)

0 comments on commit e8b9364

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