mirror of
https://github.com/Ponce/slackbuilds
synced 2024-10-09 23:07:09 +02:00
18 lines
351 B
Bash
18 lines
351 B
Bash
![]() |
#!/bin/sh
|
||
|
config() {
|
||
|
old="$1"
|
||
|
new="$old.new"
|
||
|
if [ ! -r $old ]; then
|
||
|
mv $new $old
|
||
|
elif [ "$(cat $old | md5sum)" = "$(cat $new | md5sum)" ]; then
|
||
|
rm $new
|
||
|
fi
|
||
|
}
|
||
|
config etc/findlib.conf
|
||
|
|
||
|
destdir=$(ocamlfind printconf destdir)/stublibs
|
||
|
ldconf=$(ocamlfind printconf ldconf)
|
||
|
if ! grep -q $destdir $ldconf; then
|
||
|
echo $destdir >> $ldconf
|
||
|
fi
|