18 lines
730 B
Bash
Executable File
18 lines
730 B
Bash
Executable File
#! /bin/sh
|
|
|
|
ifnxcp() {
|
|
[ -e "$2" ] || cp "$1" "$2";
|
|
}
|
|
|
|
NAME=$1
|
|
|
|
ifnxcp %%CHROOT_DGLDIR%%/data/crawl-git-settings/init.txt %%CHROOT_RCFILESDIR%%/crawl-git/"$NAME".rc
|
|
ifnxcp %%CHROOT_DGLDIR%%/data/crawl-git.macro %%CHROOT_RCFILESDIR%%/crawl-git/"$NAME".macro
|
|
ifnxcp %%CHROOT_DGLDIR%%/data/crawl-0.23-settings/init.txt %%CHROOT_RCFILESDIR%%/crawl-0.23/"$NAME".rc
|
|
ifnxcp %%CHROOT_DGLDIR%%/data/crawl-git.macro %%CHROOT_RCFILESDIR%%/crawl-0.23/"$NAME".macro
|
|
ifnxcp %%CHROOT_DGLDIR%%/data/crawl-0.22-settings/init.txt %%CHROOT_RCFILESDIR%%/crawl-0.22/"$NAME".rc
|
|
ifnxcp %%CHROOT_DGLDIR%%/data/crawl-git.macro %%CHROOT_RCFILESDIR%%/crawl-0.22/"$NAME".macro
|
|
|
|
mkdir -p %%CHROOT_MORGUEDIR%%/"$NAME"
|
|
mkdir -p %%CHROOT_TTYRECDIR%%/"$NAME"
|