#! /bin/sh # This script is the complement to pack-symlinks script. # # GPL'ed by Mikhael Goikhman. ICONS_DIR=../../icons INFO_FILE=_symlinks.lst cd $ICONS_DIR for iconSet in *; do [ -d "$iconSet" ] || continue [ $iconSet = CVS ] && continue echo -n "Processing $iconSet ... " if ! cd $iconSet; then echo failed; continue fi if [ ! -f $INFO_FILE ]; then cd ..; echo skipped; continue fi cat $INFO_FILE | xargs -n 2 -r ln -sf rm $INFO_FILE cd .. echo "done" done