"Fossies" - the Fresh Open Source Software Archive

Member "TeXmacs-2.1.2-src/cmake/build_deb.sh" (5 May 2022, 898 Bytes) of package /linux/misc/TeXmacs-2.1.2-src.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "build_deb.sh": 2.1.1_vs_2.1.2.

    1 #!/bin/bash
    2 
    3 if [ -L ${BASH_SOURCE-$0} ]; then
    4   FWDIR=$(dirname $(readlink "${BASH_SOURCE-$0}"))
    5 else
    6   FWDIR=$(dirname "${BASH_SOURCE-$0}")
    7 fi
    8 
    9 APP_HOME="$(cd "${FWDIR}/.."; pwd)"
   10 
   11 VERSION_MAJOR="2"
   12 VERSION_MINOR="1"
   13 VERSION_BUILD="2"
   14 if [ -n "$VERSION_BUILD" ]; then
   15   VERSION=${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_BUILD}
   16 else
   17   VERSION=${VERSION_MAJOR}.${VERSION_MINOR}
   18 fi
   19 
   20 ln -s $APP_HOME/packages/debian $APP_HOME/debian
   21 rm $APP_HOME/configure
   22 rm $APP_HOME/configure.in
   23 rm $APP_HOME/config.sub
   24 rm $APP_HOME/config.guess
   25 rm $APP_HOME/Makefile.in
   26 cp $APP_HOME/debian/control.in $APP_HOME/debian/control
   27 sed -e "s/@DEVEL_VERSION@/$VERSION/" -e "s/@DEVEL_RELEASE@/1/" \
   28   $APP_HOME/debian/changelog.in \
   29   > $APP_HOME/debian/changelog
   30 
   31 cd $APP_HOME
   32 dpkg-buildpackage -us -uc -b
   33 
   34 $APP_HOME/debian/rules clean
   35 rm $APP_HOME/debian/changelog
   36 rm $APP_HOME/debian/control
   37 unlink $APP_HOME/debian