File: reconfigure

package info (click to toggle)
freefem++ 3.61.1+dfsg1-4
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 17,108 kB
  • sloc: cpp: 141,214; ansic: 28,664; sh: 4,925; makefile: 3,142; fortran: 1,171; perl: 844; awk: 290; php: 199; pascal: 41; f90: 32
file content (16 lines) | stat: -rwxr-xr-x 619 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh

if [ -f ./config.param ]; then 
	test -s  ./config.path && eval export PATH="'`cat ./config.path`:$PATH'"
	##  remove dup
	export PATH=`echo $PATH|awk -F: ' {p=""; for(i=1; i<= NF; i++) {  ok =0; for(j=1; j<i; j++) {ok +=  ( $i == $j)} ; if(!ok) {if( p) p =p  ":";p = p  $i;}} print p;   } '`
	echo PATH=$PATH 
	cat ./config.param | xargs echo "$@"
	cat ./config.param | xargs  ./configure "$@"
elif [ -f ./configure.param ]; then 
	echo ./configure `cat ./configure.param` "$@"
	echo ./configure `cat ./configure.param` "$@"|sh
else
	echo "No config.param file found"
	echo "Please read the README file"
fi