• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

A CLI tool for downloading from pixiv.net


Commit MetaInfo

Revisãob5e95f65b77d301fa43cabb43366b90744419328 (tree)
Hora2023-10-26 08:09:01
Autormio <stigma@disr...>
Commitermio

Mensagem de Log

Generate entire 'git_version' file.

Mudança Sumário

Diff

--- a/.gitignore
+++ b/.gitignore
@@ -20,3 +20,4 @@ docs/
2020 # AppImage
2121 *.AppImage
2222 AppDir/
23+source/git_version.d
--- a/insert_gitversion.sh
+++ b/insert_gitversion.sh
@@ -4,10 +4,26 @@ if [ -d ".git" ]
44 then
55 which git >/dev/null || exit 0
66
7- # Keep all but the last two lines
8- git_version_file="$(head -n -2 source/git_version.d)"
9- printf "%s\n\n" "$git_version_file" > source/git_version.d
7+ cat <<-_END > source/git_version.d
8+/*
9+ * pixiv_down - CLI-based downloading tool for https://www.pixiv.net.
10+ * Copyright (C) 2023 Mio
11+ *
12+ * This program is free software: you can redistribute it and/or modify
13+ * it under the terms of the GNU General Public License as published by
14+ * the Free Software Foundation, version 3 of the License.
15+ *
16+ * This program is distributed in the hope that it will be useful,
17+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
18+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19+ * GNU General Public License for more details.
20+ *
21+ * You should have received a copy of the GNU General Public License
22+ * along with this program. If not, see <https://www.gnu.org/licenses/>.
23+ */
24+module git_version;
1025
26+_END
1127
1228 version="$(git show --pretty='%cd %h' --date=format:%Y-%m --no-patch --no-notes HEAD)"
1329 gdate="$(printf '%s' "$version" | cut -d' ' -f1)"
@@ -17,5 +33,3 @@ then
1733
1834 printf "[prebuild_command] Successfully inserted git version.\n"
1935 fi
20-
21-
--- a/source/git_version.d
+++ /dev/null
@@ -1,20 +0,0 @@
1-/*
2- * pixiv_down - CLI-based downloading tool for https://www.pixiv.net.
3- * Copyright (C) 2023 Mio
4- *
5- * This program is free software: you can redistribute it and/or modify
6- * it under the terms of the GNU General Public License as published by
7- * the Free Software Foundation, version 3 of the License.
8- *
9- * This program is distributed in the hope that it will be useful,
10- * but WITHOUT ANY WARRANTY; without even the implied warranty of
11- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12- * GNU General Public License for more details.
13- *
14- * You should have received a copy of the GNU General Public License
15- * along with this program. If not, see <https://www.gnu.org/licenses/>.
16- */
17-module git_version;
18-
19-enum GitDate = "2023-09";
20-enum GitHash = "081637a";