|
|
@@ -13,32 +13,32 @@ pypath=Python
|
|
|
printfiles() {
|
|
|
# Print headers
|
|
|
echo ${hdr/lib/$1} >>$file
|
|
|
- find $srcpath/$1 -maxdepth 1 -iname "*.h" -exec echo ' '$srcdir/{} \; | sort >>$file
|
|
|
+ find $srcpath/$1 -maxdepth 1 -iname "*.h" -exec echo ' '$srcdir/{} \; 2>/dev/null | sort -f >>$file
|
|
|
echo -e ')\n' >>$file
|
|
|
# Print public headers
|
|
|
echo ${pubhdr/lib/$1} >>$file
|
|
|
- find $hdrpath/$1 -maxdepth 1 -iname "*.h" -exec echo ' '$srcdir/{} \; | sort >>$file
|
|
|
+ find $hdrpath/$1 -maxdepth 1 -iname "*.h" -exec echo ' '$srcdir/{} \; 2>/dev/null | sort -f >>$file
|
|
|
# Print main public header
|
|
|
echo ' '$srcdir/Include/Rocket/$1.h >>$file
|
|
|
echo -e ')\n' >>$file
|
|
|
# Print source files
|
|
|
echo ${src/lib/$1} >>$file
|
|
|
- find $srcpath/$1 -maxdepth 1 -iname "*.cpp" -exec echo ' '$srcdir/{} \; | sort >>$file
|
|
|
+ find $srcpath/$1 -maxdepth 1 -iname "*.cpp" -exec echo ' '$srcdir/{} \; 2>/dev/null | sort -f >>$file
|
|
|
echo -e ')\n' >>$file
|
|
|
}
|
|
|
|
|
|
printpyfiles() {
|
|
|
# Print headers
|
|
|
echo ${hdr/lib/Py${1}} >>$file
|
|
|
- find $srcpath/$1/$pypath -iname "*.h" -exec echo ' '$srcdir/{} \; | sort >>$file
|
|
|
+ find $srcpath/$1/$pypath -iname "*.h" -exec echo ' '$srcdir/{} \; 2>/dev/null | sort -f >>$file
|
|
|
echo -e ')\n' >>$file
|
|
|
# Print public headers
|
|
|
echo ${pubhdr/lib/Py${1}} >>$file
|
|
|
- find $hdrpath/$1/$pypath -iname "*.h" -exec echo ' '$srcdir/{} \; | sort >>$file 2>/dev/null
|
|
|
+ find $hdrpath/$1/$pypath -iname "*.h" -exec echo ' '$srcdir/{} \; 2>/dev/null | sort -f >>$file 2>/dev/null
|
|
|
echo -e ')\n' >>$file
|
|
|
# Print source files
|
|
|
echo ${src/lib/Py${1}} >>$file
|
|
|
- find $srcpath/$1/$pypath -iname "*.cpp" -exec echo ' '$srcdir/{} \; | sort >>$file
|
|
|
+ find $srcpath/$1/$pypath -iname "*.cpp" -exec echo ' '$srcdir/{} \; 2>/dev/null | sort -f >>$file
|
|
|
echo -e ')\n' >>$file
|
|
|
}
|
|
|
|