12 lines
398 B
Bash
Executable File
12 lines
398 B
Bash
Executable File
#!/bin/sh
|
|
|
|
if [ ! -d libraries ]; then
|
|
echo Is CWD a ghc source tree?
|
|
exit 1
|
|
fi
|
|
|
|
cd libraries
|
|
|
|
# should handle ../rts/rts.cabal.in
|
|
grep -i ^version: $(find * -name "*.cabal*" | LANG=C.utf8 sort) ../rts/rts.cabal | grep -v -e "\(Win32\|cabal-\|gmp.old\|gmp2\|integer-simple\|tests\|bench\)" -e "@ProjectVersionMunged@" | grep -e '[0-9]\.' | sed -e "s!.*/\([^/]*\).cabal:[Vv]ersion: \+!\1-!"
|