mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-28 10:02:43 +01:00
2ccb7ba626
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
17 lines
408 B
Bash
17 lines
408 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=$(chroot . /usr/bin/ocamlfind printconf destdir)/stublibs
|
|
ldconf=$(chroot . /usr/bin/ocamlfind printconf ldconf)
|
|
if ! grep -q -s "${destdir##/}" "$ldconf"; then
|
|
echo "$destdir" >> "${ldconf##/}"
|
|
fi
|