Changeset de10f6c


Ignore:
Timestamp:
04/02/2017 08:46:55 AM (7 years ago)
Author:
Pierre Labastie <pierre@…>
Branches:
new_features
Children:
95c46b9
Parents:
10bc5b9
Message:

Merge trunk r3949 "Fix issues in clfs"

Location:
common
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • common/libs/func_book_parser

    r10bc5b9 rde10f6c  
    99
    1010  if [ -z $WORKING_COPY ] ; then
    11 # Check for Subversion instead of just letting the script hit 'svn' and fail.
    12     test `type -p svn` || eval "echo \"This feature requires Subversion.\"
    13     exit 1"
     11# Check for Subversion or git instead of just letting the script fail.
     12    case $PROGNAME in
     13      lfs | hlfs)
     14        test `type -p svn` || eval "echo \"This feature requires Subversion.\"
     15        exit 1"
     16      ;;
     17      clfs*)
     18        test `type -p git` || eval "echo \"This feature requires Git.\"
     19        exit 1"
     20      ;;
     21    esac
     22
    1423    echo -n "Downloading the $PROGNAME document, $LFSVRS version... "
    1524
     
    3241        git clone $GIT ${PROGNAME}-$LFSVRS >>$LOGDIR/$LOG 2>&1
    3342        if [ ! $TREE == "development" ]; then
    34            cd ${PROGNAME}-$LFSVRS
     43           pushd ${PROGNAME}-$LFSVRS > /dev/null
    3544           echo "Checking out $LFSVRS at $PWD in $TREE"
    3645           git checkout ${TREE} >>$LOGDIR/$LOG 2>&1
     46           popd > /dev/null
    3747        fi
    3848    else
    3949      cd ${PROGNAME}-$LFSVRS
    4050      case $PROGNAME in
    41         clfs*)  git pull >>$LOGDIR/$LOG 2>&1
    42                 if [ ! $TREE == "development" ]; then
    43                    git checkout ${TREE} >>$LOGDIR/$LOG 2>&1
    44                 fi
     51        clfs*)
     52          # If the repo is in "detached head" state, git pull fails, so get
     53          # back first to master:
     54          git checkout master >>$LOGDIR/$LOG 2>&1
     55          git pull >>$LOGDIR/$LOG 2>&1
     56              if [ ! $TREE == "development" ]; then
     57                 git checkout ${TREE} >>$LOGDIR/$LOG 2>&1
     58              fi
    4559        ;;
    4660        lfs | hlfs) svn up >>$LOGDIR/$LOG 2>&1 ;;
     
    5064    echo -ne "done\n"
    5165
    52   else
     66  else # Working copy
    5367    echo -ne "Using $BOOK as book's sources ...\n"
    5468  fi
  • common/urls.xsl

    r10bc5b9 rde10f6c  
    106106          <xsl:text>udev/</xsl:text>
    107107        </xsl:when>
     108        <xsl:when test="contains($dirname, 'iputils')">
     109          <xsl:text>iputils/</xsl:text>
     110        </xsl:when>
    108111        <xsl:otherwise>
    109112          <xsl:value-of select="$dirname"/>
Note: See TracChangeset for help on using the changeset viewer.