File: replace.script

package info (click to toggle)
xnc 5.0.4-2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 9,672 kB
  • ctags: 13,113
  • sloc: ansic: 72,174; cpp: 50,020; sh: 4,444; makefile: 1,380; yacc: 316; sed: 16
file content (34 lines) | stat: -rw-r--r-- 574 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#! /bin/sh
echo Replace old style XNC files to new '.xnc' directory
if [ -d $HOME/.xnc ]
then
 echo '.xnc' directory already exists, using it.
else
 mkdir $HOME/.xnc 
fi

if [ -f $HOME/.xnc.ini ]
then
 mv -f $HOME/.xnc.ini $HOME/.xnc
fi
if [ -f $HOME/.ives.ini ]
then
 mv -f $HOME/.ives.ini $HOME/.xnc
fi
if [ -f $HOME/.xnc.cfg ]
then
 mv -f $HOME/.xnc.cfg $HOME/.xnc
fi
if [ -f $HOME/.xnc.menu ]
then
 mv -f $HOME/.xnc.menu $HOME/.xnc
fi
if [ -f $HOME/.xnc.ext ]
then
 mv -f $HOME/.xnc.ext $HOME/.xnc
fi
if [ -f $HOME/.xnc.keys ]
then
 mv -f $HOME/.xnc.keys $HOME/.xnc
fi