This file looks large and may slow your browser down if we attempt
to syntax highlight it, so we are showing it without any
pretty colors.
Highlight
it anyway.
| 1 |
#!/bin/sh |
| 2 |
|
| 3 |
|
| 4 |
# get the current version & release |
| 5 |
version=`cat VERSION | cut -d- -f 1` |
| 6 |
release=`cat VERSION | cut -d- -f 2` |
| 7 |
|
| 8 |
# replace variables where these appear in *.in files |
| 9 |
|
| 10 |
for in_filename in `ls -1 *.in` ; do |
| 11 |
out_filename=`echo "$in_filename" | sed 's,\.in$,,'` |
| 12 |
echo "Building $out_filename" |
| 13 |
cat "$in_filename" | sed "s,@VERSION@,$version,g; s,@RELEASE@,$release,g;" > "$out_filename" |
| 14 |
done |