Plasma GitLab Archive
Projects Blog Knowledge

#! /bin/sh

set -e

version=`./configure -version`
major=`echo "$version" | sed -e 's/^\([^\.]\+\)\..*$/\1/'`   # All before .
minor=`echo "$version" | sed -e 's/^[^\.]\+\.\(.*\)$/\1/'`   # All after .

rm -rf Repack
mkdir Repack
make INST_PREFIX=Repack install

cp wtimer-config-lion.xml Repack/usr/local/etc/wtimer-config.xml

cd Repack/usr/local
mkdir -p filesets/wtimer

cat <<EOF >filesets/wtimer/Version
Name: wtimer
Comment: Web interface to manage time sheets
Major: $major
Minor: $minor
Local: 0
Rootdir: /usr/local
EOF

date=`date`
host=`hostname`

cat <<EOF >filesets/wtimer/Log
$date - $USER@$host
EOF

mkarch
cd ..
output=`echo wtimer*`
mv "$output" ../..
echo "Output archive: $output"


This web site is published by Informatikbüro Gerd Stolpmann
Powered by Caml