Page MenuHomePhabricator

No OneTemporary

Size
1 KB
Referenced Files
None
Subscribers
None
diff --git a/trunk/BuildOsxPkg.sh b/trunk/BuildOsxPkg.sh
index 099d05c..a07814e 100755
--- a/trunk/BuildOsxPkg.sh
+++ b/trunk/BuildOsxPkg.sh
@@ -1,49 +1,49 @@
#!/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`
echo "==== PKG build settings ==="
echo "\$CWD=\"$CWD\""
echo "\$DSTROOT=\"$DSTROOT\""
-echo "\$PKG_VERSION=\"$PKG_VERSION_LONG\""
+echo "\$PKG_VERSION=\"$PKG_VERSION\""
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/
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
# 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
open "$CWD"/xmount.pmdoc

File Metadata

Mime Type
text/x-diff
Expires
Mon, Dec 23, 10:59 AM (6 h, 24 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1176790
Default Alt Text
(1 KB)

Event Timeline