aboutsummaryrefslogtreecommitdiffstats
path: root/package/util-linux-ng
Commit message (Expand)AuthorAgeFilesLines
* util-linux-ng: make build depend on libncurses, cfdisk is compiled unconditio...Jo-Philipp Wich2010-09-081-1/+1
* add package for script from util-linux-ng (#7416)Florian Fainelli2010-06-141-1/+19
* package/util-linux-ng: refresh patchesGabor Juhos2010-03-261-2/+2
* util-linux-ng: Build settermLars-Peter Clausen2010-02-081-2/+22
* package sfdisk from util-linux-ng (#5998)Florian Fainelli2009-11-231-2/+18
* This patch adds a new package "flock" that allows to manage file locks from s...Jo-Philipp Wich2009-05-071-1/+17
* remove false dependence in util-linux-ngClaudio Mignanti2009-02-081-1/+0
* add missing dependency on libblkid to swap-utils, needed for swapon/off (clos...Nicolas Thill2008-09-151-1/+1
* add missing dependencies on libblkid/libuuid for mount-utils/swap-utils (shou...Nicolas Thill2008-08-201-5/+7
* fixed mount path (closes #3464)Matteo Croce2008-05-251-2/+2
* Fix mount utilites installation (#3464)Florian Fainelli2008-05-241-1/+1
* fix some wrong pathsMatteo Croce2008-05-191-15/+14
* Package mount and umountFlorian Fainelli2008-01-041-1/+16
* add back patch to fix building on avr32 and crisImre Kaloz2007-12-091-0/+11
* nuke util-linux in favor of util-linux-ng, build only what we needImre Kaloz2007-10-251-0/+119
highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
#!/usr/bin/env bash
# 
# Copyright (C) 2006 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
SELF=${0##*/}

[ -z "$STRIP" ] && {
  echo "$SELF: strip command not defined (STRIP variable not set)"
  exit 1
}

TARGETS=$*

[ -z "$TARGETS" ] && {
  echo "$SELF: no directories / files specified"
  echo "usage: $SELF [PATH...]"
  exit 1
}

find $TARGETS -type f -a -exec file {} \; | \
  sed -n -e 's/^\(.*\):.*ELF.*\(executable\|relocatable\|shared object\).*,.* stripped/\1:\2/p' | \
(
  IFS=":"
  while read F S; do
    echo "$SELF: $F: $S"
	[ "${S}" = "relocatable" ] && {
		eval "$STRIP_KMOD $F"
	} || {
		b=$(stat -c '%a' $F)
		[ -z "$PATCHELF" ] || [ -z "$TOPDIR" ] || {
			old_rpath="$($PATCHELF --print-rpath $F)"; new_rpath=""
			for path in $old_rpath; do
				case "$path" in
					/lib/[^/]*|/usr/lib/[^/]*|\$ORIGIN/*) new_rpath="${new_rpath:+$new_rpath:}$path" ;;
					*) echo "$SELF: $F: removing rpath $path" ;;
				esac
			done
			[ "$new_rpath" = "$old_rpath" ] || $PATCHELF --set-rpath "$new_rpath" $F
		}
		eval "$STRIP $F"
		a=$(stat -c '%a' $F)
		[ "$a" = "$b" ] || chmod $b $F
	}
  done
  true
)