Page MenuHomePhabricator

No OneTemporary

Size
2 KB
Referenced Files
None
Subscribers
None
diff --git a/trunk/BuildOsxPkg.sh b/trunk/BuildOsxPkg.sh
index c3a8c36..9affef8 100755
--- a/trunk/BuildOsxPkg.sh
+++ b/trunk/BuildOsxPkg.sh
@@ -1,53 +1,50 @@
#!/bin/bash
if [ "$(whoami)" != "root" ]; then
echo "ERROR: This script has to be run as root!"
exit 1
fi
CWD=`dirname "$0"`
CWD=`cd "$CWD"; pwd`
DSTROOT="$CWD/dstroot"
FULL_PKG_NAME=`basename "$CWD"`
PKG_VERSION=`echo "$FULL_PKG_NAME" | cut -d"-" -f2`
PKG_SVERSION=`echo "$PKG_VERSION" | tr -d "."`
echo "==== PKG build settings ==="
echo "\$CWD=\"$CWD\""
echo "\$DSTROOT=\"$DSTROOT\""
echo "\$PKG_VERSION=\"$PKG_VERSION\""
echo "\$PKG_SVERSION=\"$PKG_SVERSION\""
echo
echo "Press any key to continue or Ctrl-C to cancel"
read
# Create new dstroot folder
rm -rf "$DSTROOT" &>/dev/null
mkdir -p "$DSTROOT"/usr/local/bin
mkdir -p "$DSTROOT"/usr/local/lib/xmount
mkdir -p "$DSTROOT"/usr/local/share/man/man1
# Populate dstroot with files
cp "$CWD"/build/src/xmount "$DSTROOT"/usr/local/bin/
-cp "$CWD"/build/libxmount_input/libxmount_input_aaff/libxmount_input_aaff.dylib "$DSTROOT"/usr/local/lib/xmount/
-cp "$CWD"/build/libxmount_input/libxmount_input_aewf/libxmount_input_aewf.dylib "$DSTROOT"/usr/local/lib/xmount/
-cp "$CWD"/build/libxmount_input/libxmount_input_aff/libxmount_input_aff.dylib "$DSTROOT"/usr/local/lib/xmount/
-cp "$CWD"/build/libxmount_input/libxmount_input_ewf/libxmount_input_ewf.dylib "$DSTROOT"/usr/local/lib/xmount/
-cp "$CWD"/build/libxmount_input/libxmount_input_raw/libxmount_input_raw.dylib "$DSTROOT"/usr/local/lib/xmount/
+find "$CWD"/build/libxmount_input -name "libxmount_input_*.dylib" -exec cp "{}" "$DSTROOT"/usr/local/lib/xmount/ \;
+find "$CWD"/build/libxmount_morphing -name "libxmount_morphing_*.dylib" -exec cp "{}" "$DSTROOT"/usr/local/lib/xmount/ \;
cp "$CWD"/xmount.1 "$DSTROOT"/usr/local/share/man/man1/
# Patch 01dstroot-contents.xml
sed -i -e "s#PMDOC_DSTROOT#$DSTROOT#g" "$CWD"/xmount.pmdoc/01dstroot-contents.xml
# Patch 01dstroot.xml
sed -i -e "s#PMDOC_DSTROOT#$DSTROOT#g" "$CWD"/xmount.pmdoc/01dstroot.xml
sed -i -e "s/PMDOC_VERSION/$PKG_VERSION/g" "$CWD"/xmount.pmdoc/01dstroot.xml
sed -i -e "s/PMDOC_SVERSION/$PKG_SVERSION/g" "$CWD"/xmount.pmdoc/01dstroot.xml
# Patch index.xml
sed -i -e "s#PMDOC_CWD#$CWD#g" "$CWD"/xmount.pmdoc/index.xml
sed -i -e "s/PMDOC_VERSION/$PKG_VERSION/g" "$CWD"/xmount.pmdoc/index.xml
sed -i -e "s/PMDOC_SVERSION/$PKG_SVERSION/g" "$CWD"/xmount.pmdoc/index.xml
open "$CWD"/xmount.pmdoc

File Metadata

Mime Type
text/x-diff
Expires
Mon, Dec 23, 8:01 PM (1 d, 1 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1176788
Default Alt Text
(2 KB)

Event Timeline