代码拉取完成,页面将自动刷新
RPM_TOP_DIR=$(shell rpm -E %{_topdir})
FLOWEXPORT_SRC=./src
all:build
build:
cd ${FLOWEXPORT_SRC} && ${MAKE}
clean:
rm -rf *~ *.swp
cd ${FLOWEXPORT_SRC} && ${MAKE} clean
rpm:
@echo [generate flowexport rpm package] ; \
COMMIT=$(shell git rev-list HEAD |head -1|cut -c 1-6);\
BRANCH=$(shell git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/' -e 's/-/_/g');\
FL_VERSION=$(shell sed -ne 's/\#define\(\ \)\{1,\}FL_VERSION\(\ \)\{1,\}\"\(.*\)\"/\3/p' src/version.h);\
FL_RELEASE=$(shell sed -ne 's/\#define\(\ \)\{1,\}FL_RELEASE\(\ \)\{1,\}\"\(.*\)\"/\3/p' src/version.h);\
sed -e "s/@VERSION@/$${FL_VERSION}/g" -e "s/@RELEASE@/$${FL_RELEASE}/g" spec/flowexport.spec > ${RPM_TOP_DIR}/SPECS/flowexport.spec;\
mkdir yamu; \
make clean ;\
rsync -av --exclude .git --exclude .gitignore ./ /tmp/flowexport-$${FL_VERSION};\
cp -a /tmp/flowexport-$${FL_VERSION}/script/analyze.py /tmp/flowexport-$${FL_VERSION}/script/domaincount.py; \
rm -rf yamu ;\
cd /tmp ; \
rm -rf flowexport-$${FL_VERSION}/{cscope.files,cscope.in.out,cscope.out,cscope.po.out,tags};\
tar cvzf ${RPM_TOP_DIR}/SOURCES/flowexport-$${FL_VERSION}.tar.gz flowexport-$${FL_VERSION}; \
rpmbuild -ba ${RPM_TOP_DIR}/SPECS/flowexport.spec;\
rm -rf /tmp/flowexport-$${FL_VERSION};
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。