 8560e6c230
			
		
	
	8560e6c230
	
	
	
		
			
			- Working rpm build For mageia 5 and Fedora 23 - Review mageia 5 and Fedora 23 dependencies and upload missing one on ftp server - pbr not used in package build anymore, called by pb in 0.14.1 version. Fully standalone version after sbx2build - Fix doc production and man pages - update gitignore for latest pb version - Remove useless pb filters - Will become real 0.3 (no code change, just build infra)
		
			
				
	
	
		
			38 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			38 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
| #!/bin/bash
 | |
| 
 | |
| # Syntax: install.sh <Python> <Root Dir> <Python SiteLib> <Prefix> <PkgName>
 | |
| set -x 
 | |
| 
 | |
| export python=$1
 | |
| export rootdir=$2
 | |
| export sitelib=$3
 | |
| export prefix=$4
 | |
| export pkg=$5
 | |
| 
 | |
| # Documentation installation only
 | |
| if [ $python = "doc" ]; then
 | |
| 	install -d 755 $rootdir/$prefix/share/doc/$5/manual/html/_static
 | |
| 	install -m 644 doc/build/singlehtml/*.html $rootdir/$prefix/share/doc/$5/manual/html
 | |
| 	install -m 644 doc/build/singlehtml/_static/* $rootdir/$prefix/share/doc/$5/manual/html/_static
 | |
| 	install -m 644 doc/build/latex/*.pdf $rootdir/$prefix/share/doc/$5/manual/
 | |
| 	exit 0
 | |
| fi
 | |
| 
 | |
| pyver=`$python --version 2>&1 | perl -p -e 's|.* ([2-3])\..*|$1|'`
 | |
| $python setup.py install --skip-build --root=$rootdir --prefix=$prefix
 | |
| 
 | |
| rm -rf $rootdir/$sitelib/redfish/old $rootdir/$prefix/share/doc/$5/html $rootdir/$prefix/share/doc/$5/*.pdf
 | |
| 
 | |
| # Hardcoded for now to solve the delivery of the conf file still not correct with setup.py
 | |
| mkdir -p $rootdir/etc
 | |
| mv $rootdir/$prefix/etc/redfish-client.conf $rootdir/etc/redfish-client.conf
 | |
| 
 | |
| # Man pages installation
 | |
| for i in 1; do
 | |
| 	mkdir -p $rootdir/$prefix/share/man/man$i
 | |
| 	for e in `ls doc/build/man/*.$i`; do
 | |
| 		ne=`echo $e | perl -p -e 's|.*/([^/]*)\.'$i'|$1-py'$pyver.$i'|'`
 | |
| 		install -m 644 $e $rootdir/$prefix/share/man/man$i/$ne
 | |
| 	done
 | |
| done
 |