Skip to content

Commit bc07131

Browse files
authored
Merge pull request #134 from bgstack15/master
Add some more packaging, and man pages
2 parents b7933fc + 532e1ea commit bc07131

File tree

4 files changed

+105
-8
lines changed

4 files changed

+105
-8
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
.*.swp
22
debian
3+
/*.[0-9].gz

Makefile

Lines changed: 26 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,12 @@
1010
# spaces and underscores https://ftp.gnu.org/old-gnu/Manuals/make-3.79.1/html_chapter/make_6.html
1111
# Improve:
1212
# Dependencies:
13+
# build-dpkg: txt2man
1314

1415
APPNAME = chicago95
15-
APPVERSION = 0.0.2
16+
APPVERSION = 2.0.1
1617
SRCDIR = $(CURDIR)
18+
BUILDDIR = $(CURDIR)
1719
prefix = /usr
1820
SYSCONFDIR = $(DESTDIR)/etc
1921
DEFAULTDIR = $(DESTDIR)/etc/sysconfig # for debian use '$(DESTDIR)/etc/default'
@@ -31,6 +33,7 @@ XDGAUTODIR = $(SYSCONFDIR)/xdg/autostart
3133
FONTDIR = $(SHAREDIR)/fonts
3234
THEMESDIR = $(SHAREDIR)/themes
3335
SOUNDSDIR = $(SHAREDIR)/sounds
36+
BKGDSDIR = $(SHAREDIR)/backgrounds/Chicago95
3437

3538
awkbin :=$(shell which awk)
3639
chmodbin :=$(shell which chmod)
@@ -48,26 +51,33 @@ sortbin :=$(shell which sort)
4851
truebin :=$(shell which true)
4952
uniqbin :=$(shell which uniq)
5053
xargsbin :=$(shell which xargs)
54+
txt2manbin :=$(shell which txt2man)
5155

5256
use_underscores ?= NO
5357

54-
.PHONY: clean install install_files build_man uninstall list deplist deplist_opts
58+
.PHONY: clean install install_files build_man uninstall list deplist deplist_opts build_man
5559

5660
nullstring :=
5761
space :=\ $(nullstring)# end of the line
5862
ifeq ($(use_underscores),YES)
5963
space = _
6064
endif
6165

62-
all:
63-
@${echobin} "No compilation for this project."
66+
all: build_man
6467

6568
list:
6669
@$(MAKE) -pRrq -f $(lastword $(MAKEFILE_LIST)) : 2>/dev/null | ${awkbin} -v RS= -F: '/^# File/,/^# Finished Make data base/ {if ($$1 !~ "^[#.]") {print $$1}}' | ${sortbin} | ${grepbin} -E -v -e '^[^[:alnum:]]' -e '^$@$$'
6770

71+
build_man:
72+
@# these man pages are installed with install_plus
73+
@test -d ${BUILDDIR} || mkdir -p ${BUILDDIR}
74+
${txt2manbin} -P chicago95-theme-plus -r chicago95-theme-plus -d "June 2020" -t "PlusGUI" -s 1 -v "General Commands Manual" < ${SRCDIR}/Plus/PlusGUI.1.txt | ${gzipbin} > ${BUILDDIR}/PlusGUI.1.gz
75+
${txt2manbin} -P chicago95-theme-plus -r chicago95-theme-plus -d "June 2020" -t "Chicago95" -s 1 -v "General Commands Manual" < ${SRCDIR}/Plus/ChicagoPlus.1.txt | ${gzipbin} > ${BUILDDIR}/ChicagoPlus.1.gz
76+
6877
install: install_all
6978

70-
install_all: install_cursors install_doc install_fonts install_gtk_theme install_icons install_sounds install_login_sound install_boot_screen install_plus
79+
.PHONY: install_cursors install_doc install_fonts install_gtk_theme install_icons install_sounds install_login_sound install_boot_screen install_plus install_backgrounds
80+
install_all: install_cursors install_doc install_fonts install_gtk_theme install_icons install_sounds install_login_sound install_boot_screen install_plus install_backgrounds
7181

7282
install_cursors:
7383
${installbin} -dm0755 \
@@ -132,8 +142,8 @@ install_boot_screen:
132142
${installbin} -m0644 -t ${SHAREDIR}/plymouth/themes/RetroTux ${SRCDIR}/Plymouth/RetroTux/*
133143

134144
install_plus:
135-
${installbin} -dm0755 ${SHAREDIR}/chicago95-theme-plus/assets ${BINDIR} ${LIBEXECDIR}/chicago95-theme-plus ${DOCDIR}/demo ${APPSDIR} ${MIMEDIR}
136-
${installbin} -m0755 -t ${SHAREDIR}/chicago95-theme-plus/assets ${SRCDIR}/Plus/assets/*
145+
${installbin} -dm0755 ${SHAREDIR}/chicago95-theme-plus/assets ${BINDIR} ${LIBEXECDIR}/chicago95-theme-plus ${DOCDIR}/demo ${APPSDIR} ${MIMEDIR} ${MANDIR}/man1
146+
${installbin} -m0644 -t ${SHAREDIR}/chicago95-theme-plus/assets ${SRCDIR}/Plus/assets/*
137147
${installbin} -m0755 ${SRCDIR}/Plus/ChicagoPlus.py ${BINDIR}/ChicagoPlus
138148
${installbin} -m0755 ${SRCDIR}/Plus/PlusGUI.py ${BINDIR}/PlusGUI
139149
${installbin} -m0644 -t ${LIBEXECDIR}/chicago95-theme-plus ${SRCDIR}/Plus/pluslib.py ${SRCDIR}/Plus/plus.glade
@@ -142,6 +152,12 @@ install_plus:
142152
${installbin} -m0644 -t ${DOCDIR}/demo ${SRCDIR}/Plus/demo/*
143153
${installbin} -m0644 -t ${APPSDIR} ${SRCDIR}/Plus/*.desktop
144154
${installbin} -m0644 -t ${MIMEDIR} ${SRCDIR}/Plus/chicago95-plus-theme.xml
155+
${installbin} -m0644 -t ${MANDIR}/man1 ${BUILDDIR}/*.1.gz
156+
157+
install_backgrounds:
158+
${installbin} -dm0755 ${BKGDSDIR}/patterns ${BKGDSDIR}/wallpapers
159+
${installbin} -m0644 -t ${BKGDSDIR}/patterns ${SRCDIR}/Extras/Backgrounds/Patterns/*
160+
${installbin} -m0644 -t ${BKGDSDIR}/wallpapers ${SRCDIR}/Extras/Backgrounds/Wallpaper/*
145161

146162
uninstall:
147163
${rmbin} -rf \
@@ -162,8 +178,10 @@ uninstall:
162178
${LIBEXECDIR}/chicago95-theme-plus ${BINDIR}/ChicagoPlus ${BINDIR}/PlusGUI \
163179
${SHAREDIR}/chicago95-theme-plus \
164180
${APPSDIR}/PlusGUI.desktop ${MIMEDIR}/chicago95-plus-theme.xml \
181+
${MANDIR}/man1/ChicagoPlus.1.gz ${MANDIR}/man1/PlusGUI.1.gz \
165182
${SHAREDIR}/plymouth/themes/Chicago95 ${SHAREDIR}/plymouth/themes/RetroTux \
183+
${BKGDSDIR} \
166184
${XDGAUTODIR}/chicago95-startup.desktop
167185

168186
clean:
169-
-@${echobin} "target $@ not implemented yet! Gotta say unh." && ${falsebin}
187+
-${rmbin} ${BUILDDIR}/*.1.gz

Plus/ChicagoPlus.1.txt

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
NAME
2+
ChicagoPlus - convert Windows 95 theme to Xfce theme
3+
SYNOPSIS
4+
ChicagoPlus [options] _filename_
5+
OPTIONS
6+
<filename> Theme file to convert
7+
-h, --help show help message and exit
8+
-d, --debug Print lots of debugging statements (default: 30)
9+
-v, --verbose Be verbose (default: None)
10+
--noinstall Do not place folders nor change theme (default: False)
11+
--info Prints the json conversion of the theme file (default: False)
12+
13+
-c COLORS, --colors COLORS How many colors before skipping Inkscape fix/merge for SVGs. Set to 1 to speed up conversion. WARNING: This may result in transparent icons! (default: 32)
14+
15+
-o OVERLAP, --overlap OVERLAP Pixel overlap for SVG icons (default: 1)
16+
17+
-s SQUARESIZE, --squaresize SQUARESIZE Square size for SVG icons (default: 20)
18+
19+
--cursorfolder CURSORFOLDER Chicago95 cursor folder to convert to new theme (default: ~/.icons/Chicago95_Cursor_Black)
20+
21+
--themefolder THEMEFOLDER Chicago95 theme folder to convert to new theme (default: ~/.themes/Chicago95)
22+
23+
--iconsfolder ICONSFOLDER Chicago95 icons folder to convert to new theme (default: ~/.icons/Chicago95)
24+
25+
--installdir INSTALLDIR Folder to create new theme in, default is current working directory (default: . )
26+
27+
--logfile LOGFILE Filename for debug logging (default: chicago95_plus.log)
28+
29+
SPECIFIC INSTALLS
30+
--nocursors Do not generate/install/enable the cursors (default: True)
31+
--noicons Do not generate/install/enable the icons (default: True)
32+
--nowallpaper Do not generate/install/enable the wallpaper (default: True)
33+
--nosounds Do not generate/install/enable the sounds (default: True)
34+
--nocolors Do not generate/install/enable the colors (default: True)
35+
--nofonts Do not generate/install/enable the fonts (default: True)
36+
--noscreensaver Do not generate/install the screensaver (default: True)
37+
DESCRIPTION
38+
Chicago95 Plus! is a python script that can parse Windows 95/98/ME/XP theme files and create new Chicago95 themes.
39+
Chicago95 Plus! supports Icons, Cursors, Fonts, Wallpapers, Sounds and Theme colors! Use this against themes you can find on ThemeWorld or any site that have Microsoft Plus! Themes! This script can be called from any folder, execute it and provide it the path to a theme file (e.g. ChicagoPlus /home/bgates/Wicked/Wicked.theme) and your new theme will be created!
40+
AUTHOR
41+
grassmunk, adapted as a manpage by bgstack15
42+
COPYRIGHT
43+
GPL 3.0+
44+
SEE ALSO
45+
PlusGUI(1)

Plus/PlusGUI.1.txt

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
NAME
2+
PlusGUI - gtk frontend for converting Windows 95 theme to Xfce theme
3+
SYNOPSIS
4+
PlusGUI [options] _filename_
5+
OPTIONS
6+
<filename> Theme file to convert
7+
-h, --help show help message and exit
8+
-d, --debug Print lots of debugging statements (default: 30)
9+
-v, --verbose Be verbose (default: None)
10+
11+
-c COLORS, --colors COLORS How many colors before skipping Inkscape fix/merge for SVGs. Set to 1 to speed up conversion. WARNING: This may result in transparent icons! (default: 32)
12+
13+
-o OVERLAP, --overlap OVERLAP Pixel overlap for SVG icons (default: 1)
14+
15+
-s SQUARESIZE, --squaresize SQUARESIZE Square size for SVG icons (default: 20)
16+
17+
--cursorfolder CURSORFOLDER Chicago95 cursor folder to convert to new theme (default: ~/.icons/Chicago95_Cursor_Black)
18+
19+
--themefolder THEMEFOLDER Chicago95 theme folder to convert to new theme (default: ~/.themes/Chicago95)
20+
21+
--iconsfolder ICONSFOLDER Chicago95 icons folder to convert to new theme (default: ~/.icons/Chicago95)
22+
23+
--installdir INSTALLDIR Folder to create new theme in, default is current working directory (default: . )
24+
25+
--logfile LOGFILE Filename for debug logging (default: chicago95_plus.log)
26+
DESCRIPTION
27+
Display a graphical window to choose, preview, and build Xfce themes. PlusGUI looks identical to the Microsoft Plus! 95 "Desktop Themes" utility.
28+
AUTHOR
29+
grassmunk, adapted as a manpage by bgstack15
30+
COPYRIGHT
31+
GPL 3.0+
32+
SEE ALSO
33+
ChicagoPlus(1)

0 commit comments

Comments
 (0)