Added make_tgz, moved stuff around
This commit is contained in:
parent
6dd29e8fc1
commit
a00082fe1a
7 changed files with 15 additions and 11 deletions
8
Makefile
8
Makefile
|
|
@ -39,8 +39,8 @@ test: $(BUILDDIR)/tg-dbg$(EXT)
|
|||
$(BUILDDIR)/tg-dbg test
|
||||
.PHONY: test
|
||||
|
||||
$(BUILDDIR)/tg-timer.res: packaging/tg-timer.rc icons/tg-timer.ico
|
||||
windres packaging/tg-timer.rc -O coff -o $(BUILDDIR)/tg-timer.res
|
||||
$(BUILDDIR)/tg-timer.res: icons/tg-timer.rc icons/tg-timer.ico
|
||||
windres icons/tg-timer.rc -O coff -o $(BUILDDIR)/tg-timer.res
|
||||
|
||||
$(BUILDDIR)/tg$(EXT): $(ALLFILES)
|
||||
$(call COMPILE,tg,)
|
||||
|
|
@ -69,8 +69,8 @@ $(ICONSIZES): %: icons/%/tg-timer.png
|
|||
install: all $(ICONSIZES)
|
||||
install -D -m 0755 -s $(BUILDDIR)/tg$(EXT) $(PREFIX)/bin/tg-timer$(EXT)
|
||||
install -D -m 0755 -s $(BUILDDIR)/tg-lt$(EXT) $(PREFIX)/bin/tg-timer-lt$(EXT)
|
||||
install -D -m 0644 packaging/tg-timer.desktop $(PREFIX)/share/applications/tg-timer.desktop
|
||||
install -D -m 0644 packaging/tg-timer-lt.desktop $(PREFIX)/share/applications/tg-timer-lt.desktop
|
||||
install -D -m 0644 icons/tg-timer.desktop $(PREFIX)/share/applications/tg-timer.desktop
|
||||
install -D -m 0644 icons/tg-timer-lt.desktop $(PREFIX)/share/applications/tg-timer-lt.desktop
|
||||
install -D -m 0644 docs/tg-timer.1.gz $(PREFIX)/share/man/man1/tg-timer.1.gz
|
||||
ln -s tg-timer.1.gz $(PREFIX)/share/man/man1/tg-timer-lt.1.gz
|
||||
.PHONY: install
|
||||
|
|
|
|||
|
|
@ -1,6 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
for A in `cat sizes`;
|
||||
do
|
||||
xdg-icon-resource install --size $A $[A]x$[A]/tg-timer.png
|
||||
done
|
||||
|
|
@ -7,8 +7,8 @@ cd $DIR/..
|
|||
|
||||
VERSION=`cat version`
|
||||
|
||||
tar czf build/tg-timer_$VERSION.orig.tar.gz * --exclude=".*" --exclude="build/*" --xform="s|\\(.*\\)|tg-timer-$VERSION/\1|"
|
||||
cd build
|
||||
cp tg-timer_$VERSION.tar.gz tg-timer_$VERSION.orig.tar.gz
|
||||
tar xzf tg-timer_$VERSION.orig.tar.gz
|
||||
cp -r $ABSDIR/debian tg-timer-$VERSION
|
||||
cd tg-timer-$VERSION
|
||||
|
|
|
|||
10
packaging/make_tgz.sh
Executable file
10
packaging/make_tgz.sh
Executable file
|
|
@ -0,0 +1,10 @@
|
|||
#!/bin/bash
|
||||
|
||||
DIR=`dirname "${BASH_SOURCE[0]}"`
|
||||
ABSDIR=`cd "$DIR"; pwd`
|
||||
|
||||
cd $DIR/..
|
||||
|
||||
VERSION=`cat version`
|
||||
|
||||
tar czf build/tg-timer_$VERSION.tar.gz * --exclude=".*" --exclude="build/*" --exclude="packaging" --xform="s|\\(.*\\)|tg-timer-$VERSION/\1|"
|
||||
Loading…
Reference in a new issue