diff options
author | Marc Kleine-Budde <mkl@pengutronix.de> | 2006-12-06 15:01:00 +0000 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2006-12-06 15:01:00 +0000 |
commit | 7f72a7ab0073c6c8905e95200905b788eac21176 (patch) | |
tree | fa64b56683b83c726eb0168f428469c6798f2eeb /scripts/dgen.sh | |
parent | 581ee788c628c3818ba18e3cc15398c2efe4cb4a (diff) | |
download | ptxdist-7f72a7ab0073c6c8905e95200905b788eac21176.tar.gz ptxdist-7f72a7ab0073c6c8905e95200905b788eac21176.tar.xz |
* dgen.sh:
better handling of editor backups
git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@6457 33e552b5-05e3-0310-8538-816dae2090ed
Diffstat (limited to 'scripts/dgen.sh')
-rwxr-xr-x | scripts/dgen.sh | 22 |
1 files changed, 9 insertions, 13 deletions
diff --git a/scripts/dgen.sh b/scripts/dgen.sh index 32ee7c2fe..39dc6fc84 100755 --- a/scripts/dgen.sh +++ b/scripts/dgen.sh @@ -47,22 +47,18 @@ gen_configdeps_map() { # $(RULESFILES_MAKE): $(RULESFILES) # gen_rulesfiles_all() { - # PROJECTRULESDIR might be a softlink, so follow it - local REAL_PROJECTRULESDIR - REAL_PROJECTRULESDIR=$(readlink -f ${PROJECTRULESDIR}) - - ( - if test -d ${REAL_PROJECTRULESDIR}; then - find ${REAL_PROJECTRULESDIR} \ + ( + if test -d ${PROJECTRULESDIR}; then + find ${PROJECTRULESDIR}/ \ -mindepth 1 -maxdepth 1 -name "*.make" -a \! -path "*#*" - find ${RULESDIR} \ - -mindepth 1 -maxdepth 1 -name "*.make" \ - `find ${REAL_PROJECTRULESDIR} \ - -mindepth 1 -maxdepth 1 -name "*.make" \ + find ${RULESDIR}/ \ + -mindepth 1 -maxdepth 1 -name "*.make" -a \! -path "*#*" \ + `find ${PROJECTRULESDIR}/ \ + -mindepth 1 -maxdepth 1 -name "*.make" -a \! -path "*#*" \ -printf "! -name %f "` else - find ${RULESDIR} \ - -mindepth 1 -maxdepth 1 -name "*.make"-a \! -path "*#*" + find ${RULESDIR}/ \ + -mindepth 1 -maxdepth 1 -name "*.make" -a \! -path "*#*" fi ) > ${RULESFILES_ALL} |