Add RMDIR

Add new error message that will be trigged by an overflow of the version
number in fix_ver (buildpkg.packaging.irix)
Add a small Irix specific hack to clean (see the commit comment for
buildpkg.packaging.irix, r1.32 for the full explanation)
This commit is contained in:
Tom G. Christensen 2004-10-17 12:23:50 +00:00
parent 9bc75b0e9e
commit 88847c7058

View File

@ -38,6 +38,7 @@ BZIP2=/usr/bin/bzip2
GZIP=/usr/bin/gzip GZIP=/usr/bin/gzip
PATCH=/usr/local/bin/patch # GNU patch 2.5 or better please! PATCH=/usr/local/bin/patch # GNU patch 2.5 or better please!
RM=/usr/bin/rm RM=/usr/bin/rm
RMDIR=/usr/bin/rmdir
MKDIR=/usr/bin/mkdir MKDIR=/usr/bin/mkdir
MAKE_PROG=/usr/local/bin/make # GNU make please! MAKE_PROG=/usr/local/bin/make # GNU make please!
FIND=/usr/bin/find # vendor supplied find, GNU find will require changes to the script FIND=/usr/bin/find # vendor supplied find, GNU find will require changes to the script
@ -149,6 +150,7 @@ E_ARG_OBSO=42
E_BAD_SECTION_BEGIN=43 E_BAD_SECTION_BEGIN=43
E_BAD_SECTION_END=44 E_BAD_SECTION_END=44
E_UNPACKAGED_FILES=45 E_UNPACKAGED_FILES=45
E_BAD_VERSION=46
error_txt[$E_BAD_FILE]="File not found" error_txt[$E_BAD_FILE]="File not found"
error_txt[$E_PATCH_FAILED]="Patch failed" error_txt[$E_PATCH_FAILED]="Patch failed"
@ -163,6 +165,7 @@ error_txt[$E_ARG_OBSO]="Function nolonger supports the argument you passed"
error_txt[$E_BAD_SECTION_BEGIN]="Section start marker found but we are already inside a section!" error_txt[$E_BAD_SECTION_BEGIN]="Section start marker found but we are already inside a section!"
error_txt[$E_BAD_SECTION_END]="Found end of section marker before section begin!" error_txt[$E_BAD_SECTION_END]="Found end of section marker before section begin!"
error_txt[$E_UNPACKAGED_FILES]="Unpackaged files found in stage area!" error_txt[$E_UNPACKAGED_FILES]="Unpackaged files found in stage area!"
error_txt[$E_BAD_VERSION]="Version field overflow"
##################################################### #####################################################
# Helper functions # Helper functions
@ -323,6 +326,8 @@ clean()
'distclean') clean source 'distclean') clean source
clean stage clean stage
clean meta clean meta
# Irix only - ugly hack
$RM -f $metadir/relnotes*.txt
;; ;;
*) error $E_BAD_CLEANOPTION clean *) error $E_BAD_CLEANOPTION clean
esac esac
@ -378,7 +383,7 @@ fix_man()
fi fi
done done
cd .. cd ..
rmdir $i ${RMDIR} $i
fi fi
done done
} }