Skip to content

Instantly share code, notes, and snippets.

@qknight
Created July 23, 2013 20:42
Show Gist options
  • Save qknight/6065999 to your computer and use it in GitHub Desktop.
Save qknight/6065999 to your computer and use it in GitHub Desktop.
======= what i have =======
phases="$prePhases unpackPhase patchPhase $preConfigurePhases configurePhase $preBuildPhases buildPhase checkPhase $preInstallPhases installPhase fixupPhase installCheckPhase $preDistPhases distPhase $postPhases";
======= what i want =======
export phases="unpackPhase patchPhase configurePhase buildPhase checkPhase installPhase fixupPhase installCheckPhase distPhase"
======= what i tried =======
typeset -f genericBuild | grep 'phases=' | sed -e 's/\$[^ ]*//g' | sed -e 's/ //g' | awk '{print $0 " \"" }'
phases=" unpackPhase patchPhaseconfigurePhasebuildPhase checkPhaseinstallPhase fixupPhase installCheckPhasedistPhase "
======= but what failed =======
export $(typeset -f genericBuild | grep 'phases=' | sed -e 's/\$[^ ]*//g' | sed -e 's/ //g' | awk '{print $0 " \"" }' )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment