mirror of
https://github.com/paboyle/Grid.git
synced 2025-04-11 22:50:45 +01:00
fftw download
This commit is contained in:
parent
8dc2cfcedb
commit
fc25d2295c
18
scripts/update_fftw.sh
Executable file
18
scripts/update_fftw.sh
Executable file
@ -0,0 +1,18 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
if (( $# != 1 )); then
|
||||||
|
echo "usage: `basename $0` <archive>" 1>&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
ARC=$1
|
||||||
|
|
||||||
|
INITDIR=`pwd`
|
||||||
|
rm -rf lib/fftw
|
||||||
|
mkdir lib/fftw
|
||||||
|
|
||||||
|
ARCDIR=`tar -tf ${ARC} | head -n1 | sed -e 's@/.*@@'`
|
||||||
|
tar -xf ${ARC}
|
||||||
|
cp ${ARCDIR}/api/fftw3.h lib/fftw/
|
||||||
|
|
||||||
|
cd ${INITDIR}
|
||||||
|
rm -rf ${ARCDIR}
|
Loading…
x
Reference in New Issue
Block a user