Commits

Thomas Perl committed 60b5a41

RPM-building mechanism added

Comments (0)

Files changed (4)

 include README
 include update_manpage.sh
+include build_rpm.sh
 recursive-include share *
   4. Runnable from a source checkout or from system-wide installation
   5. Standardized option parsing, including --version, --verbose and --help
   6. Manual page can be auto-generated with help2man (sh update_manpage.sh)
+  7. Easy building of installation packages (e.g. RPM) (sh build_rpm.sh)
 
 
 http://bitbucket.org/pyugat/mini-setup-py
+#!/bin/sh
+# build_rpm.sh - Build RPM package from source
+
+if [ -z "$PYTHON" ]; then
+    PYTHON=python
+fi
+
+gzip -f $(sh update_manpage.sh)
+$PYTHON setup.py bdist_rpm
+

update_manpage.sh

 mkdir -p $(dirname $MAN_PAGE)
 help2man --name="$DESCRIPTION" --no-info --output="$MAN_PAGE" "./$PROJECT_NAME"
 
+echo $MAN_PAGE