Everything(docs, packaging recipes, and scripts...) we needed to generate http://repo.aliyun.com.
Use the following command to package a RPM and a DEB package for odpscmd, repectively.
make odpscmd.rpm && make odpscmd.deb
The packages are generated by fpm-cookery and rpmbuild. So you have to intall them on your machine first.
fpm-cookery is a Ruby-DSL wrapper around fpm. It can be easily installed with gem:
gem install fpm-cookery
- If you are in a rpm based Linux distribution like RHEL or CentOS, you are good.
- Install
rpmbuild
into your packaging OS thourgh its own package system, eg.- ArchLinux:
yaourt -S rpm-org
- Mac OS:
brew install rpm
- ArchLinux:
- Visit http://rpm.org to obtain the source package and deploy it manually.
The apt and yum repos are supposed be under /apt/debian
and /yum/rpm
, respectively.
make deploy
After typing the following command, the docs will be automatically generated and update to http://repo.aliyun.com.
make deploy-web
The python script auto_deploy.py
can be used (e.g. with a web hooker) to update the web page.
When you need to add some stuff into the template, just edit the template in the "site-packages" directory (for some installations, the directory is "dist-packages").