• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Problem which Run Script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problem which Run Script


  • Subject: Problem which Run Script
  • From: Lorenzo Thurman <email@hidden>
  • Date: Fri, 07 Nov 2014 14:44:05 -0600

I’m trying to get this script to run. It generates Documentation using the VVDocumentor plugin using appledoc:

if [ ${CONFIGURATION} == "Release" ]; then
APPLEDOC_PATH=`which appledoc`
if [ $APPLEDOC_PATH ]; then
echo "Here"
$APPLEDOC_PATH \
--project-name ${PRODUCT_NAME} \
--project-company "Lorenzo Thurman" \
--company-id "net.spikesoft" \
--output ${PRODUCT_NAME}Docs \
--keep-undocumented-objects \
--keep-undocumented-members \
--keep-intermediate-files \
--no-repeat-first-par \
--no-warn-invalid-crossref \
--exit-threshold 2 \
${PROJECT_DIR}/${PRODUCT_NAME}
fi;
fi;

It fails to run because the ‘which’ command does not find the path to appledoc (echo  $APPLEDOC_PATH prints nothing). Yes, in a Terminal ‘which appledoc’ returns the correct path. I added #!/bin/sh at the first line thinking that an interpreter might help, but no go. If I hard code the path to appledoc, all is good and the docs are generated. So what’s the mojo to get this to work. I’m perfectly fine with using a hard coded path, but I figure at some point in the future, I might benefit from knowing why this doesn’t work.
Thanks


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: Problem which Run Script
      • From: James Moore <email@hidden>
    • Re: Problem which Run Script
      • From: Alexander von Below <email@hidden>
  • Prev by Date: Objective Git can't link to libiconv
  • Next by Date: Re: Problem which Run Script
  • Previous by thread: Re: Objective Git can't link to libiconv
  • Next by thread: Re: Problem which Run Script
  • Index(es):
    • Date
    • Thread