mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-11-03 21:02:34 +00:00 
			
		
		
		
	lsxcatd -v return error revision on debian/ubuntu(bug 3564)
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@16245 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
		@@ -14,7 +14,6 @@ export DH_COMPAT=5
 | 
			
		||||
 | 
			
		||||
build:
 | 
			
		||||
	dh_testdir
 | 
			
		||||
	./modifyUtils `cat ../Version` `svn info | grep Revision | cut -d" " -f 2`
 | 
			
		||||
	./db2man
 | 
			
		||||
 | 
			
		||||
clean:
 | 
			
		||||
@@ -49,6 +48,7 @@ binary-arch: build install
 | 
			
		||||
	chmod 644 `pwd`/debian/perl-xcat/opt/xcat/share/doc/man5/*
 | 
			
		||||
	chmod 644 `pwd`/debian/perl-xcat/opt/xcat/share/man/man7/*
 | 
			
		||||
	chmod 644 `pwd`/debian/perl-xcat/opt/xcat/share/doc/man7/*
 | 
			
		||||
	./modifyUtils `cat ../Version` `svn info | grep Revision | cut -d" " -f 2`
 | 
			
		||||
#	dh_installmenu
 | 
			
		||||
#	dh_installdebconf	
 | 
			
		||||
#	dh_installlogrotate
 | 
			
		||||
 
 | 
			
		||||
@@ -30,5 +30,10 @@ then
 | 
			
		||||
	sed -e s/"#XCATVERSIONSUBHERE"/". '$VER'"/ -e s/"#XCATSVNBUILDSUBHERE"/". ' (${SVNREF}built $BUILDDATE)'"/ xCAT/Version.pm >xCAT/Version.pm.new
 | 
			
		||||
	mv xCAT/Version.pm.new xCAT/Version.pm
 | 
			
		||||
else
 | 
			
		||||
	sed -i -e s/"#XCATVERSIONSUBHERE"/". '$VER'"/ -e s/"#XCATSVNBUILDSUBHERE"/". ' (${SVNREF}built $BUILDDATE)'"/ xCAT/Version.pm
 | 
			
		||||
        if [ -f "/etc/debian_version" ];then
 | 
			
		||||
            FILENAME="debian/perl-xcat/opt/xcat/lib/perl/xCAT/Version.pm"
 | 
			
		||||
        else
 | 
			
		||||
            FILENAME="xCAT/Version.pm"
 | 
			
		||||
        fi
 | 
			
		||||
	sed -i -e s/"#XCATVERSIONSUBHERE"/". '$VER'"/ -e s/"#XCATSVNBUILDSUBHERE"/". ' (${SVNREF}built $BUILDDATE)'"/ $FILENAME
 | 
			
		||||
fi
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user