mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-29 13:00:32 +01:00
3c988cae12
Signed-off-by: B. Watson <urchlay@slackware.uk> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
31 lines
1.2 KiB
Diff
31 lines
1.2 KiB
Diff
diff -Naur paps-0.8.0/scripts/src-to-paps paps-0.8.0.patched/scripts/src-to-paps
|
|
--- paps-0.8.0/scripts/src-to-paps 2023-02-09 02:27:38.000000000 -0500
|
|
+++ paps-0.8.0.patched/scripts/src-to-paps 2023-05-03 16:53:01.568348300 -0400
|
|
@@ -1,4 +1,4 @@
|
|
-#!/usr/bin/python
|
|
+#!/usr/bin/python3
|
|
|
|
######################################################################
|
|
# Use GNU source-hightlight to turn source code into pango markup
|
|
@@ -49,7 +49,7 @@
|
|
# Defaults
|
|
|
|
# TBD - Make this a configuration variable
|
|
-pango_outlang_path = '/usr/local/share/paps/pango_markup.outlang'
|
|
+pango_outlang_path = '/usr/share/paps/pango_markup.outlang'
|
|
|
|
parser = argparse.ArgumentParser(description='Process a file')
|
|
parser.add_argument('-o', '--output',
|
|
@@ -114,7 +114,11 @@
|
|
'.cpp' : 'C',
|
|
'.cxx' : 'C',
|
|
'.cc' : 'C',
|
|
- '.c' : 'C'
|
|
+ '.c' : 'C',
|
|
+ '.pl' : 'perl',
|
|
+ '.SlackBuild' : 'sh',
|
|
+ '.cs' : 'csharp',
|
|
+ '.s' : 'asm'
|
|
}.get(Path(fn).suffix)
|
|
if args.source_lang is None
|
|
else args.source_lang)
|