Archived
2
0
This repository has been archived on 2025-06-08. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
gpl/DIR819/tools/mknewlink
2025-06-04 20:36:23 -03:00

24 lines
437 B
Bash
Executable File

#!/bin/sh
#svn up |tee updateinfo
while read type file;
do
build_file=`echo ${file}|sed 's/^src/build/g'`
build_path=`echo ${build_file%/*}`
if [ "A" = ${type} ];then
mkdir -p ${build_path}
ln -s ${PWD}/${file} ${build_file}
echo "add link to ${build_file}"
elif [ "D" = ${type} ];then
rm -rf ${build_file}
echo "delete link from ${build_file}"
else
echo "no modify for ${file}"
fi
done<./updateinfo