mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-13 15:59:38 +02:00
use rpm --eval to get rpm source dir
git-svn-id: trunk@9085 -
This commit is contained in:
parent
d5ed36ac02
commit
e0bfbe601f
@ -1,10 +1,6 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
if [ -f ~/.rpmmacros ]; then
|
||||
RPMDir=$(cat ~/.rpmmacros | egrep '^%_topdir ' | sed -e 's#^%_topdir ##')
|
||||
else
|
||||
RPMDir=/usr/src/redhat
|
||||
fi
|
||||
RPMDir=`rpm --eval "%{_topdir}"`
|
||||
|
||||
echo $RPMDir
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user