]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
This commit was generated by cvs2svn to compensate for changes in r217,
authorSam Hartman <hartmans@debian.org>
Tue, 24 Apr 2001 17:40:45 +0000 (17:40 +0000)
committerSam Hartman <hartmans@debian.org>
Tue, 24 Apr 2001 17:40:45 +0000 (17:40 +0000)
which included commits to RCS files with non-trunk default branches.

src/libafs/redhat.sh

index 0d35c2a0937fe7c03accc2363bf1778f07f1b6c6..e213cc9cc71891807f315ffd6ef8dc28a3c72251 100755 (executable)
@@ -5,15 +5,20 @@
 IBYTES=""
 SETATTR=""
 
-grep i_bytes /lib/modules/$1/build/include/linux/fs.h > /dev/null
+if [ -e $1/include/linux/fs.h ] ; then
+grep i_bytes $1/include/linux/fs.h > /dev/null
 if [ $? = 0 ]; then
-    IBYTES="-DSTRUCT_INODE_HAS_I_BYTES=1"
+IBYTES="-DSTRUCT_INODE_HAS_I_BYTES=1"
 fi
-grep "extern int inode_setattr" /lib/modules/$1/build/include/linux/fs.h > /dev/null
+
+grep "extern int inode_setattr" $1/include/linux/fs.h > /dev/null
 if [ $? = 0 ]; then
-    SETATTR="-DINODE_SETATTR_NOT_VOID=1"
+SETATTR="-DINODE_SETATTR_NOT_VOID=1"
 fi
 
+if [ -e $2 ] ; then
 /bin/rm $2
+fi
 echo "KDEFINES = ${IBYTES} ${SETATTR}" > $2
+fi
 exit 0