source: lliurex-meta/trunk/fuentes/generatemeta.sh @ 3327

Last change on this file since 3327 was 3327, checked in by mabarracus, 3 years ago

Add lliurex-profile-d

  • Property svn:executable set to *
File size: 950 bytes
Line 
1#!/bin/bash
2germinate-update-metapackage --nodch
3svn st meta* | grep "M" | awk '{ print $2 }' | xargs svn diff | grep -e "^+[^+]" | sed -e "s%^+%%g" | sort -u > /tmp/addpackages
4svn st meta* | grep "M" | awk '{ print $2 }' | xargs svn diff | grep -e "^-[^-]" | sed -e "s%^-%%g" | sort -u > /tmp/removepackages
5packages=$(cat /tmp/addpackages | tr "\n" ",")
6DO=0
7if [ -n "${packages}" ]; then
8    dch -i -U "Add ${packages::-1}"
9    echo "Adding ${packages::-1}"
10    DO=1
11else
12    echo "Not adding any package, dch adding tag ommitted"
13fi
14
15packages=$(cat /tmp/removepackages | tr "\n" ",")
16if [ -n "${packages}" ]; then
17    dch -i -U "Remove ${packages::-1}"
18    echo "Removing ${packages::-1}"
19    DO=1
20else
21    echo "Not removing any package, dch remove tag ommitted"
22fi
23
24if [ "${DO}" != "1" ]; then
25    echo "Warning: NO CHANGES DETECTED"
26else
27    echo "Seed changes applied into meta files"
28    echo "Summary"
29    echo "==========="
30    svn st
31fi
Note: See TracBrowser for help on using the repository browser.