Skip to content

Instantly share code, notes, and snippets.

@mnutt
Created April 18, 2014 06:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mnutt/11026936 to your computer and use it in GitHub Desktop.
Save mnutt/11026936 to your computer and use it in GitHub Desktop.
Index: tgz2dmg.sh
===================================================================
--- tgz2dmg.sh (revision 264)
+++ tgz2dmg.sh (working copy)
@@ -115,8 +115,12 @@
elif [[ "$next" = "rsrc" ]]; then
cp "$1" "$TMPDIR/resources"
elif [[ "$next" = "rsrcdir" ]]; then
- [[ -f "$1" ]] && cp "$1" "$TMPDIR/resources"
- [[ -d "$1" ]] && cp -R "$1" "$TMPDIR/resources"
+ echo "$1"
+ if [[ -d "$1" ]]; then
+ cp -R "$1" "$TMPDIR/resources"
+ else
+ cp $1 "$TMPDIR/resources"
+ fi
elif [[ "$next" = "id" ]]; then
ID="$1"
elif [[ "$next" = "version" ]]; then
Index: Makefile
===================================================================
--- Makefile (revision 264)
+++ Makefile (working copy)
@@ -165,7 +165,7 @@
-version ${SIMIAN_VERSION} \
-pyver ${PYTHON_VERSION} \
-vep install_name_tool \
- -R simian_M2Crypto-*.egg \
+ -R simian_M2Crypto-\*.egg \
-R PyYAML-*.egg \
-R WebOb-*.egg \
-R google_apputils-*.egg \
@@ -188,7 +188,7 @@
-version ${SIMIAN_VERSION} \
-pyver ${PYTHON_VERSION} \
-vep install_name_tool \
- -R simian_M2Crypto-*.egg \
+ -R simian_M2Crypto-\*.egg \
-R PyYAML-*.egg \
-R WebOb-*.egg \
-R google_apputils-*.egg \
@@ -211,7 +211,7 @@
-version ${SIMIAN_VERSION}.${MUNKI_VERSION} \
-pyver ${PYTHON_VERSION} \
-vep install_name_tool \
- -R simian_M2Crypto-*.egg \
+ -R simian_M2Crypto-\*.egg \
-R PyYAML-*.egg \
-R WebOb-*.egg \
-R google_apputils-*.egg \
@@ -232,7 +232,7 @@
-version ${SIMIAN_VERSION}.${MUNKI_VERSION} \
-pyver ${PYTHON_VERSION} \
-vep install_name_tool \
- -R simian_M2Crypto-*.egg \
+ -R simian_M2Crypto-\*.egg \
-R PyYAML-*.egg \
-R WebOb-*.egg \
-R google_apputils-*.egg \
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment