Changed realpath to readlink -f for better combatibility in different systems.

This commit is contained in:
Miikka Vaisala
2019-09-23 15:35:09 +08:00
parent 1c14ec6e16
commit 5cc2d613be

View File

@@ -1,6 +1,6 @@
#!/bin/bash
ACC_DIR=$(realpath $(dirname $0)/../acc)
MODULE_DIR=$(realpath $1)
ACC_DIR=$(readlink -f $(dirname $0)/../acc)
MODULE_DIR=$(readlink -f $1)
echo "-- Compiling project in "${MODULE_DIR}
for source in ${MODULE_DIR}/*.sas ${MODULE_DIR}/*.sps ${MODULE_DIR}/*.sdh