pkg://xastir-1.9.2-5.fc8.x86_64.rpm:1379010/
usr/
share/
xastir/xastir-fixcfg.sh
info downloads
#!/bin/sh
#
# $Id: xastir-fixcfg.sh,v 1.7 2007/01/03 19:40:50 we7u Exp $
#
# Copyright (C) 2003-2007 The Xastir Group
#
# fix up a user's .xastir/config/xastir.cnf to rewrite /usr/local/xastir
# to /usr/local/share/xastir. NOTE: This only works when -prefix=/usr/local!
CNF=.xastir/config/xastir.cnf
INDEX=.xastir/config/map_index.sys
SELECT=.xastir/config/selected_maps.sys
cd
if [ -f $CNF ]; then
rm $INDEX
mv $CNF $CNF.backup
mv $SELECT $SELECT.backup
if [ $? -ne 0 ]; then
echo "$CNF: unable to rename!"
exit 1
fi
sed -e 's:/usr/local/xastir/:/usr/local/share/xastir/:' <$CNF.backup >$CNF
if [ $? -ne 0 ]; then
echo "$CNF: sed failed!"
mv $CNF.backup $CNF
exit 1
fi
else
echo "No $CNF to edit"
fi
echo "Done. Old config file is in $CNF.backup"
exit 0