' $2/$file > $2/$file.sed
mv $2/$file.sed $2/$file
if cmp $file $2/$file >/dev/null 2>&1; then
- echo Deleting $2/$file\; no fixes were needed.
rm $2/$file
fi
fi
echo Checking $file_to_fix
sed -e 's/getcwd(char \*, int)/getcwd(char *, size_t)/' $file_to_fix > /tmp/$base
if cmp $file_to_fix /tmp/$base >/dev/null 2>&1; then \
- echo No change needed in $file_to_fix
+ true
else
echo Fixed $file_to_fix
rm -f ${LIB}/$file
sed -e 's/getcwd(char \*, int)/getcwd(char *, size_t)/' $file_to_fix \
| sed -e 's/profil(unsigned short \*, unsigned int, unsigned int, unsigned int)/profil(unsigned short *, size_t, int, unsigned)/' > /tmp/$base
if cmp $file_to_fix /tmp/$base >/dev/null 2>&1; then \
- echo No change needed in $file_to_fix
+ true
else
echo Fixed $file_to_fix
rm -f ${LIB}/$file
wq
EOF
if cmp $file_to_fix /tmp/$base >/dev/null 2>&1; then \
- echo No change needed in $file_to_fix
+ true
else
echo Fixed $file_to_fix
rm -f ${LIB}/$file
wq
EOF
if cmp $file_to_fix /tmp/$base >/dev/null 2>&1; then \
- echo No change needed in $file_to_fix
+ true
else
echo Fixed $file_to_fix
rm -f ${LIB}/$file
wq
EOF
if cmp $file_to_fix /tmp/$base >/dev/null 2>&1; then \
- echo No change needed in $file_to_fix
+ true
else
echo Fixed $file_to_fix
rm -f ${LIB}/$file
wq
EOF
if cmp $file_to_fix /tmp/$base >/dev/null 2>&1; then \
- echo No changed needed in $file_to_fix
+ true
else
echo Fixed $file_to_fix
rm -f ${LIB}/$file
wq
EOF
if cmp $file_to_fix /tmp/$base >/dev/null 2>&1; then \
- echo No change needed in $file_to_fix
+ true
else
echo Fixed $file_to_fix
rm -f ${LIB}/$file
wq
EOF
if cmp $file_to_fix /tmp/$base >/dev/null 2>&1; then \
- No change needed in $file_to_fix
+ true
else
echo Fixed $file_to_fix
rm -f ${LIB}/$file
wq
EOF
if cmp $file_to_fix /tmp/$base >/dev/null 2>&1; then \
- echo No change needed in $file_to_fix
+ true
else
echo Fixed $file_to_fix
rm -f ${LIB}/$file
wq
EOF
if cmp $file_to_fix /tmp/$base >/dev/null 2>&1; then \
- echo No change needed in $file_to_fix
+ true
else
echo Fixed $file_to_fix
rm -f ${LIB}/$file
wq
EOF
if cmp $file_to_fix /tmp/$base >/dev/null 2>&1; then \
- echo No change needed in $file_to_fix
+ true
else
echo Fixed $file_to_fix
rm -f ${LIB}/$file
echo Checking $file_to_fix
sed 's/\[NMSZ\]/\[RFS_NMSZ\]/g' $file_to_fix > /tmp/$base
if cmp $file_to_fix /tmp/$base >/dev/null 2>&1; then \
- echo No change needed in $file_to_fix
+ true
else
echo Fixed $file_to_fix
rm -f ${LIB}/$file
sed 's/NC_NPI_RAW/NC_TPI_RAW/g' $file_to_fix \
| sed 's/NC_/(unsigned long) NC_/' > /tmp/$base
if cmp $file_to_fix /tmp/$base >/dev/null 2>&1; then \
- echo No change needed in $file_to_fix
+ true
else
echo Fixed $file_to_fix
rm -f ${LIB}/$file
if [ \! -z "$file_to_fix" ]; then
echo Checking $file_to_fix
if grep _KERNEL $file_to_fix > /dev/null; then
- echo No change needed in $file_to_fix
+ true
else
echo '#ifdef _KERNEL' > /tmp/$base
cat $file_to_fix >> /tmp/$base
if [ \! -z "$file_to_fix" ]; then
echo Checking $file_to_fix
if grep _KERNEL $file_to_fix > /dev/null; then
- echo No change needed in $file_to_fix
+ true
else
echo '#ifdef _KERNEL' > /tmp/$base
cat $file_to_fix >> /tmp/$base
if [ \! -z "$file_to_fix" ]; then
echo Checking $file_to_fix
if grep _KERNEL $file_to_fix > /dev/null; then
- echo No change needed in $file_to_fix
+ true
else
echo '#ifdef _KERNEL' > /tmp/$base
cat $file_to_fix >> /tmp/$base
if [ \! -z "$file_to_fix" ]; then
echo Checking $file_to_fix
if grep _KERNEL $file_to_fix > /dev/null; then
- echo No change needed in $file_to_fix
+ true
else
echo '#ifdef _KERNEL' > /tmp/$base
cat $file_to_fix >> /tmp/$base
if [ \! -z "$file_to_fix" ]; then
echo Checking $file_to_fix
if grep _KERNEL $file_to_fix > /dev/null; then
- echo No change needed in $file_to_fix
+ true
else
echo '#ifdef _KERNEL' > /tmp/$base
cat $file_to_fix >> /tmp/$base
if [ \! -z "$file_to_fix" ]; then
echo Checking $file_to_fix
if grep _KERNEL $file_to_fix > /dev/null; then
- echo No change needed in $file_to_fix
+ true
else
echo '#ifdef _KERNEL' > /tmp/$base
cat $file_to_fix >> /tmp/$base
if [ \! -z "$file_to_fix" ]; then
echo Checking $file_to_fix
if grep _KERNEL $file_to_fix > /dev/null; then
- echo No change needed in $file_to_fix
+ true
else
echo '#ifdef _KERNEL' > /tmp/$base
cat $file_to_fix >> /tmp/$base
if [ \! -z "$file_to_fix" ]; then
echo Checking $file_to_fix
if grep _KERNEL $file_to_fix > /dev/null; then
- echo No change needed in $file_to_fix
+ true
else
echo '#ifdef _KERNEL' > /tmp/$base
cat $file_to_fix >> /tmp/$base
if [ \! -z "$file_to_fix" ]; then
echo Checking $file_to_fix
if grep _KERNEL $file_to_fix > /dev/null; then
- echo No change needed in $file_to_fix
+ true
else
sed -e '/#ifdef INKERNEL/i\
#ifdef _KERNEL' \
if [ \! -z "$file_to_fix" ]; then
echo Checking $file_to_fix
if grep __GNUC__ $file_to_fix > /dev/null; then
- echo No change needed in $file_to_fix
+ true
else
sed -e '/# ifdef __STDC__/i\
# if !defined (__GNUC__) && !defined (__GNUG__)' \
# rm -f ${LIB}/$file; mv ${LIB}/${file}.sed ${LIB}/$file
# echo Fixed $file_to_fix
# else
-# echo No change needed in $file_to_fix
+# true
# fi
#fi
s/extern struct strevent;/struct strevent;/g
' $file_to_fix > /tmp/$base
if cmp $file_to_fix /tmp/$base >/dev/null 2>&1; then \
- echo No change needed in $file_to_fix
+ true
else
echo Fixed $file_to_fix
rm -f ${LIB}/$file
s/extern struct proc;/struct proc;/g
' $file_to_fix > /tmp/$base
if cmp $file_to_fix /tmp/$base >/dev/null 2>&1; then \
- echo No change needed in $file_to_fix
+ true
else
echo Fixed $file_to_fix
rm -f ${LIB}/$file
' /tmp/$base > /tmp/$base.sed
mv /tmp/$base.sed /tmp/$base
if cmp $file_to_fix /tmp/$base.sed >/dev/null 2>&1; then
- echo No change needed in $file_to_fix
+ true
else
echo Fixed $file_to_fix
rm -f ${LIB}/$file
' /tmp/$base > /tmp/$base.sed
mv /tmp/$base.sed /tmp/$base
if cmp $file_to_fix /tmp/$base.sed >/dev/null 2>&1; then
- echo No change needed in $file_to_fix
+ true
else
echo Fixed $file_to_fix
rm -f ${LIB}/$file
-e '/[ ]DBL_DIG[ ]/a\
#endif' $file_to_fix > /tmp/$base
if cmp $file_to_fix /tmp/$base >/dev/null 2>&1; then \
- echo No change needed in $file_to_fix
+ true
else
echo Fixed $file_to_fix
rm -f ${LIB}/$file