OpenPKG CVS Repository http://cvs.openpkg.org/ ____________________________________________________________________________
Server: cvs.openpkg.org Name: Thomas Lotterer Root: /e/openpkg/cvs Email: [EMAIL PROTECTED] Module: openpkg-re Date: 08-Jul-2003 14:57:42 Branch: HEAD Handle: 2003070813574200 Modified files: openpkg-re openpkg-dev Log: integrate rclint and fsllint Summary: Revision Changes Path 1.118 +37 -2 openpkg-re/openpkg-dev ____________________________________________________________________________ patch -p0 <<'@@ .' Index: openpkg-re/openpkg-dev ============================================================================ $ cvs diff -u -r1.117 -r1.118 openpkg-dev --- openpkg-re/openpkg-dev 8 Jul 2003 09:35:48 -0000 1.117 +++ openpkg-re/openpkg-dev 8 Jul 2003 12:57:42 -0000 1.118 @@ -1120,6 +1120,20 @@ if [ $? -gt 0 ]; then die "unacceptable specification: ${OPENPKG_WORK}/src/${name}/${name}.spec" fi + if [ -f rc.${name} ]; then + echo "++ linting rc.${name} for HEAD branch" + perl ${OPENPKG_WORK}/re/rclint.pl ${OPENPKG_WORK}/src/${name}/rc.${name} + if [ $? -gt 0 ]; then + die "unacceptable run commands: ${OPENPKG_WORK}/src/${name}/rc.${name}" + fi + fi + if [ -f fsl.${name} ]; then + echo "++ linting fsl.${name} for HEAD branch" + perl ${OPENPKG_WORK}/re/fsllint.pl ${OPENPKG_WORK}/src/${name}/fsl.${name} + if [ $? -gt 0 ]; then + die "unacceptable fsl configuration: ${OPENPKG_WORK}/src/${name}/fsl.${name}" + fi + fi fi if [ ".${BRANCH}" = .HEAD -a ".$extra" = .1 ]; then @@ -1663,17 +1677,38 @@ files="$name" fi for file in $files; do - echo "++ Linting package specification: $file" + name=`echo ${file} | sed -e 's;^.*/;;'` + path=`echo ${file} | sed -e "s;/$name\$;;"` + name=`echo ${name} | sed -e 's;\.spec$;;'` + + echo "++ linting package specification: $file" perl ${OPENPKG_WORK}/re/speclint.pl $file if [ $? -gt 0 -a $force -ne 1 ]; then die "unacceptable specification" fi + + if [ -f ${path}/rc.${name} ]; then + echo "++ linting run commands ${path}/rc.${name} for HEAD branch" + perl ${OPENPKG_WORK}/re/rclint.pl ${path}/rc.${name} + if [ $? -gt 0 -a $force -ne 1 ]; then + die "unacceptable run commands: ${path}/rc.${name}" + fi + fi + + if [ -f ${path}/fsl.${name} ]; then + echo "++ linting fsl configuration ${path}/fsl.${name} for HEAD branch" + perl ${OPENPKG_WORK}/re/fsllint.pl ${path}/fsl.${name} + if [ $? -gt 0 -a $force -ne 1 ]; then + die "unacceptable fsl configuration: ${path}/fsl.${name}" + fi + fi + if [ ".$extra" = .1 ]; then bin_template=`HOME=${OPENPKG_WORK} $E/bin/rpm --eval '%{_rpmfilename}'` bin_rpmfile=`HOME=${OPENPKG_WORK} $E/bin/rpm -q --qf "${bin_template}" --specfile $file` bin_rpmdir=`HOME=${OPENPKG_WORK} ${OPENPKG_INST}/bin/rpm --eval '%{_rpmdir}'` if [ -f "$bin_rpmdir/$bin_rpmfile" ]; then - echo "++ Linting binary package: ${bin_rpmdir}/${bin_rpmfile}" + echo "++ linting binary package: ${bin_rpmdir}/${bin_rpmfile}" perl ${OPENPKG_WORK}/re/rpmlint.pl --check=layout,attrib $bin_rpmdir/$bin_rpmfile if [ $? -gt 0 -a $force -ne 1 ]; then die "unacceptable specification: $bin_rpmdir/$bin_rpmfile" @@ . ______________________________________________________________________ The OpenPKG Project www.openpkg.org CVS Repository Commit List [EMAIL PROTECTED]