forked from arminbiere/aiger
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmkminrel.sh
More file actions
executable file
·42 lines (42 loc) · 794 Bytes
/
mkminrel.sh
File metadata and controls
executable file
·42 lines (42 loc) · 794 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/bin/sh
version=`cat VERSION`
name=aiger-$version
archive=/tmp/${name}.tar.xz
dir=/tmp/$name
if [ -d $dir ]
then
rm -f $dir/*
else
mkdir $dir
fi
cp -a VERSION $dir
cp -a aiger.c aiger.h VERSION $dir
cat >$dir/README<<EOF
This is the minimal library only source release of AIGER.
EOF
cat >$dir/makefile.in<<EOF
all:
@COMPILE@ -c aiger.c
clean:
rm -f makefile aiger.o
EOF
cat >$dir/configure<<EOF
#!/bin/sh
COMPILE="gcc -Wall -O3 -DNDEBUG"
while [ \$# -gt 0 ]
do
case \$1 in
-h) echo "usage: ./configure [-g]"; exit 0;;
-g) COMPILE="gcc -Wall -g";;
*) echo "configure: error: \$*" 1>&2; exit 1;;
esac
shift
done
sed -e "s,@COMPILE@,\$COMPILE," makefile.in > makefile
EOF
chmod 755 $dir/configure
cd /tmp
rm -f $archive
tar cfJ $archive $name
rm -rf $dir
ls -l $archive