aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlessandro Iezzi <aiezzi@alessandroiezzi.it>2023-05-10 12:50:18 +0200
committerAlessandro Iezzi <aiezzi@alessandroiezzi.it>2023-05-10 12:50:18 +0200
commit652002fb21502ada9072cf64c6af5f917a6815c4 (patch)
treec1838a07838e302ed6a241dce87d1517d21b1e8f
parentab33ee4ff2116646d796f6da5fa0950a8695d20e (diff)
downloadutils-652002fb21502ada9072cf64c6af5f917a6815c4.tar.gz
utils-652002fb21502ada9072cf64c6af5f917a6815c4.zip
Add TARGET in build-pc.sh
-rwxr-xr-xbuild-pc.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/build-pc.sh b/build-pc.sh
index ba78178..fe3aeaf 100755
--- a/build-pc.sh
+++ b/build-pc.sh
@@ -25,6 +25,9 @@ do
shift
VERSION=$1
;;
+ *)
+ TARGET=$1
+ ;;
esac
shift
done
@@ -37,7 +40,7 @@ elif [ -z $NAME ]; then
exit 1
fi
-cat <<EOF > utils.pc
+cat <<EOF > $TARGET
prefix=$PREFIX
exec_prefix=\${prefix}
includedir=\${prefix}/include