Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
fc-pregmod
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
macaronideath
fc-pregmod
Commits
46ab9314
Commit
46ab9314
authored
5 years ago
by
ezsh
Browse files
Options
Downloads
Patches
Plain Diff
Add a script to collect .css file content for Twine
parent
b1cb39b1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
devTools/makeTwineCSSPassage.bat
+23
-0
23 additions, 0 deletions
devTools/makeTwineCSSPassage.bat
devTools/makeTwineCSSPassage.sh
+20
-0
20 additions, 0 deletions
devTools/makeTwineCSSPassage.sh
with
43 additions
and
0 deletions
devTools/makeTwineCSSPassage.bat
0 → 100644
+
23
−
0
View file @
46ab9314
@echo
off
:: Generates devNotes/twineCSS.txt from all .css files in src/ subdir
:: See if we can find a git installation
setlocal
enabledelayedexpansion
for
%%k
in
(
HKCU
HKLM
)
do
(
for
%%w
in
(
\ \Wow6432Node\
)
do
(
for
/f
"skip=2 delims=: tokens=1*"
%%a
in
(
'reg query "
%%k
\SOFTWARE
%%wMicrosoft
\Windows\CurrentVersion\Uninstall\Git_is1" /v InstallLocation 2
^>
nul'
)
do
(
for
/f
"tokens=3"
%%z
in
(
"
%%a
"
)
do
(
set
GIT
=
%%z
:
%%b
set
GITFOUND
=
yes
goto
FOUND
)
)
)
)
:FOUND
if
%GITFOUND%
==
yes
(
set
"PATH=
%GIT%
bin;
%PATH%
"
bash
--login -c
./makeTwineCSSPassage.sh
)
This diff is collapsed.
Click to expand it.
devTools/makeTwineCSSPassage.sh
0 → 100755
+
20
−
0
View file @
46ab9314
#!/bin/sh
# Generates devNotes/twine CSS.txt from all .css files in src/ subdir
# Joins all .css files from the current dir (recursive) into a Twee [script] passage
# arguments:
# $1: root repo dir
# $2: output file name
collectCSSForTwine
()
{
local
files
=
$(
find
.
-iname
'*.css'
-print
)
files
=
$(
echo
"
$files
"
|
sort
)
echo
""
>
"
$2
"
for
f
in
$files
;
do
echo
-e
"
\n
/*
${
f
}
*/
\n
"
>>
"
$2
"
cat
"
$f
"
>>
"
$2
"
done
}
ROOT_REPO_DIR
=
"
$(
git rev-parse
--show-toplevel
)
"
cd
"
${
ROOT_REPO_DIR
}
"
/src
collectCSSForTwine
"
${
ROOT_REPO_DIR
}
"
"
${
ROOT_REPO_DIR
}
/devNotes/twine CSS.txt"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment