~bkerensa/ubuntu/raring/app-install-data-ubuntu/fix-for-depends

« back to all changes in this revision

Viewing changes to update-menu-data-from-file.sh

  • Committer: Package Import Robot
  • Author(s): Michael Vogt
  • Date: 2012-01-31 18:14:11 UTC
  • Revision ID: package-import@ubuntu.com-20120131181411-eyn8rc08x13w4tbk
Tags: 0.12.04.2
updated for current precise

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
 
 
3
if [ ! -f "$1" != "" ]; then
 
4
    echo "need filename"
 
5
    exit 1
 
6
fi
 
7
MENU="$1"
 
8
 
 
9
UTILDIR=utils/
 
10
TOPDIR=./
 
11
TARGETDIR=./menu-data/
 
12
HERE=$PWD
 
13
 
 
14
# cleanup
 
15
rm -f $TARGETDIR/*.desktop 
 
16
rm -f $TARGETDIR/icons/* 
 
17
 
 
18
# unpack and shuffle files around
 
19
(cd $TOPDIR/menu-data ; 
 
20
  tar xzvf  $MENU ; 
 
21
  mv desktop/* .;
 
22
)
 
23
 
 
24
 
 
25
# post-process
 
26
bzr add $TARGETDIR/*.desktop
 
27
bzr add $TARGETDIR/icons/*
 
28
 
 
29
# update the codec information based on the Packages file output
 
30
$UTILDIR/gst-add.py ./menu-data-codecs/*.desktop
 
31