root/trunk/licq/bin/RecreateUserList.sh

Revision 4526, 0.6 kB (checked in by erijo, 2 years ago)

Removed svn:keywords from all files that don't need it. May make your
checkout a tiny bit faster :)

  • Property svn:eol-style set to native
  • Property svn:executable set to *
Line 
1#!/bin/sh
2
3BASE=${HOME}/.licq
4CONF="${BASE}/users.conf"
5
6echo "Licq User List Recreation App"
7echo
8echo "This script will rebuild your user list from the user config files found"
9echo "in ${BASE}.  It will overwrite your old list."
10echo "Continue (y/N)?"
11read CONTINUE
12
13if [ "$CONTINUE" != "y" -a "$CONTINUE" != "Y" ]; then
14  echo "Aborting."
15  exit
16fi
17
18echo "Rebuilding user list configuration file in $BASE..."
19cd ${BASE}/users
20echo "[users]" > $CONF
21NumOfUsers=`ls *.uin *.Licq *.MSN_ | wc -l`
22echo "NumOfUsers = ${NumOfUsers}" >> $CONF
23ls *.Licq *.MSN_ *.uin | awk 'BEGIN { i = 1 } { printf "User%d = %s\n", i++, $1 }' >> $CONF
24echo "Done"
Note: See TracBrowser for help on using the browser.