File: checkdotdin

package info (click to toggle)
din 5.2.1-6
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 2,200 kB
  • sloc: cpp: 9,369; sh: 6,563; ansic: 2,977; tcl: 1,770; makefile: 283
file content (17 lines) | stat: -rw-r--r-- 256 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#! /bin/sh
datadir0=/usr/share/din/
datadir1=$HOME/\.din/
if test -d $datadir1
then
	echo "overwriting data files in: $datadir1"
else
	echo "creating: $datadir1"
	mkdir $datadir1
fi

for i in `ls $datadir0`
do
	cp -rfv $datadir0$i $datadir1$i
done

exit 0