[bash] shell里简单输入文件的直接读取进行批处理rpmbuild
来源:互联网 发布:周灏 大数据量化信用 编辑:程序博客网 时间:2024/05/09 10:49
Tree 3.2 1 bzip,openssl
Wallet 2007a 323 trousers
perl-devel 2.6.33 7.3 glibc
$cat import.sh
while read -r name version release requires; do
echo $name $version $release $requires;
if [ "$requires"x == x ]; then
rpmbuild -ba AppWrapper.spec --define "app_name $name" --define "app_version $version" --define "app_release $release";
else
rpmbuild -ba AppWrapper.spec --define "app_name $name" --define "app_version $version" --define "app_release $release" --define "app_requires $requires";
fi
done < samples
cat AppWrapper.spec
%define debug_package %{nil}
Name: %{app_name}
Version: %{app_version}
Release: %{app_release}%{?dist}
Summary: Application's rpm wrapper
License: GPL
%if %{?app_requires:1}%{!?app_requires:0}
Requires: %{app_requires}
%endif
AutoReqProv: none
%description Wrap the application(.tgz) in rpm format, by which the dependences can be easily inquired in RPM mechanism.
%files
%changelog
- [bash] shell里简单输入文件的直接读取进行批处理rpmbuild
- 系里服务器的shell 默认为tcsh,如果要使用bash 则直接输入bash即可
- Linux bash shell 逐行读取文件的三种方法
- Linux bash shell 逐行读取文件的三种方法
- Linux bash shell 逐行读取文件的三种方法
- Shell_Linux bash shell 逐行读取文件的三种方法
- Linux系统Bash shell里解决中文输入和显示乱码的问题
- 简单的Bash Shell命令
- shell读取文件夹里的文件内容并输出
- Bash Shell 里的各种括号
- Bash Shell 里的各种括号
- Bash Shell 里的各种括号
- Bash Shell 里的各种括号
- Bash Shell 里的各种括号
- bash shell 里的一些读文件、调用java程序、ftp操作
- bash 的环境配置 及文件读取流程(login shell 环境下)
- 【适合新手入门】批处理简单的输入判断
- 简单的Makefile文件批处理
- 刷油漆
- CSS3:border-radius
- Android基础之UI_04
- Java基础知识
- spring泛型依赖注入
- [bash] shell里简单输入文件的直接读取进行批处理rpmbuild
- 全x数字
- ACM算法分类
- linux 网络流量监控ntop
- Struts2.5动态方法调用 错误Messages:This method: edit for action product is not allowed!解决方法
- enum的用法简介
- 《MacTalk人生元编程》
- Binary Tree Maximum Path Sum
- 自定义AppBar