mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
9a2b992c06
Added resources shell script git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@401 0fc631ac-6414-0410-93d0-97cfa31319b6
21 lines
778 B
Bash
Executable File
21 lines
778 B
Bash
Executable File
#! /bin/bash
|
|
|
|
rm -r /usr/local/share/magicseteditor/resource
|
|
|
|
for DIR in /usr/local/share/magicseteditor /usr/local/share/magicseteditor/resource /usr/local/share/magicseteditor/resource/icon /usr/local/share/magicseteditor/resource/tool /usr/local/share/magicseteditor/resource/cursor
|
|
do
|
|
if [ -d $DIR ]; then
|
|
: ;
|
|
elif [ -a $DIR ]; then
|
|
echo $DIR "exists and is not a directory!";
|
|
exit 1 ;
|
|
else
|
|
mkdir $DIR;
|
|
fi
|
|
done
|
|
|
|
cp src/resource/common/* /usr/local/share/magicseteditor/resource;
|
|
cp src/resource/msw/tool/* /usr/local/share/magicseteditor/resource/tool;
|
|
cp src/resource/msw/icon/* /usr/local/share/magicseteditor/resource/icon;
|
|
cp src/resource/msw/cursor/* /usr/local/share/magicseteditor/resource/cursor;
|
|
cp src/resource/msw/other/* /usr/local/share/magicseteditor/resource; |