plan9port/mac/Plumb.app/Contents/MacOS/plumb

19 lines
265 B
Text
Raw Normal View History

#!/bin/bash
2011-10-12 17:18:32 +00:00
if [ -e ~/.bashrc ] ; then
. ~/.bashrc
fi
arch=x86_64
if arch -arch arm64 date >/dev/null 2>&1; then
arch=arm64
fi
PLAN9=${PLAN9:-/usr/local/plan9}
2011-10-12 17:18:32 +00:00
bin=$PLAN9/bin
IFS=$'\n'
for file in $($bin/macargv)
do
arch -arch $arch $bin/macedit "$file"
2011-10-12 17:18:32 +00:00
done