Code Search for Developers
 
 
  

help_diff.sh from The Open2x Project at Krugle


Show help_diff.sh syntax highlighted

#!/bin/sh

# This script walks through the master (stdin) help/message file, and
# prints (stdout) only those messages which are missing from the help
# file given as parameter ($1).
#
# Example: help_diff.sh help_mp-hu.h < help_mp-en.h > missing.h

curr=""

while read -r line; do
	if echo "$line" | grep '^#define' > /dev/null 2>&1; then
		curr=`echo "$line" | cut -d ' ' -f 2`
		if grep "^#define $curr" $1 > /dev/null 2>&1; then
			curr=""
		fi
	else
		if [ -z "$line" ]; then
			curr=""
		fi
	fi

	if [ -n "$curr" ]; then
		echo "$line"
	fi
done




See more files for this project here

The Open2x Project

The Open2x project exists to provide an open source resource for the GP2X handheld console based on the MagicEyes MMSP2 processing platform and MP2520F SoC. The project hosts Linux kernel source for the GP2X, boot loader (U-Boot) source and more.

Project homepage: http://www.distant-earth.com/open2x
Programming language(s): Assembly,C,C++
License: other

  help_diff.sh
  help_mp-bg.h
  help_mp-cs.h
  help_mp-de.h
  help_mp-dk.h
  help_mp-el.h
  help_mp-en.h
  help_mp-es.h
  help_mp-fr.h
  help_mp-hu.h
  help_mp-it.h
  help_mp-ja.h
  help_mp-ko.h
  help_mp-mk.h
  help_mp-nl.h
  help_mp-no.h
  help_mp-pl.h
  help_mp-pt_BR.h
  help_mp-ro.h
  help_mp-ru.h
  help_mp-sk.h
  help_mp-sv.h
  help_mp-tr.h
  help_mp-uk.h
  help_mp-zh_CN.h
  help_mp-zh_TW.h