source: llxcfg/trunk/fuentes/debian/gen_jumble @ 98

Last change on this file since 98 was 96, checked in by hectorgh, 5 years ago

adding proyect files

  • Property svn:executable set to *
File size: 619 bytes
Line 
1#!/bin/bash
2# Author:       Luis Garcia Gisbert <garcia_luigis@gva.es>
3# Description:  Generate jumble control file
4#
5
6pkg_version(){
7   [ -f "debian/changelog" ] && head -1 debian/changelog |sed -ne "s%^[^(]*(\([^)]*\)).*%\1%p"
8}
9
10
11. debian/gen_pkg_data_common
12
13if [ -r "debian/${COMMON_PKG}/${COMMON_FILE}" ] ; then
14   . debian/${COMMON_PKG}/${COMMON_FILE}
15   JUMBLE_DIR="debian/$RUNTIME_PKG/$CPKG_ORIGINAL/jumble"
16   if [ -d "$JUMBLE_DIR" ] ; then
17      cat <<EOF > "$JUMBLE_DIR/$CPKG_CONTROL_FILE"
18Version: $(pkg_version)
19Upgrade-actions: deconfigure
20EOF
21   mkdir -p "debian/$RUNTIME_PKG/$LLXCFG_JUMBLE_STOREDIR"
22   fi
23fi
Note: See TracBrowser for help on using the repository browser.