Skip to content

Instantly share code, notes, and snippets.

@moyashi
Created July 16, 2010 08:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save moyashi/478112 to your computer and use it in GitHub Desktop.
Save moyashi/478112 to your computer and use it in GitHub Desktop.
#!/bin/sh
# example: addfw 4.0.1 com.hoge_0.1
if [ $# -ne 2 ]; then
echo "ERROR: wrong number of arguments."
fi
if [ -d $2 ]; then
control=${2%/}/DEBIAN/control
#undeb $2
echo $control
if [ -f $control ]; then
cat $control | \
sed -e "s/\(^Pre-Depends:..*\)/\1 | firmware (= ${1})/" > $control
fi
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment