meta2deps.sh (250837) | meta2deps.sh (268437) |
---|---|
1#!/bin/sh 2 3# NAME: 4# meta2deps.sh - extract useful info from .meta files 5# 6# SYNOPSIS: 7# meta2deps.sh SB="SB" "meta" ... 8# --- 63 unchanged lines hidden (view full) --- 72# 73# with "$path" geting turned into reldir's, so that we can end 74# up with a list of all the directories which depend on each src 75# file in another directory. This can allow for efficient yet 76# complete testing of changes. 77 78 79# RCSid: | 1#!/bin/sh 2 3# NAME: 4# meta2deps.sh - extract useful info from .meta files 5# 6# SYNOPSIS: 7# meta2deps.sh SB="SB" "meta" ... 8# --- 63 unchanged lines hidden (view full) --- 72# 73# with "$path" geting turned into reldir's, so that we can end 74# up with a list of all the directories which depend on each src 75# file in another directory. This can allow for efficient yet 76# complete testing of changes. 77 78 79# RCSid: |
80# $Id: meta2deps.sh,v 1.6 2013/05/11 05:16:26 sjg Exp $ | 80# $Id: meta2deps.sh,v 1.7 2014/04/05 22:56:54 sjg Exp $ |
81 82# Copyright (c) 2010-2013, Juniper Networks, Inc. 83# All rights reserved. 84# 85# Redistribution and use in source and binary forms, with or without 86# modification, are permitted provided that the following conditions 87# are met: 88# 1. Redistributions of source code must retain the above copyright --- 254 unchanged lines hidden (view full) --- 343 esac 344 done > $tf.dirdep 345 _nl=echo 346 for f in $tf.dirdep $tf.qual $tf.srcdep 347 do 348 [ -s $f ] || continue 349 case $f in 350 *qual) # a list of .dirdep files | 81 82# Copyright (c) 2010-2013, Juniper Networks, Inc. 83# All rights reserved. 84# 85# Redistribution and use in source and binary forms, with or without 86# modification, are permitted provided that the following conditions 87# are met: 88# 1. Redistributions of source code must retain the above copyright --- 254 unchanged lines hidden (view full) --- 343 esac 344 done > $tf.dirdep 345 _nl=echo 346 for f in $tf.dirdep $tf.qual $tf.srcdep 347 do 348 [ -s $f ] || continue 349 case $f in 350 *qual) # a list of .dirdep files |
351 # we can prefix everthing with $OBJTOP to | 351 # we can prefix everything with $OBJTOP to |
352 # tell gendirdeps.mk that these are 353 # DIRDEP entries, since they are already 354 # qualified with .<machine> as needed. 355 # We strip .$MACHINE though 356 xargs cat < $f | sort -u | 357 sed "s,^# ,,;s,^,$OBJTOP/,;s,\.${TARGET_SPEC:-$MACHINE}\$,,;s,\.$MACHINE\$,," 358 ;; 359 *) sort -u $f;; --- 20 unchanged lines hidden --- | 352 # tell gendirdeps.mk that these are 353 # DIRDEP entries, since they are already 354 # qualified with .<machine> as needed. 355 # We strip .$MACHINE though 356 xargs cat < $f | sort -u | 357 sed "s,^# ,,;s,^,$OBJTOP/,;s,\.${TARGET_SPEC:-$MACHINE}\$,,;s,\.$MACHINE\$,," 358 ;; 359 *) sort -u $f;; --- 20 unchanged lines hidden --- |