X-Git-Url: https://git.tld-linux.org/?p=tld-builder.git;a=blobdiff_plain;f=bin%2Frpm-builder.sh;h=5f52b1cafa599ba1fee5a5b273ee5daab49dabd6;hp=7e678e2c66d548018b3966ec9229e6419ebaf80a;hb=b999f53d4bf5d44586ecf028876e8bc20b5fd2ce;hpb=37463eaa22f48f5fecbb90e69ef67a69e0bf9788 diff --git a/bin/rpm-builder.sh b/bin/rpm-builder.sh index 7e678e2..5f52b1c 100755 --- a/bin/rpm-builder.sh +++ b/bin/rpm-builder.sh @@ -2,10 +2,13 @@ umask 022 export LC_CTYPE=en_US.iso-8859-1 -CONFIG=$HOME/.pldbuilderrc +CONFIG=$HOME/.tldbuilderrc [ -f "$CONFIG" ] && . $CONFIG -[ -n "$BUILDERPATH" ] || BUILDERPATH="$HOME/pld-builder.new/" +if [ -z "$BUILDERPATH" ]; then + dir=$(dirname "$0") + BUILDERPATH="$(cd "$dir"/..; pwd)" +fi export BUILDERPATH cd $BUILDERPATH -exec python PLD_Builder/rpm_builder.py $1 +exec python TLD_Builder/rpm_builder.py $1