摘要:
脚本名: gen_include_path_for_vim.sh#!/bin/bash include_path=$(make --just-print $*\ | sed -n -e '/^g++/p' | sed -n -e "1p" \ | awk 'BEGIN{RS=" "; ORS="\n"} { print $0; }' \ | sed -n -r -e '/^-I/{s/^-I//;p}' | awk -vORS="," '{print $0;} 阅读全文